Quellcode durchsuchen

Prevent children on AnimEvents

trethaller vor 6 Jahren
Ursprung
Commit
85a39e31d9
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  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) {