|
@@ -1803,7 +1803,7 @@ function WebGLRenderer( parameters ) {
|
|
|
material.isMeshBasicMaterial ||
|
|
|
material.isMeshStandardMaterial ||
|
|
|
material.isShaderMaterial ||
|
|
|
- object.isSkinnedMesh ) {
|
|
|
+ material.skinning ) {
|
|
|
|
|
|
p_uniforms.setValue( _gl, 'viewMatrix', camera.matrixWorldInverse );
|
|
|
|
|
@@ -1818,7 +1818,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 ( object.isSkinnedMesh ) {
|
|
|
+ if ( material.skinning ) {
|
|
|
|
|
|
p_uniforms.setOptional( _gl, object, 'bindMatrix' );
|
|
|
p_uniforms.setOptional( _gl, object, 'bindMatrixInverse' );
|