瀏覽代碼

Shader: allow every prefab as parents

lviguier 1 年之前
父節點
當前提交
7072f409d9
共有 1 個文件被更改,包括 1 次插入2 次删除
  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
 		};
 	}