Browse Source

Reference: fix file instances not being marked as references, causing them to register in contexts, causing errors on scene tree

trethaller 6 năm trước cách đây
mục cha
commit
635f6a85df
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      hide/prefab/Reference.hx

+ 1 - 0
hide/prefab/Reference.hx

@@ -76,6 +76,7 @@ class Reference extends Object3D {
 
 		if(isFile()) {
 			ctx = super.makeInstance(ctx);
+			ctx.isRef = true;
 			p.makeInstance(ctx);
 		}
 		else {