[Bf-blender-cvs] [c5c189a158a] master: GPencil: Change Rotation tooltip

Antonio Vazquez noreply at git.blender.org
Mon Sep 20 15:32:34 CEST 2021


Commit: c5c189a158a330ba2370b4f78605207f14318c0c
Author: Antonio Vazquez
Date:   Mon Sep 20 15:32:18 2021 +0200
Branches: master
https://developer.blender.org/rBc5c189a158a330ba2370b4f78605207f14318c0c

GPencil: Change Rotation tooltip

The tooltip was not clear about in what shading modes  works.

Related to T91467

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

M	source/blender/makesrna/intern/rna_material.c

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

diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index 8d0d3adab8b..4078691444b 100644
--- a/source/blender/makesrna/intern/rna_material.c
+++ b/source/blender/makesrna/intern/rna_material.c
@@ -604,8 +604,10 @@ static void rna_def_material_greasepencil(BlenderRNA *brna)
   RNA_def_property_float_default(prop, 0.0f);
   RNA_def_property_range(prop, -DEG2RADF(90.0f), DEG2RADF(90.0f));
   RNA_def_property_ui_range(prop, -DEG2RADF(90.0f), DEG2RADF(90.0f), 10, 3);
-  RNA_def_property_ui_text(
-      prop, "Rotation", "Additional rotation applied to dots and square strokes");
+  RNA_def_property_ui_text(prop,
+                           "Rotation",
+                           "Additional rotation applied to dots and square texture of strokes. "
+                           "Only valid in texture shading mode");
   RNA_def_property_update(prop, NC_GPENCIL | ND_SHADING, "rna_MaterialGpencil_update");
 
   /* pass index for future compositing and editing tools */



More information about the Bf-blender-cvs mailing list