diff options
author | Ton Roosendaal <ton@blender.org> | 2005-07-09 17:41:01 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-07-09 17:41:01 +0400 |
commit | c8f195d00c8340de35ce6e712197049b07b9dc62 (patch) | |
tree | efc931ed38b59652cb29d53252b80b447d6cec58 /source/blender/blenloader/intern/writefile.c | |
parent | 24c9dc7322d6087317899cd9926b121d6428c1f9 (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.c | 7 |
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) { |