[Bf-blender-cvs] [1d81a59d7a4] greasepencil-refactor: GPencil: Hide rotation parameter for Radial gradients

Antonio Vazquez noreply at git.blender.org
Tue Feb 4 15:47:41 CET 2020


Commit: 1d81a59d7a44ccc206d0d44af35f49f46c402194
Author: Antonio Vazquez
Date:   Tue Feb 4 15:47:29 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB1d81a59d7a44ccc206d0d44af35f49f46c402194

GPencil: Hide rotation parameter for Radial gradients

===================================================================

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 60a6b157cc2..664c1cf3cbb 100644
--- a/release/scripts/startup/bl_ui/properties_material_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py
@@ -203,8 +203,9 @@ class MATERIAL_PT_gpencil_fillcolor(GPMaterialButtonsPanel, Panel):
             col.prop(gpcolor, "flip", text="Flip Colors")
 
             col.prop(gpcolor, "texture_offset", text="Location")
-            col.prop(gpcolor, "texture_angle", text="Rotation")
             col.prop(gpcolor, "texture_scale", text="Scale")
+            if gpcolor.gradient_type == 'LINEAR':
+                col.prop(gpcolor, "texture_angle", text="Rotation")
 
         elif gpcolor.fill_style == 'TEXTURE':
             col.template_ID(gpcolor, "fill_image", open="image.open")



More information about the Bf-blender-cvs mailing list