diff options
author | Antonioya <blendergit@gmail.com> | 2018-12-14 18:45:57 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-12-14 18:52:12 +0300 |
commit | 780f0f646da1aac01dc3164fd7d493426aca9e19 (patch) | |
tree | 453cb60e732399e22279e8eee7a1c9725416c427 /release/scripts/startup/bl_ui/properties_grease_pencil_common.py | |
parent | a1c8595b090254c1270bb66118304186a3add913 (diff) |
GP: Rename CTX and OB modes
Part of T59335.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index fff4a063ef8..09e81115d6a 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -326,7 +326,7 @@ class GreasePencilAppearancePanel: ob = context.active_object - if ob.mode == 'GPENCIL_PAINT': + if ob.mode == 'PAINT_GPENCIL': brush = context.active_gpencil_brush gp_settings = brush.gpencil_settings @@ -347,7 +347,7 @@ class GreasePencilAppearancePanel: if brush.gpencil_tool == 'FILL': layout.prop(brush, "cursor_color_add", text="Color") - elif ob.mode in {'GPENCIL_SCULPT', 'GPENCIL_WEIGHT'}: + elif ob.mode in {'SCULPT_GPENCIL', 'WEIGHT_GPENCIL'}: settings = context.tool_settings.gpencil_sculpt brush = settings.brush tool = settings.sculpt_tool |