소스 검색

Added commented out future devtool calls.

Mr.doob 6 년 전
부모
커밋
41e2b4ae3b
2개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  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 ), {