Преглед изворни кода

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' );