Initializer for a new spatial

This commit is contained in:
Dane Johnson
2021-01-23 13:03:22 -06:00
parent 59da3c088f
commit 0bc3a89e66
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();