Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Show First 20 Lines • Show All 2,961 Lines • ▼ Show 20 Lines | /* grease pencil default animation channel color */ | ||||
| for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) { | for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) { | ||||
| /* default channel color */ | /* default channel color */ | ||||
| ARRAY_SET_ITEMS(gpl->color, 0.2f, 0.2f, 0.2f); | ARRAY_SET_ITEMS(gpl->color, 0.2f, 0.2f, 0.2f); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 280, 54)) { | |||||
| for (Object *ob = bmain->objects.first; ob; ob = ob->id.next) { | |||||
| bool is_first_subdiv = true; | |||||
| for (ModifierData *md = ob->modifiers.first; md; md = md->next) { | |||||
| if (md->type == eModifierType_Subsurf) { | |||||
| SubsurfModifierData *smd = (SubsurfModifierData *)md; | |||||
| if (is_first_subdiv) { | |||||
| smd->flags |= eSubsurfModifierFlag_UseCrease; | |||||
| } | |||||
| else { | |||||
| smd->flags &= eSubsurfModifierFlag_UseCrease; | |||||
brecht: `&=` -> `&= ~` | |||||
| } | |||||
| is_first_subdiv = false; | |||||
| } | |||||
| else if (md->type == eModifierType_Multires) { | |||||
| MultiresModifierData *mmd = (MultiresModifierData *)md; | |||||
| if (is_first_subdiv) { | |||||
| mmd->flags |= eMultiresModifierFlag_UseCrease; | |||||
| } | |||||
| else { | |||||
| mmd->flags &= eMultiresModifierFlag_UseCrease; | |||||
brechtUnsubmitted Not Done Inline Actions&= -> &= ~ brecht: `&=` -> `&= ~` | |||||
| } | |||||
| is_first_subdiv = false; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| { | { | ||||
| /* Versioning code until next subversion bump goes here. */ | /* Versioning code until next subversion bump goes here. */ | ||||
| } | } | ||||
| } | } | ||||
&= -> &= ~