Преглед на файлове

Merge pull request #10953 from gero3/editorCameraScripts

This allow scripts to be added to the camera
Mr.doob преди 8 години
родител
ревизия
263832aaf5
променени са 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' );