Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
| Show First 20 Lines • Show All 559 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| else: | else: | ||||
| ma = gp_settings.material | ma = gp_settings.material | ||||
| else: | else: | ||||
| if len(ob.material_slots) > 0 and ob.active_material_index >= 0: | if len(ob.material_slots) > 0 and ob.active_material_index >= 0: | ||||
| ma = ob.material_slots[ob.active_material_index].material | ma = ob.material_slots[ob.active_material_index].material | ||||
| if is_view3d and ma is not None and ma.grease_pencil is not None: | if is_view3d and ma is not None and ma.grease_pencil is not None: | ||||
| gpcolor = ma.grease_pencil | gpcolor = ma.grease_pencil | ||||
| if gpcolor.stroke_style == 'SOLID': | col = layout.column(align=True) | ||||
| row = layout.row() | if gpcolor.show_stroke and gpcolor.stroke_style == 'SOLID': | ||||
| row.prop(gpcolor, "color", text="Stroke Color") | col.prop(gpcolor, "color", text="Stroke Color") | ||||
| if gpcolor.show_fill and gpcolor.fill_style == 'SOLID': | |||||
| col.prop(gpcolor, "fill_color", text="Fill Color") | |||||
| else: | else: | ||||
| space = context.space_data | space = context.space_data | ||||
| row.template_ID(space, "pin_id") | row.template_ID(space, "pin_id") | ||||
| class GreasePencilVertexcolorPanel: | class GreasePencilVertexcolorPanel: | ||||
| ▲ Show 20 Lines • Show All 334 Lines • Show Last 20 Lines | |||||