Explorar o código

Prevent children on AnimEvents

trethaller %!s(int64=6) %!d(string=hai) anos
pai
achega
85a39e31d9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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) {