diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-10-31 13:49:46 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-10-31 13:49:46 +0300 |
commit | 501a3e93ec1fe785960977b2d714f68e5c0cabfe (patch) | |
tree | d72da69030e4a5342f41d65cd17f3968c053c725 /release | |
parent | 2e2fd12a55038b5e520720efe76bd0a1c2059fc1 (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.py | 4 |
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): |