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
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2010-05-25 19:26:12 +0400
committerDalai Felinto <dfelinto@gmail.com>2010-05-25 19:26:12 +0400
commit13f1ce8bdcef148adbed4749c7dd8f6a3e37f474 (patch)
tree7e5565cf2b3f39660af3d147b7b5383c5d9f39ea /source/blender/blenloader
parentf7c4dd6d56be173cc1a63be9d72d212e3dca4c7c (diff)
fix for recent commit "armature conversion to modifier" (armature->deformflag crash on doversion)
reported by Joerg Mueller (Nexyon)
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index b23be6917ac..9125a255333 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -10877,14 +10877,15 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
/* parent type to modifier */
for(ob = main->object.first; ob; ob = ob->id.next) {
if(ob->parent) {
- Object *parent= newlibadr(fd, lib, ob->parent);
+ Object *parent= (Object *)newlibadr(fd, lib, ob->parent);
if(parent->type==OB_ARMATURE && ob->partype==PARSKEL) {
ArmatureModifierData *amd;
+ bArmature *arm= (bArmature *)newlibadr(fd, lib, parent->data);
amd = (ArmatureModifierData*) modifier_new(eModifierType_Armature);
amd->object = ob->parent;
BLI_addtail((ListBase*)&ob->modifiers, amd);
- amd->deformflag= ((bArmature *)(parent->data))->deformflag;
+ amd->deformflag= arm->deformflag;
ob->partype = PAROBJECT;
}
else if(parent->type==OB_LATTICE && ob->partype==PARSKEL) {