Skip to content

Commit 9f5f6ba

Browse files
committed
Merge pull request mrdoob#7323 from ruofeidu/patch-1
Fix null pointer err for some collada models
2 parents 5fa6333 + eb3dfab commit 9f5f6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/objects/SkinnedMesh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ THREE.SkinnedMesh = function ( geometry, material, useVertexTexture ) {
4343

4444
gbone = this.geometry.bones[ b ];
4545

46-
if ( gbone.parent !== - 1 ) {
46+
if ( gbone.parent !== - 1 && gbone.parent !== null) {
4747

4848
bones[ gbone.parent ].add( bones[ b ] );
4949

0 commit comments

Comments
 (0)