Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-05 19:59:26 +0400
committerTon Roosendaal <ton@blender.org>2006-07-05 19:59:26 +0400
commit28f08bd1226e7279cd83bf791940ee49e806577b (patch)
treeefcaaa1aaf926edb0a91625a45522b0ec1b4b522 /source
parentbb15d0f60ff1165216db95ab08e509dc0d167d0d (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.c2
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;
}
}