GPencil: New material parameter to rotate texture

Add a parameter to rotate the texture for Dots and Squares

Differential Revision: https://developer.blender.org/D9369
This commit is contained in:
Antonio Vazquez
2020-10-30 15:41:52 +01:00
parent aacdc39958
commit e6f61a4a37
7 changed files with 29 additions and 2 deletions

View File

@@ -676,6 +676,7 @@ class AddPresetGpencilMaterial(AddPresetBase, Operator):
"gpcolor.pixel_size",
"gpcolor.mix_stroke_factor",
"gpcolor.alignment_mode",
"gpcolor.alignment_rotation",
"gpcolor.fill_style",
"gpcolor.fill_color",
"gpcolor.fill_image",

View File

@@ -165,6 +165,7 @@ class MATERIAL_PT_gpencil_strokecolor(GPMaterialButtonsPanel, Panel):
if gpcolor.mode in {'DOTS', 'BOX'}:
col.prop(gpcolor, "alignment_mode")
col.prop(gpcolor, "alignment_rotation")
if gpcolor.mode == 'LINE':
col.prop(gpcolor, "use_overlap_strokes")