Cleanup: grease pencil RNA naming

Follow naming conventions for boolean's,

Also rename enable_settings -> use_settings_postprocess.
This commit is contained in:
2018-10-31 09:27:40 +11:00
parent 3224b79289
commit c469c72405
5 changed files with 31 additions and 31 deletions

View File

@@ -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)