Pārlūkot izejas kodu

[fx] Refresh editor when any param of Event or Curve changes

Clément Espeute 1 dienu atpakaļ
vecāks
revīzija
e7c5de82ae
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      hide/view/FXEditor.hx

+ 2 - 1
hide/view/FXEditor.hx

@@ -737,10 +737,11 @@ class FXEditor extends hide.view.FileView {
 			data.refreshObjectAnims();
 		}
 
-		if(pname == "name" || pname == "time" || pname == "loop" || pname == "animation" || pname == "blendMode" || pname == "duration") {
+		if(p is Event || p is Curve) {
 			afterPan(false);
 			data.refreshObjectAnims();
 			rebuildAnimPanel();
+			sceneEditor.sceneTree.refreshItem(p);
 			var fx3d = Std.downcast((cast data : hrt.prefab.Prefab).findFirstLocal3d(), hrt.prefab.fx.FX.FXAnimation);
 			if (fx3d != null) {
 				fx3d.initLoop();