Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Show First 20 Lines • Show All 2,902 Lines • ▼ Show 20 Lines | if (!MAIN_VERSION_ATLEAST(bmain, 280, 49)) { | ||||
| /* All tool names changed, reset to defaults. */ | /* All tool names changed, reset to defaults. */ | ||||
| for (WorkSpace *workspace = bmain->workspaces.first; workspace; workspace = workspace->id.next) { | for (WorkSpace *workspace = bmain->workspaces.first; workspace; workspace = workspace->id.next) { | ||||
| while (!BLI_listbase_is_empty(&workspace->tools)) { | while (!BLI_listbase_is_empty(&workspace->tools)) { | ||||
| BKE_workspace_tool_remove(workspace, workspace->tools.first); | BKE_workspace_tool_remove(workspace, workspace->tools.first); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| { | if (!MAIN_VERSION_ATLEAST(bmain, 280, 52)) { | ||||
| /* Versioning code until next subversion bump goes here. */ | |||||
| LISTBASE_FOREACH (ParticleSettings *, part, &bmain->particles) { | LISTBASE_FOREACH (ParticleSettings *, part, &bmain->particles) { | ||||
| /* Replace deprecated PART_DRAW_BB by PART_DRAW_NOT */ | /* Replace deprecated PART_DRAW_BB by PART_DRAW_NOT */ | ||||
| if (part->ren_as == PART_DRAW_BB) { | if (part->ren_as == PART_DRAW_BB) { | ||||
| part->ren_as = PART_DRAW_NOT; | part->ren_as = PART_DRAW_NOT; | ||||
| } | } | ||||
| if (part->draw_as == PART_DRAW_BB) { | if (part->draw_as == PART_DRAW_BB) { | ||||
| part->draw_as = PART_DRAW_NOT; | part->draw_as = PART_DRAW_NOT; | ||||
| } | } | ||||
| Show All 19 Lines | FOREACH_NODETREE_BEGIN(bmain, ntree, id) { | ||||
| } | } | ||||
| if (node->type == SH_NODE_BSDF_PRINCIPLED && node->custom2 == 0) { | if (node->type == SH_NODE_BSDF_PRINCIPLED && node->custom2 == 0) { | ||||
| node->custom2 = SHD_SUBSURFACE_BURLEY; | node->custom2 = SHD_SUBSURFACE_BURLEY; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } FOREACH_NODETREE_END; | } FOREACH_NODETREE_END; | ||||
| } | } | ||||
| { | |||||
| /* Versioning code until next subversion bump goes here. */ | |||||
| } | |||||
| } | } | ||||