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:
authorTon Roosendaal <ton@blender.org>2005-07-09 17:41:01 +0400
committerTon Roosendaal <ton@blender.org>2005-07-09 17:41:01 +0400
commitc8f195d00c8340de35ce6e712197049b07b9dc62 (patch)
treeefc931ed38b59652cb29d53252b80b447d6cec58 /source/blender/blenloader/intern/writefile.c
parent24c9dc7322d6087317899cd9926b121d6428c1f9 (diff)
- Fix for action constraints; for Bone targets (target is input bone
actually) only the relative rotation is used. - Added scale=1.0 initializer in saving files, this fixes a little bit better upward compatibility - Still there are cases where bones flip 180 degrees when you read it with older Blenders... not sure what it is caused by
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r--source/blender/blenloader/intern/writefile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index b1e86f7ad85..1e754dd3b90 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -1319,11 +1319,12 @@ static void write_bone(WriteData *wd, Bone* bone)
{
Bone* cbone;
-// write_constraints(wd, &bone->constraints);
-
+ // PATCH for upward compatibility after 2.37+ armature recode
+ bone->size[0]= bone->size[1]= bone->size[2]= 1.0f;
+
// Write this bone
writestruct(wd, DATA, "Bone", 1, bone);
-
+
// Write Children
cbone= bone->childbase.first;
while(cbone) {