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

Another handy message to have.

Otherwise you get "Uncaught TypeError: Cannot call method 'getInverse' of undefined".
上级 e60c1795
......@@ -83,6 +83,13 @@ THREE.SVGRenderer = function () {
this.render = function ( scene, camera ) {
if ( camera instanceof THREE.Camera === false ) {
console.error( 'THREE.SVGRenderer.render: camera is not an instance of THREE.Camera.' );
return;
}
var e, el, element, material;
this.autoClear && this.clear();
......
......@@ -175,6 +175,13 @@ THREE.CanvasRenderer = function ( parameters ) {
this.render = function ( scene, camera ) {
if ( camera instanceof THREE.Camera === false ) {
console.error( 'THREE.CanvasRenderer.render: camera is not an instance of THREE.Camera.' );
return;
}
var e, el, element, material;
this.autoClear === true ? this.clear() : _context.setTransform( 1, 0, 0, - 1, _canvasWidthHalf, _canvasHeightHalf );
......
......@@ -3687,6 +3687,13 @@ THREE.WebGLRenderer = function ( parameters ) {
this.render = function ( scene, camera, renderTarget, forceClear ) {
if ( camera instanceof THREE.Camera === false ) {
console.error( 'THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.' );
return;
}
var i, il,
webglObject, object,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册