diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-17 00:03:16 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-17 00:03:16 +0300 |
commit | 7a60679c7508c3701e16f9243c73477a666654ce (patch) | |
tree | b26a3212b7030fdfed0dbec5315b8752126b7e54 /source/blender/blenloader/intern/readfile.c | |
parent | 6b407d488e936572c3a2cdefc4665258ced0743c (diff) |
Added stepsize option for Pose ghosting draw. Patch provided by Roland
Hess.
In a comment on maillist I already mentioned a weird 0.5 in the code,
which I added to ensure correct rounding to integer frame numbers.
With a variable step size however, this won't work properly. You could
see it in the patch, because the ghost steps were animating.... they
should remain frozen, looks much nicer then. So I've added some fmod
voodoo here.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index c974187fffc..ede1c3be45c 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5009,6 +5009,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } if(main->versionfile <= 239) { + bArmature *arm; Object *ob; Scene *sce= main->scene.first; Camera *cam= main->camera.first; @@ -5030,6 +5031,11 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } + /* updating stepsize for ghost drawing */ + for(arm= main->armature.first; arm; arm= arm->id.next) { + if (arm->ghostsize==0) arm->ghostsize=1; + } + while(sce) { /* make 'innervert' the default subdivide type, for backwards compat */ sce->toolsettings->cornertype=1; |