Check file dry run mode and lock object mode
1.5.7 - feat: check list, Specify in addon pref if you prefer a dry run (check without set) - feat: check file can change the lock object mode state (do nothing by default)
This commit is contained in:
+17
-1
@@ -17,6 +17,12 @@ def change_edit_lines_opacity(self, context):
|
||||
|
||||
|
||||
class GP_PG_FixSettings(bpy.types.PropertyGroup):
|
||||
|
||||
check_only : BoolProperty(
|
||||
name="Dry run mode (Check only)",
|
||||
description="Do not change anything, just print the messages",
|
||||
default=False, options={'HIDDEN'})
|
||||
|
||||
lock_main_cam : BoolProperty(
|
||||
name="Lock Main Cam",
|
||||
description="Lock the main camera (works only if 'layout' is not in name)",
|
||||
@@ -79,7 +85,7 @@ class GP_PG_FixSettings(bpy.types.PropertyGroup):
|
||||
|
||||
## default active tool to use
|
||||
select_active_tool : EnumProperty(
|
||||
name="Default selection tool", description="Active tool to set when launching check fix scene",
|
||||
name="Set Default Selection Tool", description="Active tool to set when launching check fix scene",
|
||||
default='builtin.select_lasso',
|
||||
items=(
|
||||
('none', 'Dont change', 'Let the current active tool without change', 0),#'MOUSE_RMB'
|
||||
@@ -99,6 +105,16 @@ class GP_PG_FixSettings(bpy.types.PropertyGroup):
|
||||
('ABSOLUTE', 'Absolute', 'Check if all path are absolute', 2),
|
||||
))
|
||||
|
||||
## check set lock object mode
|
||||
lock_object_mode : EnumProperty(
|
||||
name="Set Lock Object Mode", description="Set 'Lock object mode' parameter check'",
|
||||
default='none',
|
||||
items=(
|
||||
('none', 'Do nothing', 'Do not set', 0),
|
||||
('LOCK', 'Lock object mode', 'Toggle lock object mode On', 1),
|
||||
('UNLOCK', 'Unlock object mode', 'Toggle lock object mode Off', 2),
|
||||
))
|
||||
|
||||
class GP_PG_ToolsSettings(bpy.types.PropertyGroup):
|
||||
eraser_radius : IntProperty(
|
||||
name="Eraser Radius", description="Radius of eraser brush",
|
||||
|
||||
Reference in New Issue
Block a user