Skip to content
Snippets Groups Projects
Commit 4c6d9e90 authored by Amorilia's avatar Amorilia
Browse files

A few more bone related cleanups.

parent 04bd3a7c
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ NiSkinInstance::~NiSkinInstance() { ...@@ -32,7 +32,7 @@ NiSkinInstance::~NiSkinInstance() {
//Unflag any bones that were part of this skin instance //Unflag any bones that were part of this skin instance
for ( unsigned int i = 0; i < bones.size(); ++i ) { for ( unsigned int i = 0; i < bones.size(); ++i ) {
if (NULL != bones[i]) if (bones[i] != NULL)
bones[i]->SetSkinFlag(false); bones[i]->SetSkinFlag(false);
} }
...@@ -308,7 +308,9 @@ void NiSkinInstance::BindSkin( NiNode * skeleton_root, vector< Ref<NiNode> > bon ...@@ -308,7 +308,9 @@ void NiSkinInstance::BindSkin( NiNode * skeleton_root, vector< Ref<NiNode> > bon
//Flag any bones that are part of this skin instance //Flag any bones that are part of this skin instance
for ( unsigned int i = 0; i < bones.size(); ++i ) { for ( unsigned int i = 0; i < bones.size(); ++i ) {
bones[i]->SetSkinFlag(true); if ( bones[i] != NULL ) {
bones[i]->SetSkinFlag(true);
}
} }
//Store skeleton root and inform it of this attachment //Store skeleton root and inform it of this attachment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment