浏览代码

don't allow scripts to be added to the camera

gero3 8 年之前
父节点
当前提交
a09c989c08
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ) {
 
-		if ( object !== null ) {
+		if ( object !== null && editor.camera !== object ) {
 
 			container.setDisplay( 'block' );