瀏覽代碼

Ensure camera controls is enabled after object removal

Temdog007 6 年之前
父節點
當前提交
969acc8671
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/js/Viewport.js

+ 1 - 0
editor/js/Viewport.js

@@ -413,6 +413,7 @@ var Viewport = function ( editor ) {
 
 	signals.objectRemoved.add( function ( object ) {
 
+		controls.enabled = true;
 		if ( object === transformControls.object ) {
 
 			transformControls.detach();