Browse Source

Added commented out future devtool calls.

Mr.doob 6 years ago
parent
commit
41e2b4ae3b
2 changed files with 12 additions and 0 deletions
  1. 6 0
      src/renderers/WebGLRenderer.js
  2. 6 0
      src/scenes/Scene.js

+ 6 - 0
src/renderers/WebGLRenderer.js

@@ -2602,6 +2602,12 @@ function WebGLRenderer( parameters ) {
 
 	};
 
+	/*
+	if ( typeof __THREE_DEVTOOLS__ !== undefined ) {
+		__THREE_DEVTOOLS__.dispatchEvent( { type: 'renderer', value: this } );
+	}
+	*/
+
 }
 
 export { WebGLRenderer };

+ 6 - 0
src/scenes/Scene.js

@@ -16,6 +16,12 @@ function Scene() {
 
 	this.autoUpdate = true; // checked by the renderer
 
+	/*
+	if ( typeof __THREE_DEVTOOLS__ !== undefined ) {
+		__THREE_DEVTOOLS__.dispatchEvent( { type: 'scene', value: this } );
+	}
+	*/
+
 }
 
 Scene.prototype = Object.assign( Object.create( Object3D.prototype ), {