Browse Source

Filtree: fix folding elements with the same name

lviguier 2 months ago
parent
commit
71ec980d6f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hide/comp/SceneEditor.hx

+ 2 - 2
hide/comp/SceneEditor.hx

@@ -1954,10 +1954,10 @@ class SceneEditor {
 			return p.name;
 		}
 		tree.getUniqueName = (p : hrt.prefab.Prefab) -> {
-			var path = p.name;
+			var path = p.getUniqueName();
 			var parent = p.parent;
 			while(parent != null) {
-				path += parent.name + "/" + path;
+				path += parent.getUniqueName() + "/" + path;
 				parent = parent.parent;
 			}
 			return path;