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:
-rw-r--r--source/blender/blenloader/intern/versioning_280.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 5d1d4a9ad2f..906dc96be01 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -723,24 +723,12 @@ void do_versions_after_linking_280(Main *bmain)
if (!MAIN_VERSION_ATLEAST(bmain, 280, 4)) {
for (Object *object = bmain->object.first; object; object = object->id.next) {
-#ifndef VERSION_280_SUBVERSION_4
- /* If any object already has an initialized value for
- * duplicator_visibility_flag it means we've already doversioned it.
- * TODO(all) remove the VERSION_280_SUBVERSION_4 code once the subversion was bumped. */
- if (object->duplicator_visibility_flag != 0) {
- break;
- }
-#endif
if (object->particlesystem.first) {
object->duplicator_visibility_flag = OB_DUPLI_FLAG_VIEWPORT;
for (ParticleSystem *psys = object->particlesystem.first; psys; psys = psys->next) {
if (psys->part->draw & PART_DRAW_EMITTER) {
object->duplicator_visibility_flag |= OB_DUPLI_FLAG_RENDER;
-#ifndef VERSION_280_SUBVERSION_4
- psys->part->draw &= ~PART_DRAW_EMITTER;
-#else
break;
-#endif
}
}
}
@@ -751,6 +739,11 @@ void do_versions_after_linking_280(Main *bmain)
object->duplicator_visibility_flag = OB_DUPLI_FLAG_VIEWPORT | OB_DUPLI_FLAG_RENDER;
}
}
+
+ /* Cleanup deprecated flag from particlesettings data-blocks. */
+ for (ParticleSettings *part = bmain->particle.first; part; part = part->id.next) {
+ part->draw &= ~PART_DRAW_EMITTER;
+ }
}
/* SpaceTime & SpaceLogic removal/replacing */