Sfoglia il codice sorgente

Prevent children on AnimEvents

trethaller 6 anni fa
parent
commit
85a39e31d9
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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) {