فهرست منبع

Editor: Fix camera move error (#32843)

林炳权 1 ماه پیش
والد
کامیت
08e56bb0cd
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      editor/js/Viewport.Controls.js

+ 3 - 3
editor/js/Viewport.Controls.js

@@ -26,7 +26,7 @@ function ViewportControls( editor ) {
 
 		if ( object.isCamera ) {
 
-			update();
+			update( false );
 
 		}
 
@@ -59,7 +59,7 @@ function ViewportControls( editor ) {
 
 	//
 
-	function update() {
+	function update( effect = true ) {
 
 		const options = {};
 
@@ -79,7 +79,7 @@ function ViewportControls( editor ) {
 			: editor.camera;
 
 		cameraSelect.setValue( selectedCamera.uuid );
-		editor.setViewportCamera( selectedCamera.uuid );
+		if ( effect ) editor.setViewportCamera( selectedCamera.uuid );
 
 	}
 

粤ICP备19079148号