Object Mode: enable mode locking by default
This is meant to be default behavior for 2.8, see T55246
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user