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

Shader: allow every prefab as parents

lviguier 1 жил өмнө
parent
commit
7072f409d9

+ 1 - 2
hrt/prefab/Shader.hx

@@ -253,8 +253,7 @@ class Shader extends Prefab {
 		return {
 		return {
 			icon : "cog",
 			icon : "cog",
 			name : name,
 			name : name,
-			fileSource : cl == hrt.prefab.DynamicShader ? ["hx"] : null,
-			allowParent : function(p) return p.to(Object2D) != null || p.to(Object3D) != null || p.to(Material) != null
+			fileSource : cl == hrt.prefab.DynamicShader ? ["hx"] : null
 		};
 		};
 	}
 	}