Browse Source

Prevent children on AnimEvents

trethaller 6 years ago
parent
commit
85a39e31d9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      hide/prefab/fx/AnimEvent.hx

+ 3 - 1
hide/prefab/fx/AnimEvent.hx

@@ -95,7 +95,9 @@ class AnimEvent extends hide.prefab.fx.Event {
 	override function getHideProps() : HideProps {
 		return {
 			icon : "play-circle", name : "AnimEvent",
-			allowParent : (p) -> p.to(Model) != null };
+			allowParent : (p) -> p.to(Model) != null,
+			allowChildren: function(s) return false
+		};
 	}
 
 	override function getDisplayInfo(ctx: EditContext) {