Skip to content

Commit

Permalink
Editor: Signal clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 15, 2021
1 parent e041a2f commit 0f418c7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion editor/js/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function Editor() {
transformModeChanged: new Signal(),
snapChanged: new Signal(),
spaceChanged: new Signal(),
rendererChanged: new Signal(),
rendererCreated: new Signal(),
rendererUpdated: new Signal(),

sceneBackgroundChanged: new Signal(),
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Script.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Script( editor ) {

var renderer;

signals.rendererChanged.add( function ( newRenderer ) {
signals.rendererCreated.add( function ( newRenderer ) {

renderer = newRenderer;

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Project.Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function SidebarProjectRenderer( editor ) {
currentRenderer.toneMapping = parseFloat( toneMappingSelect.getValue() );
currentRenderer.toneMappingExposure = toneMappingExposure.getValue();

signals.rendererChanged.dispatch( currentRenderer );
signals.rendererCreated.dispatch( currentRenderer );

}

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Viewport.VR.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class VR {

} );

signals.rendererChanged.add( ( value ) => {
signals.rendererCreated.add( ( value ) => {

renderer = value;
renderer.xr.enabled = true;
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ function Viewport( editor ) {

} );

signals.rendererChanged.add( function ( newRenderer ) {
signals.rendererCreated.add( function ( newRenderer ) {

if ( renderer !== null ) {

Expand Down

0 comments on commit 0f418c7

Please sign in to comment.