Browse Source

Add type = "object"; inside Object3D constructor

ShiroSmith 5 years ago
parent
commit
59b2f62f29
1 changed files with 5 additions and 0 deletions
  1. 5 0
      hrt/prefab/Object3D.hx

+ 5 - 0
hrt/prefab/Object3D.hx

@@ -15,6 +15,11 @@ class Object3D extends Prefab {
 	public var rotationZ : Float = 0.;
 	public var visible : Bool = true;
 
+	public function new(?parent) {
+		super(parent);
+		type = "object";
+	}
+
 	public function loadTransform(t) {
 		x = t.x;
 		y = t.y;