Object Mode: enable mode locking by default

This is meant to be default behavior for 2.8, see T55246
This commit is contained in:
Campbell Barton 2018-06-20 10:18:53 +02:00
parent df2d05b203
commit 570f3e6719
2 changed files with 4 additions and 1 deletions

View File

@ -628,6 +628,8 @@ void BKE_scene_init(Scene *sce)
CURVEMAP_SLOPE_POS_NEG);
sce->toolsettings = MEM_callocN(sizeof(struct ToolSettings), "Tool Settings Struct");
sce->toolsettings->object_flag |= SCE_OBJECT_MODE_LOCK;
sce->toolsettings->doublimit = 0.001;
sce->toolsettings->vgroup_weight = 1.0f;
sce->toolsettings->uvcalc_margin = 0.001f;

View File

@ -141,6 +141,8 @@ void BLO_update_defaults_startup_blend(Main *bmain)
if (scene->toolsettings) {
ToolSettings *ts = scene->toolsettings;
ts->object_flag |= SCE_OBJECT_MODE_LOCK;
ts->uvcalc_flag |= UVCALC_TRANSFORM_CORRECT;
if (ts->sculpt) {
@ -402,4 +404,3 @@ void BLO_update_defaults_startup_blend(Main *bmain)
}
}
}