2
0
Эх сурвалжийг харах

[scene] Reference properly clean itself when removed from scene

Clément Espeute 11 сар өмнө
parent
commit
59ec6f4cf5

+ 1 - 0
hrt/prefab/Reference.hx

@@ -212,6 +212,7 @@ class Reference extends Object3D {
 		var props = ctx.properties.add(element, this, function(pname) {
 			ctx.onChange(this, pname);
 			if(pname == "source" || pname == "editMode") {
+				editorRemoveObjects();
 				refInstance = null;
 				if (hasCycle()) {
 					hide.Ide.inst.quickError('Reference to $source would create a cycle. The reference change was aborted.');