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

CanvasRenderer and SVGRenderer fix. material === undefined instead of material === null.

上级 91fedbd8
......@@ -77,7 +77,6 @@
{ material: new THREE.MeshDepthMaterial( { overdraw: true } ), doubleSided: false },
{ material: new THREE.MeshNormalMaterial( { overdraw: true } ), doubleSided: false },
{ material: new THREE.MeshBasicMaterial( { map: THREE.ImageUtils.loadTexture( 'textures/land_ocean_ice_cloud_2048.jpg' ) } ), doubleSided: false },
{ material: new THREE.MeshLambertMaterial( { map: THREE.ImageUtils.loadTexture( 'textures/land_ocean_ice_cloud_2048.jpg' ) } ), doubleSided: false },
{ material: new THREE.MeshBasicMaterial( { envMap: THREE.ImageUtils.loadTexture( 'textures/envmap.png', new THREE.SphericalReflectionMapping() ) } ), doubleSided: false }
];
......
......@@ -206,7 +206,7 @@ THREE.CanvasRenderer = function ( parameters ) {
material = element.material;
material = material instanceof THREE.MeshFaceMaterial ? element.faceMaterial : material;
if ( material === null || material.visible === false ) continue;
if ( material === undefined || material.visible === false ) continue;
_bboxRect.empty();
......
......@@ -111,7 +111,7 @@ THREE.SVGRenderer = function () {
material = element.material;
material = material instanceof THREE.MeshFaceMaterial ? element.faceMaterial : material;
if ( material === null || material.visible === false ) continue;
if ( material === undefined || material.visible === false ) continue;
_bboxRect.empty();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册