Browse Source

Merge pull request #10953 from gero3/editorCameraScripts

This allow scripts to be added to the camera
Mr.doob 8 năm trước cách đây
mục cha
commit
263832aaf5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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' );