File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ function WebGLPrograms( renderer, capabilities ) {
64
64
if ( maxBones < object . skeleton . bones . length ) {
65
65
66
66
console . warn ( 'WebGLRenderer: too many bones - ' + object . skeleton . bones . length + ', this GPU supports just ' + maxBones + ' (try OpenGL instead of ANGLE)' ) ;
67
+ return 0 ;
67
68
68
69
}
69
70
@@ -169,7 +170,7 @@ function WebGLPrograms( renderer, capabilities ) {
169
170
sizeAttenuation : material . sizeAttenuation ,
170
171
logarithmicDepthBuffer : capabilities . logarithmicDepthBuffer ,
171
172
172
- skinning : ( object && object . isSkinnedMesh ) ,
173
+ skinning : ( object && object . isSkinnedMesh ) && maxBones > 0 ,
173
174
maxBones : maxBones ,
174
175
useVertexTexture : capabilities . floatVertexTextures && object && object . skeleton && object . skeleton . useVertexTexture ,
175
176
You can’t perform that action at this time.
0 commit comments