|
@@ -1828,7 +1828,7 @@ function WebGLRenderer( parameters ) {
|
|
|
material.isMeshBasicMaterial ||
|
|
|
material.isMeshStandardMaterial ||
|
|
|
material.isShaderMaterial ||
|
|
|
- material.skinning ) {
|
|
|
+ object.isSkinnedMesh ) {
|
|
|
|
|
|
p_uniforms.setValue( _gl, 'viewMatrix', camera.matrixWorldInverse );
|
|
|
|
|
@@ -1843,7 +1843,7 @@ function WebGLRenderer( parameters ) {
|
|
|
// auto-setting of texture unit for bone texture must go before other textures
|
|
|
// not sure why, but otherwise weird things happen
|
|
|
|
|
|
- if ( material.skinning ) {
|
|
|
+ if ( object.isSkinnedMesh ) {
|
|
|
|
|
|
p_uniforms.setOptional( _gl, object, 'bindMatrix' );
|
|
|
p_uniforms.setOptional( _gl, object, 'bindMatrixInverse' );
|