[Bf-blender-cvs] [965c723eb45] greasepencil-object: UI: Add previeww materials panel to grease pencil
Antonio Vazquez
noreply at git.blender.org
Sat Jul 14 13:07:13 CEST 2018
Commit: 965c723eb45dadcbf833c5f59275f507fb41ad7e
Author: Antonio Vazquez
Date: Sat Jul 14 13:06:27 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB965c723eb45dadcbf833c5f59275f507fb41ad7e
UI: Add previeww materials panel to grease pencil
===================================================================
M release/scripts/startup/bl_ui/properties_material_gpencil.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py
index 1fd8350de5d..0b8b89ae0d9 100644
--- a/release/scripts/startup/bl_ui/properties_material_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py
@@ -277,6 +277,18 @@ class MATERIAL_PT_gpencil_fillcolor(GPMaterialButtonsPanel, Panel):
col.prop(gpcolor, "mix_factor", text="Mix Factor", slider=True)
+class MATERIAL_PT_gpencil_preview(GPMaterialButtonsPanel, Panel):
+ bl_label = "Preview"
+ COMPAT_ENGINES = {'BLENDER_EEVEE'}
+ bl_options = {'DEFAULT_CLOSED'}
+
+ def draw(self, context):
+ ma = context.object.active_material
+ self.layout.label(ma.name)
+ self.layout.template_preview(ma)
+
+
+
class MATERIAL_PT_gpencil_options(GPMaterialButtonsPanel, Panel):
bl_label = "Options"
bl_options = {'DEFAULT_CLOSED'}
@@ -296,6 +308,7 @@ classes = (
GPENCIL_UL_matslots,
GPENCIL_MT_color_specials,
MATERIAL_PT_gpencil_slots,
+ MATERIAL_PT_gpencil_preview,
MATERIAL_PT_gpencil_surface,
MATERIAL_PT_gpencil_strokecolor,
MATERIAL_PT_gpencil_fillcolor,
More information about the Bf-blender-cvs
mailing list