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:
authorJacques Lucke <jacques@blender.org>2020-11-06 20:25:44 +0300
committerJacques Lucke <jacques@blender.org>2020-11-06 20:25:51 +0300
commit638913a3c08990697e08195e00f5f9cf472c04be (patch)
treecd93247443e3afbdb7a762391f7dc02e10436f4d /source/blender/blenloader/intern/versioning_legacy.c
parent16732def37c5a66f3ea28dbe247b09cc6bca6677 (diff)
Refactor: move Object .blend I/O to IDTypeInfo callbacks
Diffstat (limited to 'source/blender/blenloader/intern/versioning_legacy.c')
-rw-r--r--source/blender/blenloader/intern/versioning_legacy.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/source/blender/blenloader/intern/versioning_legacy.c b/source/blender/blenloader/intern/versioning_legacy.c
index 9178ec97d3d..d654a0e30bd 100644
--- a/source/blender/blenloader/intern/versioning_legacy.c
+++ b/source/blender/blenloader/intern/versioning_legacy.c
@@ -75,6 +75,7 @@
#include "BKE_main.h" /* for Main */
#include "BKE_mesh.h" /* for ME_ defines (patching) */
#include "BKE_modifier.h"
+#include "BKE_object.h"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
@@ -461,20 +462,6 @@ static void do_version_constraints_245(ListBase *lb)
}
}
-PartEff *blo_do_version_give_parteff_245(Object *ob)
-{
- PartEff *paf;
-
- paf = ob->effect.first;
- while (paf) {
- if (paf->type == EFF_PARTICLE) {
- return paf;
- }
- paf = paf->next;
- }
- return NULL;
-}
-
/* NOTE: this version patch is intended for versions < 2.52.2,
* but was initially introduced in 2.27 already. */
void blo_do_version_old_trackto_to_constraints(Object *ob)
@@ -718,7 +705,7 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain)
Object *ob = bmain->objects.first;
PartEff *paf;
while (ob) {
- paf = blo_do_version_give_parteff_245(ob);
+ paf = BKE_object_do_version_give_parteff_245(ob);
if (paf) {
if (paf->staticstep == 0) {
paf->staticstep = 5;
@@ -1476,7 +1463,7 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain)
}
}
- paf = blo_do_version_give_parteff_245(ob);
+ paf = BKE_object_do_version_give_parteff_245(ob);
if (paf) {
if (paf->disp == 0) {
paf->disp = 100;
@@ -2233,7 +2220,7 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain)
}
/* convert old particles to new system */
- if ((paf = blo_do_version_give_parteff_245(ob))) {
+ if ((paf = BKE_object_do_version_give_parteff_245(ob))) {
ParticleSystem *psys;
ModifierData *md;
ParticleSystemModifierData *psmd;