diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-02-06 14:05:34 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-02-06 14:05:34 +0300 |
commit | 45478158479d3aa695de9dfafc2fe433d1ae0f51 (patch) | |
tree | 0be810545b6b18d0aa73480c465d72647258cd61 /source/blender/blenloader | |
parent | 6202bc82b858d8f6876c6c20ec62dd0a16209087 (diff) |
Cleanup: Remove deprecated ghosting code
Most of this code is deprecated for many years already and does not
work at all in Blender 2.8.
Reviewers: brecht, aligorith
Differential Revision: https://developer.blender.org/D4271
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_250.c | 42 | ||||
-rw-r--r-- | source/blender/blenloader/intern/versioning_legacy.c | 2 |
2 files changed, 6 insertions, 38 deletions
diff --git a/source/blender/blenloader/intern/versioning_250.c b/source/blender/blenloader/intern/versioning_250.c index 538a38ba0b4..08c1cefb0a0 100644 --- a/source/blender/blenloader/intern/versioning_250.c +++ b/source/blender/blenloader/intern/versioning_250.c @@ -1228,41 +1228,13 @@ void blo_do_versions_250(FileData *fd, Library *lib, Main *bmain) if (arm) { /* XXX - why does this fail in some cases? */ bAnimVizSettings *avs = &ob->pose->avs; - /* ghosting settings ---------------- */ - /* ranges */ - avs->ghost_bc = avs->ghost_ac = arm->ghostep; - - avs->ghost_sf = arm->ghostsf; - avs->ghost_ef = arm->ghostef; - if ((avs->ghost_sf == avs->ghost_ef) && (avs->ghost_sf == 0)) { - avs->ghost_sf = 1; - avs->ghost_ef = 100; - } - - /* type */ - if (arm->ghostep == 0) - avs->ghost_type = GHOST_TYPE_NONE; - else - avs->ghost_type = arm->ghosttype + 1; - - /* stepsize */ - avs->ghost_step = arm->ghostsize; - if (avs->ghost_step == 0) - avs->ghost_step = 1; - /* path settings --------------------- */ /* ranges */ - avs->path_bc = arm->pathbc; - avs->path_ac = arm->pathac; - if ((avs->path_bc == avs->path_ac) && (avs->path_bc == 0)) - avs->path_bc = avs->path_ac = 10; - - avs->path_sf = arm->pathsf; - avs->path_ef = arm->pathef; - if ((avs->path_sf == avs->path_ef) && (avs->path_sf == 0)) { - avs->path_sf = 1; - avs->path_ef = 250; - } + avs->path_bc = 10; + avs->path_ac = 10; + + avs->path_sf = 1; + avs->path_ef = 250; /* flags */ if (arm->pathflag & ARM_PATH_FNUMS) @@ -1281,9 +1253,7 @@ void blo_do_versions_250(FileData *fd, Library *lib, Main *bmain) avs->path_type = MOTIONPATH_TYPE_ACFRA; /* stepsize */ - avs->path_step = arm->pathsize; - if (avs->path_step == 0) - avs->path_step = 1; + avs->path_step = 1; } else animviz_settings_init(&ob->pose->avs); diff --git a/source/blender/blenloader/intern/versioning_legacy.c b/source/blender/blenloader/intern/versioning_legacy.c index 0a8e34d16fd..3bb6cbc401e 100644 --- a/source/blender/blenloader/intern/versioning_legacy.c +++ b/source/blender/blenloader/intern/versioning_legacy.c @@ -1511,8 +1511,6 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain) /* updating stepsize for ghost drawing */ for (arm = bmain->armature.first; arm; arm = arm->id.next) { - if (arm->ghostsize == 0) - arm->ghostsize = 1; bone_version_239(&arm->bonebase); if (arm->layer == 0) arm->layer = 1; |