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:
authorAntonioya <blendergit@gmail.com>2018-12-14 18:45:57 +0300
committerAntonioya <blendergit@gmail.com>2018-12-14 18:52:12 +0300
commit780f0f646da1aac01dc3164fd7d493426aca9e19 (patch)
tree453cb60e732399e22279e8eee7a1c9725416c427 /release/scripts/startup/bl_ui/properties_grease_pencil_common.py
parenta1c8595b090254c1270bb66118304186a3add913 (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.py4
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