소스 검색

Filtree: fix folding elements with the same name

lviguier 2 달 전
부모
커밋
71ec980d6f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;