Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.c
| Show First 20 Lines • Show All 2,523 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (Brush *, brush, &bmain->brushes) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (brush->curves_sculpt_settings != NULL) { | if (brush->curves_sculpt_settings != NULL) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| brush->curves_sculpt_settings = MEM_callocN(sizeof(BrushCurvesSculptSettings), __func__); | brush->curves_sculpt_settings = MEM_callocN(sizeof(BrushCurvesSculptSettings), __func__); | ||||
| brush->curves_sculpt_settings->add_amount = 1; | brush->curves_sculpt_settings->add_amount = 1; | ||||
| } | } | ||||
| LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | |||||
| if (scene->toolsettings && scene->toolsettings->curves_sculpt && | |||||
| scene->toolsettings->curves_sculpt->curve_length == 0.0f) { | |||||
| scene->toolsettings->curves_sculpt->curve_length = 0.3f; | |||||
| } | |||||
| } | |||||
| for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | ||||
| LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | ||||
| LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) { | LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) { | ||||
| if (sl->spacetype == SPACE_OUTLINER) { | if (sl->spacetype == SPACE_OUTLINER) { | ||||
| SpaceOutliner *space_outliner = (SpaceOutliner *)sl; | SpaceOutliner *space_outliner = (SpaceOutliner *)sl; | ||||
| space_outliner->filter &= ~SO_FILTER_CLEARED_1; | space_outliner->filter &= ~SO_FILTER_CLEARED_1; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) { | ||||
| LISTBASE_FOREACH (SpaceLink *, space, &area->spacedata) { | LISTBASE_FOREACH (SpaceLink *, space, &area->spacedata) { | ||||
| if (space->spacetype == SPACE_NODE) { | if (space->spacetype == SPACE_NODE) { | ||||
| SpaceNode *snode = (SpaceNode *)space; | SpaceNode *snode = (SpaceNode *)space; | ||||
| snode->overlay.flag |= SN_OVERLAY_SHOW_NAMED_ATTRIBUTES; | snode->overlay.flag |= SN_OVERLAY_SHOW_NAMED_ATTRIBUTES; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| LISTBASE_FOREACH (Brush *, brush, &bmain->brushes) { | |||||
| BrushCurvesSculptSettings *settings = brush->curves_sculpt_settings; | |||||
| if (settings == NULL) { | |||||
| continue; | |||||
| } | |||||
| if (settings->curve_length == 0.0f) { | |||||
| settings->curve_length = 0.3f; | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||