Initializer for a new spatial

This commit is contained in:
Dane Johnson
2021-01-23 13:03:22 -06:00
parent f69da37599
commit 393b38499d
2 changed files with 14 additions and 5 deletions

View File

@@ -40,6 +40,12 @@ public:
}
%ignore "Vector3";
%extend Spatial {
static Spatial* script_new() {
return new Spatial();
}
}
%extend DirectionalLight {
static DirectionalLight* script_new() {
return new DirectionalLight();