فهرست منبع

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 ) {
 	signals.objectRemoved.add( function ( object ) {
 
 
+		controls.enabled = true;
 		if ( object === transformControls.object ) {
 		if ( object === transformControls.object ) {
 
 
 			transformControls.detach();
 			transformControls.detach();