Browse Source

Filtree: fix materials that didn't update their style

lviguier 1 tháng trước cách đây
mục cha
commit
a67cf7a5c6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      hide/comp/SceneEditor.hx

+ 2 - 2
hide/comp/SceneEditor.hx

@@ -4443,8 +4443,8 @@ class SceneEditor {
 	public function setVisible(elements : Array<PrefabElement>, visible: Bool) {
 	public function setVisible(elements : Array<PrefabElement>, visible: Bool) {
 		function exec(undo : Bool) {
 		function exec(undo : Bool) {
 			for(o in elements) {
 			for(o in elements) {
-				for(c in o.flatten(Object3D)) {
-					if( visible )
+				for(c in o.flatten(hrt.prefab.Prefab)) {
+					if (visible)
 						undo ? hideList.set(o, true) : hideList.remove(c);
 						undo ? hideList.set(o, true) : hideList.remove(c);
 					else
 					else
 						undo ?  hideList.remove(c) : hideList.set(o, true);
 						undo ?  hideList.remove(c) : hideList.set(o, true);