Browse Source

Editor: Fixed castShadow being added to objects with undefined castShadow.

Mr.doob 9 years ago
parent
commit
e350b86af4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/js/Sidebar.Object.js

+ 1 - 1
editor/js/Sidebar.Object.js

@@ -462,7 +462,7 @@ Sidebar.Object = function ( editor ) {
 
 			}
 
-			if ( object.castShadow !== objectCastShadow.getValue() ) {
+			if ( object.castShadow !== undefined && object.castShadow !== objectCastShadow.getValue() ) {
 
 				editor.execute( new SetValueCommand( object, 'castShadow', objectCastShadow.getValue() ) );