Ver código fonte

Shader and Material are now allowed children on Model (#171)

Jed974 4 anos atrás
pai
commit
6260ba69f8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      hrt/prefab/Model.hx

+ 1 - 1
hrt/prefab/Model.hx

@@ -181,7 +181,7 @@ class Model extends Object3D {
 	override function getHideProps() : HideProps {
 		return {
 			icon : "cube", name : "Model", fileSource : ["fbx","hmd"],
-			allowChildren : function(t) return Library.isOfType(t,Object3D) || ["material", "shader"].indexOf(t) >= 0,
+			allowChildren : function(t) return Library.isOfType(t,Object3D) || Library.isOfType(t,Material) || Library.isOfType(t,Shader),
 			onResourceRenamed : function(f) animation = f(animation),
 		};
 	}