Browse Source

don't allow scripts to be added to the camera

gero3 8 years ago
parent
commit
a09c989c08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/js/Sidebar.Script.js

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

@@ -102,7 +102,7 @@ Sidebar.Script = function ( editor ) {
 
 
 	signals.objectSelected.add( function ( object ) {
 	signals.objectSelected.add( function ( object ) {
 
 
-		if ( object !== null ) {
+		if ( object !== null && editor.camera !== object ) {
 
 
 			container.setDisplay( 'block' );
 			container.setDisplay( 'block' );