Skip to content

Commit

Permalink
WebGLRenderer: object.isMesh is always undefined when using Immediate…
Browse files Browse the repository at this point in the history
…RenderObject.
  • Loading branch information
mrdoob committed Jul 8, 2018
1 parent d117b5c commit 76f5304
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
TriangleFanDrawMode,
TriangleStripDrawMode,
TrianglesDrawMode,
NoColors,
LinearToneMapping,
BackSide
} from '../constants.js';
Expand Down Expand Up @@ -1385,9 +1384,7 @@ function WebGLRenderer( parameters ) {

if ( object.isImmediateRenderObject ) {

var frontFaceCW = ( object.isMesh && object.normalMatrix.determinant() < 0 );

state.setMaterial( material, frontFaceCW );
state.setMaterial( material );

var program = setProgram( camera, scene.fog, material, object );

Expand Down

0 comments on commit 76f5304

Please sign in to comment.