Browse Source

re-allow creation of AnimEvents under models

trethaller 4 years ago
parent
commit
98ea5c6a89
1 changed files with 1 additions and 1 deletions
  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) || Library.isOfType(t,Material) || Library.isOfType(t,Shader),
+			allowChildren : function(t) return Library.isOfType(t,Object3D) || Library.isOfType(t,Material) || Library.isOfType(t,Shader) || Library.isOfType(t, hrt.prefab.fx.AnimEvent),
 			onResourceRenamed : function(f) animation = f(animation),
 		};
 	}