Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-10-31 01:27:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-31 03:51:15 +0300
commitc469c72405d97ea5eab85c36a1ace04a57b2c447 (patch)
tree510cf104c64cce6ea055ceb96fb4d082001ad560 /release/scripts/startup/bl_ui/space_view3d_toolbar.py
parent3224b79289b5284719607fbb09b23d9d36d046cc (diff)
Cleanup: grease pencil RNA naming
Follow naming conventions for boolean's, Also rename enable_settings -> use_settings_postprocess.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 5f3052fd3dc..e8fffe0c309 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1371,7 +1371,7 @@ class VIEW3D_PT_tools_grease_pencil_brush(View3DPanel, Panel):
if brush is not None:
# XXX: Items in "sub" currently show up beside the brush selector in a separate column
if gp_settings.tool == 'ERASE':
- sub.prop(gp_settings, "default_eraser", text="")
+ sub.prop(gp_settings, "use_default_eraser", text="")
# Brush details
if gp_settings.tool == 'ERASE':
@@ -1399,13 +1399,13 @@ class VIEW3D_PT_tools_grease_pencil_brush(View3DPanel, Panel):
row = layout.row(align=True)
row.prop(gp_settings, "fill_draw_mode", text="Boundary Draw Mode")
- row.prop(gp_settings, "fill_show_boundary", text="", icon='GRID')
+ row.prop(gp_settings, "show_fill_boundary", text="", icon='GRID')
col = layout.column(align=True)
col.enabled = gp_settings.fill_draw_mode != 'STROKE'
- col.prop(gp_settings, "fill_hide", text="Ignore Transparent Strokes")
+ col.prop(gp_settings, "show_fill", text="Ignore Transparent Strokes")
sub = col.row(align=True)
- sub.enabled = gp_settings.fill_hide
+ sub.enabled = not gp_settings.show_fill
sub.prop(gp_settings, "fill_threshold", text="Threshold")
else: # bgpsettings.tool == 'DRAW':
row = layout.row(align=True)
@@ -1460,7 +1460,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_option(View3DPanel, Panel):
class VIEW3D_PT_tools_grease_pencil_brush_stabilizer(View3DPanel, Panel):
bl_context = ".greasepencil_paint"
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_option'
- bl_label = "Stabilizer"
+ bl_label = "Stabilizer Settings"
bl_options = {'DEFAULT_CLOSED'}
@classmethod
@@ -1473,7 +1473,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_stabilizer(View3DPanel, Panel):
def draw_header(self, context):
brush = context.active_gpencil_brush
gp_settings = brush.gpencil_settings
- self.layout.prop(gp_settings, "use_stabilizer", text="")
+ self.layout.prop(gp_settings, "use_settings_stabilizer", text="")
@staticmethod
def draw(self, context):
@@ -1483,7 +1483,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_stabilizer(View3DPanel, Panel):
brush = context.active_gpencil_brush
gp_settings = brush.gpencil_settings
- layout.active = gp_settings.use_stabilizer
+ layout.active = gp_settings.use_settings_stabilizer
layout.prop(brush, "smooth_stroke_radius", text="Radius", slider=True)
layout.prop(brush, "smooth_stroke_factor", text="Factor", slider=True)
@@ -1505,7 +1505,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_settings(View3DPanel, Panel):
def draw_header(self, context):
brush = context.active_gpencil_brush
gp_settings = brush.gpencil_settings
- self.layout.prop(gp_settings, "enable_settings", text="")
+ self.layout.prop(gp_settings, "use_settings_postprocess", text="")
@staticmethod
def draw(self, context):
@@ -1515,7 +1515,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_settings(View3DPanel, Panel):
brush = context.active_gpencil_brush
gp_settings = brush.gpencil_settings
- layout.active = gp_settings.enable_settings
+ layout.active = gp_settings.use_settings_postprocess
col = layout.column(align=True)
col.prop(gp_settings, "pen_smooth_factor")
@@ -1546,7 +1546,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_random(View3DPanel, Panel):
def draw_header(self, context):
brush = context.active_gpencil_brush
gp_settings = brush.gpencil_settings
- self.layout.prop(gp_settings, "enable_random", text="")
+ self.layout.prop(gp_settings, "use_settings_random", text="")
@staticmethod
def draw(self, context):
@@ -1556,7 +1556,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_random(View3DPanel, Panel):
brush = context.active_gpencil_brush
gp_settings = brush.gpencil_settings
- layout.active = gp_settings.enable_random
+ layout.active = gp_settings.use_settings_random
layout.prop(gp_settings, "random_pressure", text="Pressure", slider=True)
layout.prop(gp_settings, "random_strength", text="Strength", slider=True)