Explorar o código

Editor: Fixed error when selecting scene. See #10305.

Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
3e24f2f21c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/js/Viewport.js

+ 1 - 1
editor/js/Viewport.js

@@ -381,7 +381,7 @@ var Viewport = function ( editor ) {
 		selectionBox.visible = false;
 		transformControls.detach();
 
-		if ( object !== null ) {
+		if ( object !== null && object !== scene ) {
 
 			box.setFromObject( object );