diff options
author | Ton Roosendaal <ton@blender.org> | 2006-07-05 19:59:26 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-07-05 19:59:26 +0400 |
commit | 28f08bd1226e7279cd83bf791940ee49e806577b (patch) | |
tree | efcaaa1aaf926edb0a91625a45522b0ec1b4b522 /source | |
parent | bb15d0f60ff1165216db95ab08e509dc0d167d0d (diff) |
Plumiferos report:
Bone renaming goes over a complex series of checks, which includes
checking all objects that have relations to the armature. the call
modifiers_usesArmature() didn't check properly for existing pointer...
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/modifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c index 150897fe1e3..1f90c313561 100644 --- a/source/blender/blenkernel/intern/modifier.c +++ b/source/blender/blenkernel/intern/modifier.c @@ -2140,7 +2140,7 @@ int modifiers_usesArmature(Object *ob, bArmature *arm) for (; md; md=md->next) { if (md->type==eModifierType_Armature) { ArmatureModifierData *amd = (ArmatureModifierData*) md; - if (amd->object->data==arm) + if (amd->object && amd->object->data==arm) return 1; } } |