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-09-25 20:01:12 +0300
committerAntonioya <blendergit@gmail.com>2018-09-25 20:01:12 +0300
commit0f652a1ec072955de32868051e532fe0b5fb64a5 (patch)
tree1657877d5eeb02f948ed1cd4167c0c1b9ccd4721 /release
parentfd1870b995fa4540c342526ca6525641bba5aab5 (diff)
GP: New deselect by material option
Now the operator to select by color can unselect too.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_material_gpencil.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py
index 1294d0f8d85..7dc1141b8e3 100644
--- a/release/scripts/startup/bl_ui/properties_material_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py
@@ -147,7 +147,8 @@ class MATERIAL_PT_gpencil_slots(Panel):
if gpd.use_stroke_edit_mode:
row = layout.row(align=True)
row.operator("gpencil.stroke_change_color", text="Assign")
- row.operator("gpencil.color_select", text="Select")
+ row.operator("gpencil.color_select", text="Select").deselect=False
+ row.operator("gpencil.color_select", text="Deselect").deselect=True
elif mat:
row.template_ID(space, "pin_id")