Ver Fonte

Shader: allow every prefab as parents

lviguier há 1 ano atrás
pai
commit
7072f409d9
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      hrt/prefab/Shader.hx

+ 1 - 2
hrt/prefab/Shader.hx

@@ -253,8 +253,7 @@ class Shader extends Prefab {
 		return {
 			icon : "cog",
 			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
 		};
 	}