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:
authorAntonio Vazquez <blendergit@gmail.com>2019-10-31 13:49:46 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-10-31 13:49:46 +0300
commit501a3e93ec1fe785960977b2d714f68e5c0cabfe (patch)
treed72da69030e4a5342f41d65cd17f3968c053c725 /release
parent2e2fd12a55038b5e520720efe76bd0a1c2059fc1 (diff)
GPencil: Display dot icon for active material in Assign menu
Now, a dot icon is displayed in front of the current object active material.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index bbd8f2e1711..ac1243561a3 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4505,11 +4505,13 @@ class VIEW3D_MT_assign_material(Menu):
def draw(self, context):
layout = self.layout
ob = context.active_object
+ mat_active = ob.active_material
for slot in ob.material_slots:
mat = slot.material
if mat:
- layout.operator("gpencil.stroke_change_color", text=mat.name).material = mat.name
+ layout.operator("gpencil.stroke_change_color", text=mat.name,
+ icon='LAYER_ACTIVE' if mat == mat_active else 'BLANK1').material = mat.name
class VIEW3D_MT_gpencil_copy_layer(Menu):