Revision: 36405 http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36405 Author: nazgul Date: 2011-05-01 08:50:09 +0000 (Sun, 01 May 2011) Log Message: ----------- - Description of texture angle sources and stroke methods - Fixed bug with empty tooltip for some ENUMs
Modified Paths: -------------- trunk/blender/source/blender/editors/interface/interface_regions.c trunk/blender/source/blender/makesrna/intern/rna_brush.c Modified: trunk/blender/source/blender/editors/interface/interface_regions.c =================================================================== --- trunk/blender/source/blender/editors/interface/interface_regions.c 2011-05-01 07:39:21 UTC (rev 36404) +++ trunk/blender/source/blender/editors/interface/interface_regions.c 2011-05-01 08:50:09 UTC (rev 36405) @@ -365,7 +365,7 @@ /* special case, enum rna buttons only have enum item description, use general enum description too before the spesific one */ if(but->rnaprop && RNA_property_type(but->rnaprop) == PROP_ENUM) { const char *descr= RNA_property_description(but->rnaprop); - if(descr) { + if(descr && descr[0]) { BLI_strncpy(data->lines[data->totline], descr, sizeof(data->lines[0])); data->color[data->totline]= 0xFFFFFF; data->totline++; Modified: trunk/blender/source/blender/makesrna/intern/rna_brush.c =================================================================== --- trunk/blender/source/blender/makesrna/intern/rna_brush.c 2011-05-01 07:39:21 UTC (rev 36404) +++ trunk/blender/source/blender/makesrna/intern/rna_brush.c 2011-05-01 08:50:09 UTC (rev 36405) @@ -342,22 +342,22 @@ {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem brush_stroke_method_items[] = { - {0, "DOTS", 0, "Dots", ""}, - {BRUSH_RESTORE_MESH, "DRAG_DOT", 0, "Drag Dot", ""}, - {BRUSH_SPACE, "SPACE", 0, "Space", ""}, - {BRUSH_ANCHORED, "ANCHORED", 0, "Anchored", ""}, - {BRUSH_AIRBRUSH, "AIRBRUSH", 0, "Airbrush", ""}, + {0, "DOTS", 0, "Dots", "Apply paint on each mouse move step"}, + {BRUSH_RESTORE_MESH, "DRAG_DOT", 0, "Drag Dot", "Allows a single dot to be carefully positioned"}, + {BRUSH_SPACE, "SPACE", 0, "Space", "Limit brush application to the distance specified by spacing"}, + {BRUSH_ANCHORED, "ANCHORED", 0, "Anchored", "Keep the brush anchored to the initial location"}, + {BRUSH_AIRBRUSH, "AIRBRUSH", 0, "Airbrush", "Keep applying paint effect while holding mouse (spray)"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem texture_angle_source_items[] = { - {0, "USER", 0, "User", ""}, - {BRUSH_RAKE, "RAKE", 0, "Rake", ""}, + {0, "USER", 0, "User", "Rotate the brush texture by given angle"}, + {BRUSH_RAKE, "RAKE", 0, "Rake", "Rotate the brush texture to match the stroke direction"}, {BRUSH_RANDOM_ROTATION, "RANDOM", 0, "Random", ""}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem texture_angle_source_no_random_items[] = { - {0, "USER", 0, "User", ""}, - {BRUSH_RAKE, "RAKE", 0, "Rake", ""}, + {0, "USER", 0, "User", "Rotate the brush texture by given angle"}, + {BRUSH_RAKE, "RAKE", 0, "Rake", "Rotate the brush texture to match the stroke direction"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem brush_sculpt_plane_items[] = { _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs