Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_material_gpencil.py
| Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | class MATERIAL_PT_gpencil_preview(GPMaterialButtonsPanel, Panel): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| ma = context.material | ma = context.material | ||||
| self.layout.label(text=ma.name) | self.layout.label(text=ma.name) | ||||
| self.layout.template_preview(ma) | self.layout.template_preview(ma) | ||||
| class MATERIAL_PT_gpencil_custom_props(GPMaterialButtonsPanel, PropertyPanel, Panel): | class MATERIAL_PT_gpencil_custom_props(GPMaterialButtonsPanel, PropertyPanel, Panel): | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| _context_path = "object.active_material" | _context_path = "object.active_material" | ||||
| _property_type = bpy.types.Material | _property_type = bpy.types.Material | ||||
| class MATERIAL_PT_gpencil_settings(GPMaterialButtonsPanel, Panel): | class MATERIAL_PT_gpencil_settings(GPMaterialButtonsPanel, Panel): | ||||
| bl_label = "Settings" | bl_label = "Settings" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| Show All 35 Lines | |||||