Explorar o código

Fix curve duration on emitter instance

Jed %!s(int64=4) %!d(string=hai) anos
pai
achega
3980c5561e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hide/view/FXEditor.hx

+ 1 - 1
hide/view/FXEditor.hx

@@ -1158,7 +1158,7 @@ class FXEditor extends FileView {
 			}
 			curveEdit.xOffset = xOffset;
 			curveEdit.xScale = xScale;
-			if(isInstanceCurve(curve))
+			if(isInstanceCurve(curve) && curve.parent.to(hrt.prefab.fx.Emitter) == null)
 				curve.maxTime = 1.0;
 			curveEdit.curve = curve;
 			curveEdit.onChange = function(anim) {