Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
| #include "BKE_animsys.h" | #include "BKE_animsys.h" | ||||
| #include "BKE_collection.h" | #include "BKE_collection.h" | ||||
| #include "BKE_colortools.h" | #include "BKE_colortools.h" | ||||
| #include "BKE_gpencil.h" | #include "BKE_gpencil.h" | ||||
| #include "BKE_lib_id.h" | #include "BKE_lib_id.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_mesh.h" | #include "BKE_mesh.h" | ||||
| #include "BKE_multires.h" | |||||
| #include "BKE_node.h" | #include "BKE_node.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "BLO_readfile.h" | #include "BLO_readfile.h" | ||||
| #include "readfile.h" | #include "readfile.h" | ||||
| /* Make preferences read-only, use versioning_userdef.c. */ | /* Make preferences read-only, use versioning_userdef.c. */ | ||||
| ▲ Show 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | for (int input_id = 21; input_id >= 18; input_id--) { | ||||
| MEM_freeN(node_name_escaped); | MEM_freeN(node_name_escaped); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| FOREACH_NODETREE_END; | FOREACH_NODETREE_END; | ||||
| } | } | ||||
| } | } | ||||
| /* Convert all Multires displacement to Catmull-Clark subdivision limit surface. */ | |||||
| if (!MAIN_VERSION_ATLEAST(bmain, 292, 1)) { | |||||
| LISTBASE_FOREACH (Object *, ob, &bmain->objects) { | |||||
| ModifierData *md; | |||||
| for (md = ob->modifiers.first; md; md = md->next) { | |||||
| if (md->type == eModifierType_Multires) { | |||||
| MultiresModifierData *mmd = (MultiresModifierData *)md; | |||||
| if (mmd->simple) { | |||||
| multires_do_versions_simple_to_catmull_clark(ob, mmd); | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Versioning code until next subversion bump goes here. | * Versioning code until next subversion bump goes here. | ||||
| * | * | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - #blo_do_versions_290 in this file. | * - #blo_do_versions_290 in this file. | ||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | * - "versioning_userdef.c", #blo_do_versions_userdef | ||||
| * - "versioning_userdef.c", #do_versions_theme | * - "versioning_userdef.c", #do_versions_theme | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 643 Lines • Show Last 20 Lines | |||||