diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-17 09:26:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-17 09:32:42 +0300 |
commit | 8ec7429a70cca85dd3bc7f29f1ac5030aec7054f (patch) | |
tree | 34c1e703cdb3998f8ae5d3d0f2340afa828327a5 /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | 7fac1bfc203198583eb2e65caedec6b32c24484f (diff) | |
parent | 42b9df5907d041a5a68585308b1e11b2eac2c947 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 65de2e1c0ff..24ce5c5788d 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -222,7 +222,7 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel): def draw(self, context): layout = self.layout - toolsettings = context.tool_settings + tool_settings = context.tool_settings settings = self.paint_settings(context) brush = settings.brush @@ -265,7 +265,7 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel): row = col.row(align=True) - ups = toolsettings.unified_paint_settings + ups = tool_settings.unified_paint_settings if ((ups.use_unified_size and ups.use_locked_size) or ((not ups.use_unified_size) and brush.use_locked_size)): self.prop_unified_size(row, context, brush, "use_locked_size", icon='LOCKED') @@ -415,8 +415,8 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel): col.prop(brush, "use_projected") col = layout.column() - col.prop(toolsettings, "use_auto_normalize", text="Auto Normalize") - col.prop(toolsettings, "use_multipaint", text="Multi-Paint") + col.prop(tool_settings, "use_auto_normalize", text="Auto Normalize") + col.prop(tool_settings, "use_multipaint", text="Multi-Paint") # Vertex Paint Mode # elif context.vertex_paint_object and brush: @@ -575,8 +575,8 @@ class VIEW3D_PT_stencil_projectpaint(View3DPanel, Panel): layout.use_property_split = True layout.use_property_decorate = False - toolsettings = context.tool_settings - ipaint = toolsettings.image_paint + tool_settings = context.tool_settings + ipaint = tool_settings.image_paint ob = context.active_object mesh = ob.data @@ -870,8 +870,8 @@ class VIEW3D_PT_sculpt_dyntopo(Panel, View3DPaintPanel): layout.use_property_split = True layout.use_property_decorate = False - toolsettings = context.tool_settings - sculpt = toolsettings.sculpt + tool_settings = context.tool_settings + sculpt = tool_settings.sculpt settings = self.paint_settings(context) brush = settings.brush @@ -906,8 +906,8 @@ class VIEW3D_PT_sculpt_dyntopo_remesh(Panel, View3DPaintPanel): layout.use_property_split = True layout.use_property_decorate = False - toolsettings = context.tool_settings - sculpt = toolsettings.sculpt + tool_settings = context.tool_settings + sculpt = tool_settings.sculpt col = layout.column() col.active = context.sculpt_object.use_dynamic_topology_sculpting @@ -939,8 +939,8 @@ class VIEW3D_PT_sculpt_options(Panel, View3DPaintPanel): layout.use_property_split = True layout.use_property_decorate = False - toolsettings = context.tool_settings - sculpt = toolsettings.sculpt + tool_settings = context.tool_settings + sculpt = tool_settings.sculpt flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False) @@ -986,8 +986,8 @@ class VIEW3D_PT_sculpt_options_gravity(Panel, View3DPaintPanel): layout.use_property_split = True layout.use_property_decorate = False - toolsettings = context.tool_settings - sculpt = toolsettings.sculpt + tool_settings = context.tool_settings + sculpt = tool_settings.sculpt capabilities = sculpt.brush.sculpt_capabilities col = layout.column() @@ -1150,8 +1150,8 @@ class VIEW3D_PT_tools_weightpaint_symmetry(Panel, View3DPaintPanel): def draw(self, context): layout = self.layout - toolsettings = context.tool_settings - wpaint = toolsettings.weight_paint + tool_settings = context.tool_settings + wpaint = tool_settings.weight_paint draw_vpaint_symmetry(layout, wpaint) @@ -1203,8 +1203,8 @@ class VIEW3D_PT_tools_vertexpaint_symmetry(Panel, View3DPaintPanel): def draw(self, context): layout = self.layout - toolsettings = context.tool_settings - vpaint = toolsettings.vertex_paint + tool_settings = context.tool_settings + vpaint = tool_settings.vertex_paint draw_vpaint_symmetry(layout, vpaint) @@ -1222,8 +1222,8 @@ class VIEW3D_PT_tools_imagepaint_external(Panel, View3DPaintPanel): layout.use_property_split = True layout.use_property_decorate = False - toolsettings = context.tool_settings - ipaint = toolsettings.image_paint + tool_settings = context.tool_settings + ipaint = tool_settings.image_paint layout.prop(ipaint, "screen_grab_size", text="Screen Grab Size") @@ -1247,8 +1247,8 @@ class VIEW3D_PT_tools_imagepaint_symmetry(Panel, View3DPaintPanel): def draw(self, context): layout = self.layout - toolsettings = context.tool_settings - ipaint = toolsettings.image_paint + tool_settings = context.tool_settings + ipaint = tool_settings.image_paint split = layout.split() @@ -1281,8 +1281,8 @@ class VIEW3D_PT_tools_projectpaint(View3DPaintPanel, Panel): layout.use_property_split = True layout.use_property_decorate = False - toolsettings = context.tool_settings - ipaint = toolsettings.image_paint + tool_settings = context.tool_settings + ipaint = tool_settings.image_paint row = layout.row() row.prop(ipaint, "use_normal_falloff") @@ -1321,16 +1321,16 @@ class VIEW3D_PT_tools_projectpaint_cavity(View3DPaintPanel, Panel): bl_options = {'DEFAULT_CLOSED'} def draw_header(self, context): - toolsettings = context.tool_settings - ipaint = toolsettings.image_paint + tool_settings = context.tool_settings + ipaint = tool_settings.image_paint self.layout.prop(ipaint, "use_cavity", text="") def draw(self, context): layout = self.layout - toolsettings = context.tool_settings - ipaint = toolsettings.image_paint + tool_settings = context.tool_settings + ipaint = tool_settings.image_paint layout.active = ipaint.use_cavity @@ -1446,10 +1446,10 @@ class VIEW3D_PT_tools_normal(View3DPanel, Panel): layout.use_property_split = True layout.use_property_decorate = False # No animation. - toolsettings = context.tool_settings + tool_settings = context.tool_settings - layout.prop(toolsettings, "normal_vector", text="Normal Vector") - layout.prop(toolsettings, "face_strength", text="Face Strength") + layout.prop(tool_settings, "normal_vector", text="Normal Vector") + layout.prop(tool_settings, "face_strength", text="Face Strength") # ********** grease pencil object tool panels **************** |