提交 0102b69d 编写于 作者: M Mr.doob

WebGLRenderer: Fixed camera type check. See #9661.

上级 5c3a37e3
......@@ -1126,7 +1126,7 @@ function WebGLRenderer( parameters ) {
this.render = function ( scene, camera, renderTarget, forceClear ) {
if ( ( camera && camera.isCamera ) === false ) {
if ( camera !== undefined && camera.isCamera !== true ) {
console.error( 'THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.' );
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册