Browse Source

FX editor: synchronize global.time to timeline

trethaller 4 năm trước cách đây
mục cha
commit
63757e5609
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      hide/view/FXEditor.hx

+ 2 - 0
hide/view/FXEditor.hx

@@ -1469,6 +1469,8 @@ class FXEditor extends FileView {
 			onUpdate2D(dt);
 			onUpdate2D(dt);
 		else
 		else
 			onUpdate3D(dt);
 			onUpdate3D(dt);
+
+		@:privateAccess scene.s3d.renderer.ctx.time = currentTime - scene.s3d.renderer.ctx.elapsedTime;
 	}
 	}
 
 
 	function onUpdate2D(dt:Float) {
 	function onUpdate2D(dt:Float) {