From 1f252288574f03205f329689693a0f483a894f89 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Sun, 30 Oct 2011 09:05:47 +0000 Subject: [PATCH] Fix for warnings about period at the end of description strings for RNA operators and properties. No functional changes were made. --- .../scripts/startup/bl_operators/freestyle.py | 12 +- .../blender/editors/render/render_shading.c | 26 +-- .../blender/makesrna/intern/rna_linestyle.c | 220 +++++++++--------- source/blender/makesrna/intern/rna_main.c | 2 +- source/blender/makesrna/intern/rna_main_api.c | 9 +- source/blender/makesrna/intern/rna_scene.c | 122 +++++----- 6 files changed, 196 insertions(+), 195 deletions(-) diff --git a/release/scripts/startup/bl_operators/freestyle.py b/release/scripts/startup/bl_operators/freestyle.py index 6d0cac65e8e..2a42fb1bab5 100644 --- a/release/scripts/startup/bl_operators/freestyle.py +++ b/release/scripts/startup/bl_operators/freestyle.py @@ -22,15 +22,15 @@ from bpy.props import (EnumProperty, StringProperty) class SCENE_OT_freestyle_fill_range_by_selection(bpy.types.Operator): - '''Fill the Range Min/Max entries by the min/max distance between selected mesh objects and the source object (either a user-specified object or the active camera).''' + '''Fill the Range Min/Max entries by the min/max distance between selected mesh objects and the source object (either a user-specified object or the active camera)''' bl_idname = "scene.freestyle_fill_range_by_selection" bl_label = "Fill Range by Selection" - type = EnumProperty(name="Type", description="Type of the modifier to work on.", - items=[("COLOR", "Color", "Color modifier type."), - ("ALPHA", "Alpha", "Alpha modifier type."), - ("THICKNESS", "Thickness", "Thickness modifier type.")]) - name = StringProperty(name="Name", description="Name of the modifier to work on.") + type = EnumProperty(name="Type", description="Type of the modifier to work on", + items=[("COLOR", "Color", "Color modifier type"), + ("ALPHA", "Alpha", "Alpha modifier type"), + ("THICKNESS", "Thickness", "Thickness modifier type")]) + name = StringProperty(name="Name", description="Name of the modifier to work on") def execute(self, context): rl = context.scene.render.layers.active diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c index b7ccf31f22e..49cfb1b1143 100644 --- a/source/blender/editors/render/render_shading.c +++ b/source/blender/editors/render/render_shading.c @@ -594,7 +594,7 @@ void SCENE_OT_freestyle_module_add(wmOperatorType *ot) /* identifiers */ ot->name= "Add Freestyle Module"; ot->idname= "SCENE_OT_freestyle_module_add"; - ot->description="Add a style module into the list of modules."; + ot->description="Add a style module into the list of modules"; /* api callbacks */ ot->exec= freestyle_module_add_exec; @@ -622,7 +622,7 @@ void SCENE_OT_freestyle_module_remove(wmOperatorType *ot) /* identifiers */ ot->name= "Remove Freestyle Module"; ot->idname= "SCENE_OT_freestyle_module_remove"; - ot->description="Remove the style module from the stack."; + ot->description="Remove the style module from the stack"; /* api callbacks */ ot->exec= freestyle_module_remove_exec; @@ -660,7 +660,7 @@ void SCENE_OT_freestyle_module_move(wmOperatorType *ot) /* identifiers */ ot->name= "Move Freestyle Module"; ot->idname= "SCENE_OT_freestyle_module_move"; - ot->description="Change the position of the style module within in the list of style modules."; + ot->description="Change the position of the style module within in the list of style modules"; /* api callbacks */ ot->exec= freestyle_module_move_exec; @@ -689,7 +689,7 @@ void SCENE_OT_freestyle_lineset_add(wmOperatorType *ot) /* identifiers */ ot->name= "Add Line Set"; ot->idname= "SCENE_OT_freestyle_lineset_add"; - ot->description="Add a line set into the list of line sets."; + ot->description="Add a line set into the list of line sets"; /* api callbacks */ ot->exec= freestyle_lineset_add_exec; @@ -723,7 +723,7 @@ void SCENE_OT_freestyle_lineset_remove(wmOperatorType *ot) /* identifiers */ ot->name= "Remove Line Set"; ot->idname= "SCENE_OT_freestyle_lineset_remove"; - ot->description="Remove the active line set from the list of line sets."; + ot->description="Remove the active line set from the list of line sets"; /* api callbacks */ ot->exec= freestyle_lineset_remove_exec; @@ -760,7 +760,7 @@ void SCENE_OT_freestyle_lineset_move(wmOperatorType *ot) /* identifiers */ ot->name= "Move Line Set"; ot->idname= "SCENE_OT_freestyle_lineset_move"; - ot->description="Change the position of the active line set within the list of line sets."; + ot->description="Change the position of the active line set within the list of line sets"; /* api callbacks */ ot->exec= freestyle_lineset_move_exec; @@ -796,7 +796,7 @@ void SCENE_OT_freestyle_linestyle_new(wmOperatorType *ot) /* identifiers */ ot->name= "New Line Style"; ot->idname= "SCENE_OT_freestyle_linestyle_new"; - ot->description="Create a new line style, reusable by multiple line sets."; + ot->description="Create a new line style, reusable by multiple line sets"; /* api callbacks */ ot->exec= freestyle_linestyle_new_exec; @@ -831,7 +831,7 @@ void SCENE_OT_freestyle_color_modifier_add(wmOperatorType *ot) /* identifiers */ ot->name= "Add Line Color Modifier"; ot->idname= "SCENE_OT_freestyle_color_modifier_add"; - ot->description = "Add a line color modifier to the line style associated with the active lineset."; + ot->description = "Add a line color modifier to the line style associated with the active lineset"; /* api callbacks */ ot->invoke= WM_menu_invoke; @@ -870,7 +870,7 @@ void SCENE_OT_freestyle_alpha_modifier_add(wmOperatorType *ot) /* identifiers */ ot->name= "Add Alpha Transparency Modifier"; ot->idname= "SCENE_OT_freestyle_alpha_modifier_add"; - ot->description = "Add an alpha transparency modifier to the line style associated with the active lineset."; + ot->description = "Add an alpha transparency modifier to the line style associated with the active lineset"; /* api callbacks */ ot->invoke= WM_menu_invoke; @@ -909,7 +909,7 @@ void SCENE_OT_freestyle_thickness_modifier_add(wmOperatorType *ot) /* identifiers */ ot->name= "Add Line Thickness Modifier"; ot->idname= "SCENE_OT_freestyle_thickness_modifier_add"; - ot->description = "Add a line thickness modifier to the line style associated with the active lineset."; + ot->description = "Add a line thickness modifier to the line style associated with the active lineset"; /* api callbacks */ ot->invoke= WM_menu_invoke; @@ -948,7 +948,7 @@ void SCENE_OT_freestyle_geometry_modifier_add(wmOperatorType *ot) /* identifiers */ ot->name= "Add Stroke Geometry Modifier"; ot->idname= "SCENE_OT_freestyle_geometry_modifier_add"; - ot->description = "Add a stroke geometry modifier to the line style associated with the active lineset."; + ot->description = "Add a stroke geometry modifier to the line style associated with the active lineset"; /* api callbacks */ ot->invoke= WM_menu_invoke; @@ -1014,7 +1014,7 @@ void SCENE_OT_freestyle_modifier_remove(wmOperatorType *ot) /* identifiers */ ot->name= "Remove Modifier"; ot->idname= "SCENE_OT_freestyle_modifier_remove"; - ot->description="Remove the modifier from the list of modifiers."; + ot->description="Remove the modifier from the list of modifiers"; /* api callbacks */ ot->exec= freestyle_modifier_remove_exec; @@ -1070,7 +1070,7 @@ void SCENE_OT_freestyle_modifier_move(wmOperatorType *ot) /* identifiers */ ot->name= "Move Modifier"; ot->idname= "SCENE_OT_freestyle_modifier_move"; - ot->description="Move the modifier within the list of modifiers."; + ot->description="Move the modifier within the list of modifiers"; /* api callbacks */ ot->exec= freestyle_modifier_move_exec; diff --git a/source/blender/makesrna/intern/rna_linestyle.c b/source/blender/makesrna/intern/rna_linestyle.c index d98d1ae8b86..5b3a2550921 100644 --- a/source/blender/makesrna/intern/rna_linestyle.c +++ b/source/blender/makesrna/intern/rna_linestyle.c @@ -217,11 +217,11 @@ static void rna_def_modifier_type_common(StructRNA *srna, EnumPropertyItem *modi RNA_def_property_enum_sdna(prop, NULL, "modifier.type"); RNA_def_property_enum_items(prop, modifier_type_items); RNA_def_property_clear_flag(prop, PROP_EDITABLE); - RNA_def_property_ui_text(prop, "Modifier Type", "Type of the modifier."); + RNA_def_property_ui_text(prop, "Modifier Type", "Type of the modifier"); prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); RNA_def_property_string_sdna(prop, NULL, "modifier.name"); - RNA_def_property_ui_text(prop, "Modifier Name", "Name of the modifier."); + RNA_def_property_ui_text(prop, "Modifier Name", "Name of the modifier"); RNA_def_property_update(prop, NC_SCENE, NULL); RNA_def_struct_name_property(srna, prop); @@ -229,23 +229,23 @@ static void rna_def_modifier_type_common(StructRNA *srna, EnumPropertyItem *modi prop= RNA_def_property(srna, "blend", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "modifier.blend"); RNA_def_property_enum_items(prop, (color) ? color_blend_items : value_blend_items); - RNA_def_property_ui_text(prop, "Blend", "Specify how the modifier value is blended into the base value."); + RNA_def_property_ui_text(prop, "Blend", "Specify how the modifier value is blended into the base value"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "influence", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "modifier.influence"); RNA_def_property_range(prop, 0.0f, 1.0f); - RNA_def_property_ui_text(prop, "Influence", "Influence factor by which the modifier changes the property."); + RNA_def_property_ui_text(prop, "Influence", "Influence factor by which the modifier changes the property"); RNA_def_property_update(prop, NC_SCENE, NULL); } prop= RNA_def_property(srna, "use", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "modifier.flags", LS_MODIFIER_ENABLED); - RNA_def_property_ui_text(prop, "Use", "Enable or disable this modifier during stroke rendering."); + RNA_def_property_ui_text(prop, "Use", "Enable or disable this modifier during stroke rendering"); prop= RNA_def_property(srna, "expanded", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "modifier.flags", LS_MODIFIER_EXPANDED); - RNA_def_property_ui_text(prop, "Expanded", "True if the modifier tab is expanded."); + RNA_def_property_ui_text(prop, "Expanded", "True if the modifier tab is expanded"); } static void rna_def_color_modifier(StructRNA *srna) @@ -275,18 +275,18 @@ static void rna_def_modifier_color_ramp_common(StructRNA *srna, int range) prop= RNA_def_property(srna, "color_ramp", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "color_ramp"); RNA_def_property_struct_type(prop, "ColorRamp"); - RNA_def_property_ui_text(prop, "Color Ramp", "Color ramp used to change line color."); + RNA_def_property_ui_text(prop, "Color Ramp", "Color ramp used to change line color"); RNA_def_property_update(prop, NC_SCENE, NULL); if (range) { prop= RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "range_min"); - RNA_def_property_ui_text(prop, "Range Min", "Lower bound of the input range the mapping is applied."); + RNA_def_property_ui_text(prop, "Range Min", "Lower bound of the input range the mapping is applied"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "range_max"); - RNA_def_property_ui_text(prop, "Range Max", "Upper bound of the input range the mapping is applied."); + RNA_def_property_ui_text(prop, "Range Max", "Upper bound of the input range the mapping is applied"); RNA_def_property_update(prop, NC_SCENE, NULL); } } @@ -296,48 +296,48 @@ static void rna_def_modifier_curve_common(StructRNA *srna, int range, int value) PropertyRNA *prop; static EnumPropertyItem mapping_items[] = { - {0, "LINEAR", 0, "Linear", "Use linear mapping."}, - {LS_MODIFIER_USE_CURVE, "CURVE", 0, "Curve", "Use curve mapping."}, + {0, "LINEAR", 0, "Linear", "Use linear mapping"}, + {LS_MODIFIER_USE_CURVE, "CURVE", 0, "Curve", "Use curve mapping"}, {0, NULL, 0, NULL, NULL}}; prop= RNA_def_property(srna, "mapping", PROP_ENUM, PROP_NONE); RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); RNA_def_property_enum_items(prop, mapping_items); - RNA_def_property_ui_text(prop, "Mapping", "Select the mapping type."); + RNA_def_property_ui_text(prop, "Mapping", "Select the mapping type"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "invert", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", LS_MODIFIER_INVERT); - RNA_def_property_ui_text(prop, "Invert", "Invert the fade-out direction of the linear mapping."); + RNA_def_property_ui_text(prop, "Invert", "Invert the fade-out direction of the linear mapping"); RNA_def_property_update(prop, NC_SCENE, NULL); prop = RNA_def_property(srna, "curve", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "curve"); RNA_def_property_struct_type(prop, "CurveMapping"); - RNA_def_property_ui_text(prop, "Curve", "Curve used for the curve mapping."); + RNA_def_property_ui_text(prop, "Curve", "Curve used for the curve mapping"); RNA_def_property_update(prop, NC_SCENE, NULL); if (range) { prop= RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "range_min"); - RNA_def_property_ui_text(prop, "Range Min", "Lower bound of the input range the mapping is applied."); + RNA_def_property_ui_text(prop, "Range Min", "Lower bound of the input range the mapping is applied"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "range_max"); - RNA_def_property_ui_text(prop, "Range Max", "Upper bound of the input range the mapping is applied."); + RNA_def_property_ui_text(prop, "Range Max", "Upper bound of the input range the mapping is applied"); RNA_def_property_update(prop, NC_SCENE, NULL); } if (value) { prop= RNA_def_property(srna, "value_min", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "value_min"); - RNA_def_property_ui_text(prop, "Value Min", "Minimum output value of the mapping."); + RNA_def_property_ui_text(prop, "Value Min", "Minimum output value of the mapping"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "value_max", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "value_max"); - RNA_def_property_ui_text(prop, "Value Max", "Maximum output value of the mapping."); + RNA_def_property_ui_text(prop, "Value Max", "Maximum output value of the mapping"); RNA_def_property_update(prop, NC_SCENE, NULL); } } @@ -362,7 +362,7 @@ static void rna_def_modifier_material_common(StructRNA *srna) prop= RNA_def_property(srna, "material_attr", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "mat_attr"); RNA_def_property_enum_items(prop, mat_attr_items); - RNA_def_property_ui_text(prop, "Material Attribute", "Specify which material attribute is used."); + RNA_def_property_ui_text(prop, "Material Attribute", "Specify which material attribute is used"); RNA_def_property_update(prop, NC_SCENE, NULL); } @@ -373,7 +373,7 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna) PropertyRNA *prop; srna= RNA_def_struct(brna, "LineStyleModifier", NULL); - RNA_def_struct_ui_text(srna, "Line Style Modifier", "Base type to define modifiers."); + RNA_def_struct_ui_text(srna, "Line Style Modifier", "Base type to define modifiers"); /* line color modifiers */ @@ -381,20 +381,20 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna) RNA_def_struct_sdna(srna, "LineStyleModifier"); RNA_def_struct_refine_func(srna, "rna_LineStyle_color_modifier_refine"); RNA_def_struct_path_func(srna, "rna_LineStyle_color_modifier_path"); - RNA_def_struct_ui_text(srna, "Line Style Color Modifier", "Base type to define line color modifiers."); + RNA_def_struct_ui_text(srna, "Line Style Color Modifier", "Base type to define line color modifiers"); srna= RNA_def_struct(brna, "LineStyleColorModifier_AlongStroke", "LineStyleColorModifier"); - RNA_def_struct_ui_text(srna, "Along Stroke", "Change line color along stroke."); + RNA_def_struct_ui_text(srna, "Along Stroke", "Change line color along stroke"); rna_def_color_modifier(srna); rna_def_modifier_color_ramp_common(srna, 0); srna= RNA_def_struct(brna, "LineStyleColorModifier_DistanceFromCamera", "LineStyleColorModifier"); - RNA_def_struct_ui_text(srna, "Distance from Camera", "Change line color based on the distance from the camera."); + RNA_def_struct_ui_text(srna, "Distance from Camera", "Change line color based on the distance from the camera"); rna_def_color_modifier(srna); rna_def_modifier_color_ramp_common(srna, 1); srna= RNA_def_struct(brna, "LineStyleColorModifier_DistanceFromObject", "LineStyleColorModifier"); - RNA_def_struct_ui_text(srna, "Distance from Object", "Change line color based on the distance from an object."); + RNA_def_struct_ui_text(srna, "Distance from Object", "Change line color based on the distance from an object"); rna_def_color_modifier(srna); rna_def_modifier_color_ramp_common(srna, 1); @@ -402,18 +402,18 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna) RNA_def_property_pointer_sdna(prop, NULL, "target"); RNA_def_property_struct_type(prop, "Object"); RNA_def_property_flag(prop, PROP_EDITABLE); - RNA_def_property_ui_text(prop, "Target", "Target object from which the distance is measured."); + RNA_def_property_ui_text(prop, "Target", "Target object from which the distance is measured"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleColorModifier_Material", "LineStyleColorModifier"); - RNA_def_struct_ui_text(srna, "Material", "Change line color based on a material attribute."); + RNA_def_struct_ui_text(srna, "Material", "Change line color based on a material attribute"); rna_def_color_modifier(srna); rna_def_modifier_material_common(srna); rna_def_modifier_color_ramp_common(srna, 0); prop= RNA_def_property(srna, "use_ramp", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", LS_MODIFIER_USE_RAMP); - RNA_def_property_ui_text(prop, "Ramp", "Use color ramp to map the BW average into an RGB color."); + RNA_def_property_ui_text(prop, "Ramp", "Use color ramp to map the BW average into an RGB color"); RNA_def_property_update(prop, NC_SCENE, NULL); /* alpha transparency modifiers */ @@ -422,20 +422,20 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna) RNA_def_struct_sdna(srna, "LineStyleModifier"); RNA_def_struct_refine_func(srna, "rna_LineStyle_alpha_modifier_refine"); RNA_def_struct_path_func(srna, "rna_LineStyle_alpha_modifier_path"); - RNA_def_struct_ui_text(srna, "Line Style Alpha Modifier", "Base type to define alpha transparency modifiers."); + RNA_def_struct_ui_text(srna, "Line Style Alpha Modifier", "Base type to define alpha transparency modifiers"); srna= RNA_def_struct(brna, "LineStyleAlphaModifier_AlongStroke", "LineStyleAlphaModifier"); - RNA_def_struct_ui_text(srna, "Along Stroke", "Change alpha transparency along stroke."); + RNA_def_struct_ui_text(srna, "Along Stroke", "Change alpha transparency along stroke"); rna_def_alpha_modifier(srna); rna_def_modifier_curve_common(srna, 0, 0); srna= RNA_def_struct(brna, "LineStyleAlphaModifier_DistanceFromCamera", "LineStyleAlphaModifier"); - RNA_def_struct_ui_text(srna, "Distance from Camera", "Change alpha transparency based on the distance from the camera."); + RNA_def_struct_ui_text(srna, "Distance from Camera", "Change alpha transparency based on the distance from the camera"); rna_def_alpha_modifier(srna); rna_def_modifier_curve_common(srna, 1, 0); srna= RNA_def_struct(brna, "LineStyleAlphaModifier_DistanceFromObject", "LineStyleAlphaModifier"); - RNA_def_struct_ui_text(srna, "Distance from Object", "Change alpha transparency based on the distance from an object."); + RNA_def_struct_ui_text(srna, "Distance from Object", "Change alpha transparency based on the distance from an object"); rna_def_alpha_modifier(srna); rna_def_modifier_curve_common(srna, 1, 0); @@ -443,11 +443,11 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna) RNA_def_property_pointer_sdna(prop, NULL, "target"); RNA_def_property_struct_type(prop, "Object"); RNA_def_property_flag(prop, PROP_EDITABLE); - RNA_def_property_ui_text(prop, "Target", "Target object from which the distance is measured."); + RNA_def_property_ui_text(prop, "Target", "Target object from which the distance is measured"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleAlphaModifier_Material", "LineStyleAlphaModifier"); - RNA_def_struct_ui_text(srna, "Material", "Change alpha transparency based on a material attribute."); + RNA_def_struct_ui_text(srna, "Material", "Change alpha transparency based on a material attribute"); rna_def_alpha_modifier(srna); rna_def_modifier_material_common(srna); rna_def_modifier_curve_common(srna, 0, 0); @@ -458,20 +458,20 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna) RNA_def_struct_sdna(srna, "LineStyleModifier"); RNA_def_struct_refine_func(srna, "rna_LineStyle_thickness_modifier_refine"); RNA_def_struct_path_func(srna, "rna_LineStyle_thickness_modifier_path"); - RNA_def_struct_ui_text(srna, "Line Style Thickness Modifier", "Base type to define line thickness modifiers."); + RNA_def_struct_ui_text(srna, "Line Style Thickness Modifier", "Base type to define line thickness modifiers"); srna= RNA_def_struct(brna, "LineStyleThicknessModifier_AlongStroke", "LineStyleThicknessModifier"); - RNA_def_struct_ui_text(srna, "Along Stroke", "Change line thickness along stroke."); + RNA_def_struct_ui_text(srna, "Along Stroke", "Change line thickness along stroke"); rna_def_thickness_modifier(srna); rna_def_modifier_curve_common(srna, 0, 1); srna= RNA_def_struct(brna, "LineStyleThicknessModifier_DistanceFromCamera", "LineStyleThicknessModifier"); - RNA_def_struct_ui_text(srna, "Distance from Camera", "Change line thickness based on the distance from the camera."); + RNA_def_struct_ui_text(srna, "Distance from Camera", "Change line thickness based on the distance from the camera"); rna_def_thickness_modifier(srna); rna_def_modifier_curve_common(srna, 1, 1); srna= RNA_def_struct(brna, "LineStyleThicknessModifier_DistanceFromObject", "LineStyleThicknessModifier"); - RNA_def_struct_ui_text(srna, "Distance from Object", "Change line thickness based on the distance from an object."); + RNA_def_struct_ui_text(srna, "Distance from Object", "Change line thickness based on the distance from an object"); rna_def_thickness_modifier(srna); rna_def_modifier_curve_common(srna, 1, 1); @@ -479,34 +479,34 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna) RNA_def_property_pointer_sdna(prop, NULL, "target"); RNA_def_property_struct_type(prop, "Object"); RNA_def_property_flag(prop, PROP_EDITABLE); - RNA_def_property_ui_text(prop, "Target", "Target object from which the distance is measured."); + RNA_def_property_ui_text(prop, "Target", "Target object from which the distance is measured"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleThicknessModifier_Material", "LineStyleThicknessModifier"); - RNA_def_struct_ui_text(srna, "Material", "Change line thickness based on a material attribute."); + RNA_def_struct_ui_text(srna, "Material", "Change line thickness based on a material attribute"); rna_def_thickness_modifier(srna); rna_def_modifier_material_common(srna); rna_def_modifier_curve_common(srna, 0, 1); srna= RNA_def_struct(brna, "LineStyleThicknessModifier_Calligraphy", "LineStyleThicknessModifier"); - RNA_def_struct_ui_text(srna, "Calligraphy", "Change line thickness so that stroke looks like made with a calligraphic pen."); + RNA_def_struct_ui_text(srna, "Calligraphy", "Change line thickness so that stroke looks like made with a calligraphic pen"); rna_def_thickness_modifier(srna); prop= RNA_def_property(srna, "orientation", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "orientation"); - RNA_def_property_ui_text(prop, "Orientation", "Angle of the main direction."); + RNA_def_property_ui_text(prop, "Orientation", "Angle of the main direction"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "min_thickness", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "min_thickness"); RNA_def_property_range(prop, 0.0f, 10000.0f); - RNA_def_property_ui_text(prop, "Min Thickness", "Minimum thickness in the direction perpendicular to the main direction."); + RNA_def_property_ui_text(prop, "Min Thickness", "Minimum thickness in the direction perpendicular to the main direction"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "max_thickness", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "max_thickness"); RNA_def_property_range(prop, 0.0f, 10000.0f); - RNA_def_property_ui_text(prop, "Max Thickness", "Maximum thickness in the main direction."); + RNA_def_property_ui_text(prop, "Max Thickness", "Maximum thickness in the main direction"); RNA_def_property_update(prop, NC_SCENE, NULL); /* geometry modifiers */ @@ -515,148 +515,148 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna) RNA_def_struct_sdna(srna, "LineStyleModifier"); RNA_def_struct_refine_func(srna, "rna_LineStyle_geometry_modifier_refine"); RNA_def_struct_path_func(srna, "rna_LineStyle_geometry_modifier_path"); - RNA_def_struct_ui_text(srna, "Line Style Geometry Modifier", "Base type to define stroke geometry modifiers."); + RNA_def_struct_ui_text(srna, "Line Style Geometry Modifier", "Base type to define stroke geometry modifiers"); srna= RNA_def_struct(brna, "LineStyleGeometryModifier_Sampling", "LineStyleGeometryModifier"); - RNA_def_struct_ui_text(srna, "Sampling", "Specify a new sampling value that determines the resolution of stroke polylines."); + RNA_def_struct_ui_text(srna, "Sampling", "Specify a new sampling value that determines the resolution of stroke polylines"); rna_def_geometry_modifier(srna); prop= RNA_def_property(srna, "sampling", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "sampling"); - RNA_def_property_ui_text(prop, "Sampling", "New sampling value to be used for subsequent modifiers."); + RNA_def_property_ui_text(prop, "Sampling", "New sampling value to be used for subsequent modifiers"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleGeometryModifier_BezierCurve", "LineStyleGeometryModifier"); - RNA_def_struct_ui_text(srna, "Bezier Curve", "Replace stroke backbone geometry by a Bezier curve approximation of the original backbone geometry."); + RNA_def_struct_ui_text(srna, "Bezier Curve", "Replace stroke backbone geometry by a Bezier curve approximation of the original backbone geometry"); rna_def_geometry_modifier(srna); prop= RNA_def_property(srna, "error", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "error"); - RNA_def_property_ui_text(prop, "Error", "Maximum distance allowed between the new Bezier curve and the original backbone geometry)."); + RNA_def_property_ui_text(prop, "Error", "Maximum distance allowed between the new Bezier curve and the original backbone geometry)"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleGeometryModifier_SinusDisplacement", "LineStyleGeometryModifier"); - RNA_def_struct_ui_text(srna, "Sinus Displacement", "Add sinus displacement to stroke backbone geometry."); + RNA_def_struct_ui_text(srna, "Sinus Displacement", "Add sinus displacement to stroke backbone geometry"); rna_def_geometry_modifier(srna); prop= RNA_def_property(srna, "wavelength", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "wavelength"); - RNA_def_property_ui_text(prop, "Wavelength", "Wavelength of the sinus displacement."); + RNA_def_property_ui_text(prop, "Wavelength", "Wavelength of the sinus displacement"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "amplitude", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "amplitude"); - RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the sinus displacement."); + RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the sinus displacement"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "phase", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "phase"); - RNA_def_property_ui_text(prop, "Phase", "Phase of the sinus displacement."); + RNA_def_property_ui_text(prop, "Phase", "Phase of the sinus displacement"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleGeometryModifier_SpatialNoise", "LineStyleGeometryModifier"); - RNA_def_struct_ui_text(srna, "Spatial Noise", "Add spatial noise to stroke backbone geometry."); + RNA_def_struct_ui_text(srna, "Spatial Noise", "Add spatial noise to stroke backbone geometry"); rna_def_geometry_modifier(srna); prop= RNA_def_property(srna, "amplitude", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "amplitude"); - RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the spatial noise."); + RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the spatial noise"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "scale", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "scale"); - RNA_def_property_ui_text(prop, "Scale", "Scale of the spatial noise."); + RNA_def_property_ui_text(prop, "Scale", "Scale of the spatial noise"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "octaves", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "octaves"); - RNA_def_property_ui_text(prop, "Octaves", "Number of octaves (i.e., the amount of detail of the spatial noise)."); + RNA_def_property_ui_text(prop, "Octaves", "Number of octaves (i.e., the amount of detail of the spatial noise)"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "smooth", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", LS_MODIFIER_SPATIAL_NOISE_SMOOTH); - RNA_def_property_ui_text(prop, "Smooth", "If true, the spatial noise is smooth."); + RNA_def_property_ui_text(prop, "Smooth", "If true, the spatial noise is smooth"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "pure_random", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", LS_MODIFIER_SPATIAL_NOISE_PURERANDOM); - RNA_def_property_ui_text(prop, "Pure Random", "If true, the spatial noise does not show any coherence."); + RNA_def_property_ui_text(prop, "Pure Random", "If true, the spatial noise does not show any coherence"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleGeometryModifier_PerlinNoise1D", "LineStyleGeometryModifier"); - RNA_def_struct_ui_text(srna, "Perlin Noise 1D", "Add one-dimensional Perlin noise to stroke backbone geometry."); + RNA_def_struct_ui_text(srna, "Perlin Noise 1D", "Add one-dimensional Perlin noise to stroke backbone geometry"); rna_def_geometry_modifier(srna); prop= RNA_def_property(srna, "frequency", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "frequency"); - RNA_def_property_ui_text(prop, "Frequency", "Frequency of the Perlin noise."); + RNA_def_property_ui_text(prop, "Frequency", "Frequency of the Perlin noise"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "amplitude", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "amplitude"); - RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the Perlin noise."); + RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the Perlin noise"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "octaves", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "octaves"); - RNA_def_property_ui_text(prop, "Octaves", "Number of octaves (i.e., the amount of detail of the Perlin noise)."); + RNA_def_property_ui_text(prop, "Octaves", "Number of octaves (i.e., the amount of detail of the Perlin noise)"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "angle", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "angle"); - RNA_def_property_ui_text(prop, "Angle", "Displacement direction in degrees."); + RNA_def_property_ui_text(prop, "Angle", "Displacement direction in degrees"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "seed", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "seed"); - RNA_def_property_ui_text(prop, "Seed", "Seed for random number generation. If negative, time is used as a seed instead."); + RNA_def_property_ui_text(prop, "Seed", "Seed for random number generation. If negative, time is used as a seed instead"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleGeometryModifier_PerlinNoise2D", "LineStyleGeometryModifier"); - RNA_def_struct_ui_text(srna, "Perlin Noise 2D", "Add two-dimensional Perlin noise to stroke backbone geometry."); + RNA_def_struct_ui_text(srna, "Perlin Noise 2D", "Add two-dimensional Perlin noise to stroke backbone geometry"); rna_def_geometry_modifier(srna); prop= RNA_def_property(srna, "frequency", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "frequency"); - RNA_def_property_ui_text(prop, "Frequency", "Frequency of the Perlin noise."); + RNA_def_property_ui_text(prop, "Frequency", "Frequency of the Perlin noise"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "amplitude", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "amplitude"); - RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the Perlin noise."); + RNA_def_property_ui_text(prop, "Amplitude", "Amplitude of the Perlin noise"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "octaves", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "octaves"); - RNA_def_property_ui_text(prop, "Octaves", "Number of octaves (i.e., the amount of detail of the Perlin noise)."); + RNA_def_property_ui_text(prop, "Octaves", "Number of octaves (i.e., the amount of detail of the Perlin noise)"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "angle", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "angle"); - RNA_def_property_ui_text(prop, "Angle", "Displacement direction in degrees."); + RNA_def_property_ui_text(prop, "Angle", "Displacement direction in degrees"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "seed", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "seed"); - RNA_def_property_ui_text(prop, "Seed", "Seed for random number generation. If negative, time is used as a seed instead."); + RNA_def_property_ui_text(prop, "Seed", "Seed for random number generation. If negative, time is used as a seed instead"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleGeometryModifier_BackboneStretcher", "LineStyleGeometryModifier"); - RNA_def_struct_ui_text(srna, "Backbone Stretcher", "Stretch the beginning and the end of stroke backbone."); + RNA_def_struct_ui_text(srna, "Backbone Stretcher", "Stretch the beginning and the end of stroke backbone"); rna_def_geometry_modifier(srna); prop= RNA_def_property(srna, "amount", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "amount"); - RNA_def_property_ui_text(prop, "Amount", "Amount of stretching."); + RNA_def_property_ui_text(prop, "Amount", "Amount of stretching"); RNA_def_property_update(prop, NC_SCENE, NULL); srna= RNA_def_struct(brna, "LineStyleGeometryModifier_TipRemover", "LineStyleGeometryModifier"); - RNA_def_struct_ui_text(srna, "Tip Remover", "Remove a piece of stroke at the beginning and the end of stroke backbone."); + RNA_def_struct_ui_text(srna, "Tip Remover", "Remove a piece of stroke at the beginning and the end of stroke backbone"); rna_def_geometry_modifier(srna); prop= RNA_def_property(srna, "tip_length", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "tip_length"); - RNA_def_property_ui_text(prop, "Tip Length", "Length of tips to be removed."); + RNA_def_property_ui_text(prop, "Tip Length", "Length of tips to be removed"); RNA_def_property_update(prop, NC_SCENE, NULL); } @@ -667,21 +667,21 @@ static void rna_def_linestyle(BlenderRNA *brna) PropertyRNA *prop; static EnumPropertyItem panel_items[] = { - {LS_PANEL_STROKES, "STROKES", 0, "Strokes", "Show the panel for stroke construction."}, - {LS_PANEL_COLOR, "COLOR", 0, "Color", "Show the panel for line color options."}, - {LS_PANEL_ALPHA, "ALPHA", 0, "Alpha", "Show the panel for alpha transparency options."}, - {LS_PANEL_THICKNESS, "THICKNESS", 0, "Thickness", "Show the panel for line thickness options."}, - {LS_PANEL_GEOMETRY, "GEOMETRY", 0, "Geometry", "Show the panel for stroke geometry options."}, - {LS_PANEL_MISC, "MISC", 0, "Misc", "Show the panel for miscellaneous options."}, + {LS_PANEL_STROKES, "STROKES", 0, "Strokes", "Show the panel for stroke construction"}, + {LS_PANEL_COLOR, "COLOR", 0, "Color", "Show the panel for line color options"}, + {LS_PANEL_ALPHA, "ALPHA", 0, "Alpha", "Show the panel for alpha transparency options"}, + {LS_PANEL_THICKNESS, "THICKNESS", 0, "Thickness", "Show the panel for line thickness options"}, + {LS_PANEL_GEOMETRY, "GEOMETRY", 0, "Geometry", "Show the panel for stroke geometry options"}, + {LS_PANEL_MISC, "MISC", 0, "Misc", "Show the panel for miscellaneous options"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem chaining_items[] = { - {LS_CHAINING_PLAIN, "PLAIN", 0, "Plain", "Plain chaining."}, - {LS_CHAINING_SKETCHY, "SKETCHY", 0, "Sketchy", "Sketchy chaining with a multiple touch."}, + {LS_CHAINING_PLAIN, "PLAIN", 0, "Plain", "Plain chaining"}, + {LS_CHAINING_SKETCHY, "SKETCHY", 0, "Sketchy", "Sketchy chaining with a multiple touch"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem cap_items[] = { - {LS_CAPS_BUTT, "BUTT", 0, "Butt", "Butt cap (flat)."}, - {LS_CAPS_ROUND, "ROUND", 0, "Round", "Round cap (half-circle)."}, - {LS_CAPS_SQUARE, "SQUARE", 0, "Square", "Square cap (flat and extended)."}, + {LS_CAPS_BUTT, "BUTT", 0, "Butt", "Butt cap (flat)"}, + {LS_CAPS_ROUND, "ROUND", 0, "Round", "Round cap (half-circle)"}, + {LS_CAPS_SQUARE, "SQUARE", 0, "Square", "Square cap (flat and extended)"}, {0, NULL, 0, NULL, NULL}}; srna= RNA_def_struct(brna, "FreestyleLineStyle", "ID"); @@ -691,141 +691,141 @@ static void rna_def_linestyle(BlenderRNA *brna) prop= RNA_def_property(srna, "panel", PROP_ENUM, PROP_NONE); RNA_def_property_enum_bitflag_sdna(prop, NULL, "panel"); RNA_def_property_enum_items(prop, panel_items); - RNA_def_property_ui_text(prop, "Panel", "Select the property panel to be shown."); + RNA_def_property_ui_text(prop, "Panel", "Select the property panel to be shown"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR); RNA_def_property_float_sdna(prop, NULL, "r"); RNA_def_property_array(prop, 3); - RNA_def_property_ui_text(prop, "Color", "Base line color, possibly modified by line color modifiers."); + RNA_def_property_ui_text(prop, "Color", "Base line color, possibly modified by line color modifiers"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "alpha", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "alpha"); RNA_def_property_range(prop, 0.0f, 1.0f); - RNA_def_property_ui_text(prop, "Alpha", "Base alpha transparency, possibly modified by alpha transparency modifiers."); + RNA_def_property_ui_text(prop, "Alpha", "Base alpha transparency, possibly modified by alpha transparency modifiers"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "thickness", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "thickness"); RNA_def_property_range(prop, 0.0f, 10000.0f); - RNA_def_property_ui_text(prop, "Thickness", "Base line thickness, possibly modified by line thickness modifiers."); + RNA_def_property_ui_text(prop, "Thickness", "Base line thickness, possibly modified by line thickness modifiers"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "color_modifiers", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "color_modifiers", NULL); RNA_def_property_struct_type(prop, "LineStyleColorModifier"); - RNA_def_property_ui_text(prop, "Color Modifiers", "List of line color modifiers."); + RNA_def_property_ui_text(prop, "Color Modifiers", "List of line color modifiers"); prop= RNA_def_property(srna, "alpha_modifiers", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "alpha_modifiers", NULL); RNA_def_property_struct_type(prop, "LineStyleAlphaModifier"); - RNA_def_property_ui_text(prop, "Alpha Modifiers", "List of alpha trancparency modifiers."); + RNA_def_property_ui_text(prop, "Alpha Modifiers", "List of alpha trancparency modifiers"); prop= RNA_def_property(srna, "thickness_modifiers", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "thickness_modifiers", NULL); RNA_def_property_struct_type(prop, "LineStyleThicknessModifier"); - RNA_def_property_ui_text(prop, "Thickness Modifiers", "List of line thickness modifiers."); + RNA_def_property_ui_text(prop, "Thickness Modifiers", "List of line thickness modifiers"); prop= RNA_def_property(srna, "use_chaining", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", LS_NO_CHAINING); - RNA_def_property_ui_text(prop, "Chaining", "Enable chaining of feature edges."); + RNA_def_property_ui_text(prop, "Chaining", "Enable chaining of feature edges"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "chaining", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "chaining"); RNA_def_property_enum_items(prop, chaining_items); - RNA_def_property_ui_text(prop, "Chaining", "Select the way how feature edges are jointed to form chains."); + RNA_def_property_ui_text(prop, "Chaining", "Select the way how feature edges are jointed to form chains"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "rounds", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "rounds"); RNA_def_property_range(prop, 1, 1000); - RNA_def_property_ui_text(prop, "Rounds", "Number of rounds in a sketchy multiple touch."); + RNA_def_property_ui_text(prop, "Rounds", "Number of rounds in a sketchy multiple touch"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "geometry_modifiers", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "geometry_modifiers", NULL); RNA_def_property_struct_type(prop, "LineStyleGeometryModifier"); - RNA_def_property_ui_text(prop, "Geometry Modifiers", "List of stroke geometry modifiers."); + RNA_def_property_ui_text(prop, "Geometry Modifiers", "List of stroke geometry modifiers"); prop= RNA_def_property(srna, "same_object", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", LS_SAME_OBJECT); - RNA_def_property_ui_text(prop, "Same Object", "If true, only feature edges of the same object are joined."); + RNA_def_property_ui_text(prop, "Same Object", "If true, only feature edges of the same object are joined"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "use_min_length", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", LS_MIN_2D_LENGTH); - RNA_def_property_ui_text(prop, "Use Min 2D Length", "Enable the selection of chains by a minimum 2D length."); + RNA_def_property_ui_text(prop, "Use Min 2D Length", "Enable the selection of chains by a minimum 2D length"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "min_length", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "min_length"); RNA_def_property_range(prop, 0.0f, 10000.0f); - RNA_def_property_ui_text(prop, "Min 2D Length", "Minimum 2D length for the selection of chains."); + RNA_def_property_ui_text(prop, "Min 2D Length", "Minimum 2D length for the selection of chains"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "use_max_length", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", LS_MAX_2D_LENGTH); - RNA_def_property_ui_text(prop, "Use Max 2D Length", "Enable the selection of chains by a maximum 2D length."); + RNA_def_property_ui_text(prop, "Use Max 2D Length", "Enable the selection of chains by a maximum 2D length"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "max_length", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "max_length"); RNA_def_property_range(prop, 0.0f, 10000.0f); - RNA_def_property_ui_text(prop, "Max 2D Length", "Maximum 2D length for the selection of chains."); + RNA_def_property_ui_text(prop, "Max 2D Length", "Maximum 2D length for the selection of chains"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "material_boundary", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", LS_MATERIAL_BOUNDARY); - RNA_def_property_ui_text(prop, "Material Boundary", "If true, chains of feature edges are split at material boundaries."); + RNA_def_property_ui_text(prop, "Material Boundary", "If true, chains of feature edges are split at material boundaries"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "use_dashed_line", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", LS_DASHED_LINE); - RNA_def_property_ui_text(prop, "Dashed Line", "Enable or disable dashed line."); + RNA_def_property_ui_text(prop, "Dashed Line", "Enable or disable dashed line"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "caps", PROP_ENUM, PROP_NONE); RNA_def_property_enum_bitflag_sdna(prop, NULL, "caps"); RNA_def_property_enum_items(prop, cap_items); - RNA_def_property_ui_text(prop, "Cap", "Select the shape of both ends of strokes."); + RNA_def_property_ui_text(prop, "Cap", "Select the shape of both ends of strokes"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "dash1", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "dash1"); RNA_def_property_range(prop, 0, USHRT_MAX); - RNA_def_property_ui_text(prop, "Dash #1", "Length of the 1st dash."); + RNA_def_property_ui_text(prop, "Dash #1", "Length of the 1st dash"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "gap1", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "gap1"); RNA_def_property_range(prop, 0, USHRT_MAX); - RNA_def_property_ui_text(prop, "Gap #1", "Length of the 1st gap."); + RNA_def_property_ui_text(prop, "Gap #1", "Length of the 1st gap"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "dash2", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "dash2"); RNA_def_property_range(prop, 0, USHRT_MAX); - RNA_def_property_ui_text(prop, "Dash #2", "Length of the 2nd dash."); + RNA_def_property_ui_text(prop, "Dash #2", "Length of the 2nd dash"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "gap2", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "gap2"); RNA_def_property_range(prop, 0, USHRT_MAX); - RNA_def_property_ui_text(prop, "Gap #2", "Length of the 2nd gap."); + RNA_def_property_ui_text(prop, "Gap #2", "Length of the 2nd gap"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "dash3", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "dash3"); RNA_def_property_range(prop, 0, USHRT_MAX); - RNA_def_property_ui_text(prop, "Dash #3", "Length of the 3rd dash."); + RNA_def_property_ui_text(prop, "Dash #3", "Length of the 3rd dash"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "gap3", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "gap3"); RNA_def_property_range(prop, 0, USHRT_MAX); - RNA_def_property_ui_text(prop, "Gap #3", "Length of the 3rd gap."); + RNA_def_property_ui_text(prop, "Gap #3", "Length of the 3rd gap"); RNA_def_property_update(prop, NC_SCENE, NULL); } diff --git a/source/blender/makesrna/intern/rna_main.c b/source/blender/makesrna/intern/rna_main.c index b6bb31242e0..06b6816fcf1 100644 --- a/source/blender/makesrna/intern/rna_main.c +++ b/source/blender/makesrna/intern/rna_main.c @@ -313,7 +313,7 @@ void RNA_def_main(BlenderRNA *brna) {"actions", "Action", "rna_Main_action_begin", "Actions", "Action datablocks", RNA_def_main_actions}, {"particles", "ParticleSettings", "rna_Main_particle_begin", "Particles", "Particle datablocks", RNA_def_main_particles}, {"grease_pencil", "GreasePencil", "rna_Main_gpencil_begin", "Grease Pencil", "Grease Pencil datablocks", RNA_def_main_gpencil}, - {"linestyles", "FreestyleLineStyle", "rna_Main_linestyle_begin", "Line Styles", "Line Style datablocks.", RNA_def_main_linestyles}, + {"linestyles", "FreestyleLineStyle", "rna_Main_linestyle_begin", "Line Styles", "Line Style datablocks", RNA_def_main_linestyles}, {NULL, NULL, NULL, NULL, NULL, NULL}}; int i; diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index 484a1e5ce4a..dc106d4bcc9 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -1325,6 +1325,7 @@ void RNA_def_main_gpencil(BlenderRNA *brna, PropertyRNA *cprop) parm= RNA_def_boolean(func, "value", 0, "Value", ""); RNA_def_property_flag(parm, PROP_REQUIRED); } + void RNA_def_main_linestyles(BlenderRNA *brna, PropertyRNA *cprop) { StructRNA *srna; @@ -1338,16 +1339,16 @@ void RNA_def_main_linestyles(BlenderRNA *brna, PropertyRNA *cprop) func= RNA_def_function(srna, "new", "rna_Main_linestyles_new"); RNA_def_function_ui_description(func, "Add a new line style instance to the main database"); - parm= RNA_def_string(func, "name", "FreestyleLineStyle", 0, "", "New name for the datablock."); + parm= RNA_def_string(func, "name", "FreestyleLineStyle", 0, "", "New name for the datablock"); RNA_def_property_flag(parm, PROP_REQUIRED); /* return type */ - parm= RNA_def_pointer(func, "linestyle", "FreestyleLineStyle", "", "New line style datablock."); + parm= RNA_def_pointer(func, "linestyle", "FreestyleLineStyle", "", "New line style datablock"); RNA_def_function_return(func, parm); func= RNA_def_function(srna, "remove", "rna_Main_linestyles_remove"); RNA_def_function_flag(func, FUNC_USE_REPORTS); - RNA_def_function_ui_description(func, "Remove a line style instance from the current blendfile."); - parm= RNA_def_pointer(func, "linestyle", "FreestyleLineStyle", "", "Line style to remove."); + RNA_def_function_ui_description(func, "Remove a line style instance from the current blendfile"); + parm= RNA_def_pointer(func, "linestyle", "FreestyleLineStyle", "", "Line style to remove"); RNA_def_property_flag(parm, PROP_REQUIRED); } diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 1c20532be7b..1456365ace2 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -1585,7 +1585,7 @@ void rna_def_render_layer_common(StructRNA *srna, int scene) prop= RNA_def_property(srna, "use_freestyle", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_FRS); - RNA_def_property_ui_text(prop, "Freestyle", "Render stylized strokes in this Layer."); + RNA_def_property_ui_text(prop, "Freestyle", "Render stylized strokes in this Layer"); if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL); else RNA_def_property_clear_flag(prop, PROP_EDITABLE); @@ -1783,28 +1783,28 @@ static void rna_def_freestyle_settings(BlenderRNA *brna) PropertyRNA *prop; static EnumPropertyItem edge_type_negation_items[] = { - {0, "INCLUSIVE", 0, "Inclusive", "Select feature edges satisfying the given edge type conditions."}, - {FREESTYLE_LINESET_FE_NOT, "EXCLUSIVE", 0, "Exclusive", "Select feature edges not satisfying the given edge type conditions."}, + {0, "INCLUSIVE", 0, "Inclusive", "Select feature edges satisfying the given edge type conditions"}, + {FREESTYLE_LINESET_FE_NOT, "EXCLUSIVE", 0, "Exclusive", "Select feature edges not satisfying the given edge type conditions"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem edge_type_combination_items[] = { - {0, "OR", 0, "Logical OR", "Combine feature edge type conditions by logical OR (logical disjunction)."}, - {FREESTYLE_LINESET_FE_AND, "AND", 0, "Logical AND", "Combine feature edge type conditions by logical AND (logical conjunction)."}, + {0, "OR", 0, "Logical OR", "Combine feature edge type conditions by logical OR (logical disjunction)"}, + {FREESTYLE_LINESET_FE_AND, "AND", 0, "Logical AND", "Combine feature edge type conditions by logical AND (logical conjunction)"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem group_negation_items[] = { - {0, "INCLUSIVE", 0, "Inclusive", "Select feature edges belonging to some object in the group."}, - {FREESTYLE_LINESET_GR_NOT, "EXCLUSIVE", 0, "Exclusive", "Select feature edges not belonging to any object in the group."}, + {0, "INCLUSIVE", 0, "Inclusive", "Select feature edges belonging to some object in the group"}, + {FREESTYLE_LINESET_GR_NOT, "EXCLUSIVE", 0, "Exclusive", "Select feature edges not belonging to any object in the group"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem face_mark_negation_items[] = { - {0, "INCLUSIVE", 0, "Inclusive", "Select feature edges satisfying the given face mark conditions."}, - {FREESTYLE_LINESET_FM_NOT, "EXCLUSIVE", 0, "Exclusive", "Select feature edges not satisfying the given face mark conditions."}, + {0, "INCLUSIVE", 0, "Inclusive", "Select feature edges satisfying the given face mark conditions"}, + {FREESTYLE_LINESET_FM_NOT, "EXCLUSIVE", 0, "Exclusive", "Select feature edges not satisfying the given face mark conditions"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem face_mark_condition_items[] = { - {0, "ONE", 0, "One Face", "Select feature edges if one of faces on the right and left has a face mark."}, - {FREESTYLE_LINESET_FM_BOTH, "BOTH", 0, "Both Faces", "Select feature edges if both faces on the right and left faces have a face mark."}, + {0, "ONE", 0, "One Face", "Select feature edges if one of faces on the right and left has a face mark"}, + {FREESTYLE_LINESET_FM_BOTH, "BOTH", 0, "Both Faces", "Select feature edges if both faces on the right and left faces have a face mark"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem freestyle_ui_mode_items[] = { @@ -1813,9 +1813,9 @@ static void rna_def_freestyle_settings(BlenderRNA *brna) {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem visibility_items[] ={ - {FREESTYLE_QI_VISIBLE, "VISIBLE", 0, "Visible", "Select visible feature edges."}, - {FREESTYLE_QI_HIDDEN, "HIDDEN", 0, "Hidden", "Select hidden feature edges."}, - {FREESTYLE_QI_RANGE, "RANGE", 0, "QI Range", "Select feature edges within a range of quantitative invisibility (QI) values."}, + {FREESTYLE_QI_VISIBLE, "VISIBLE", 0, "Visible", "Select visible feature edges"}, + {FREESTYLE_QI_HIDDEN, "HIDDEN", 0, "Hidden", "Select hidden feature edges"}, + {FREESTYLE_QI_RANGE, "RANGE", 0, "QI Range", "Select feature edges within a range of quantitative invisibility (QI) values"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem freestyle_raycasting_algorithm_items[] = { @@ -1832,7 +1832,7 @@ static void rna_def_freestyle_settings(BlenderRNA *brna) /* FreestyleLineSet */ srna= RNA_def_struct(brna, "FreestyleLineSet", NULL); - RNA_def_struct_ui_text(srna, "Freestyle Line Set", "Line set for associating lines and style parameters."); + RNA_def_struct_ui_text(srna, "Freestyle Line Set", "Line set for associating lines and style parameters"); /* access to line style settings is redirected through functions */ /* to allow proper id-buttons functionality */ @@ -1851,185 +1851,185 @@ static void rna_def_freestyle_settings(BlenderRNA *brna) prop= RNA_def_property(srna, "use", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", FREESTYLE_LINESET_ENABLED); - RNA_def_property_ui_text(prop, "Use", "Enable or disable this line set during stroke rendering."); + RNA_def_property_ui_text(prop, "Use", "Enable or disable this line set during stroke rendering"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_by_visibility", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "selection", FREESTYLE_SEL_VISIBILITY); - RNA_def_property_ui_text(prop, "Selection by Visibility", "Select feature edges based on visibility."); + RNA_def_property_ui_text(prop, "Selection by Visibility", "Select feature edges based on visibility"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_by_edge_types", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "selection", FREESTYLE_SEL_EDGE_TYPES); - RNA_def_property_ui_text(prop, "Selection by Edge Types", "Select feature edges based on edge types."); + RNA_def_property_ui_text(prop, "Selection by Edge Types", "Select feature edges based on edge types"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_by_group", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "selection", FREESTYLE_SEL_GROUP); - RNA_def_property_ui_text(prop, "Selection by Group", "Select feature edges based on a group of objects."); + RNA_def_property_ui_text(prop, "Selection by Group", "Select feature edges based on a group of objects"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_by_image_border", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "selection", FREESTYLE_SEL_IMAGE_BORDER); - RNA_def_property_ui_text(prop, "Selection by Image Border", "Select feature edges by image border (less memory consumption)."); + RNA_def_property_ui_text(prop, "Selection by Image Border", "Select feature edges by image border (less memory consumption)"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_by_face_marks", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "selection", FREESTYLE_SEL_FACE_MARK); - RNA_def_property_ui_text(prop, "Selection by Face Marks", "Select feature edges by face marks."); + RNA_def_property_ui_text(prop, "Selection by Face Marks", "Select feature edges by face marks"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "edge_type_negation", PROP_ENUM, PROP_NONE); RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); RNA_def_property_enum_items(prop, edge_type_negation_items); - RNA_def_property_ui_text(prop, "Edge Type Negation", "Set the negation operation for conditions on feature edge types."); + RNA_def_property_ui_text(prop, "Edge Type Negation", "Set the negation operation for conditions on feature edge types"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "edge_type_combination", PROP_ENUM, PROP_NONE); RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); RNA_def_property_enum_items(prop, edge_type_combination_items); - RNA_def_property_ui_text(prop, "Edge Type Combination", "Set the combination operation for conditions on feature edge types."); + RNA_def_property_ui_text(prop, "Edge Type Combination", "Set the combination operation for conditions on feature edge types"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "group", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "group"); RNA_def_property_struct_type(prop, "Group"); RNA_def_property_flag(prop, PROP_EDITABLE); - RNA_def_property_ui_text(prop, "Group", "A group of objects based on which feature edges are selected."); + RNA_def_property_ui_text(prop, "Group", "A group of objects based on which feature edges are selected"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "group_negation", PROP_ENUM, PROP_NONE); RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); RNA_def_property_enum_items(prop, group_negation_items); - RNA_def_property_ui_text(prop, "Group Negation", "Set the negation operation for conditions on feature edge types."); + RNA_def_property_ui_text(prop, "Group Negation", "Set the negation operation for conditions on feature edge types"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "face_mark_negation", PROP_ENUM, PROP_NONE); RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); RNA_def_property_enum_items(prop, face_mark_negation_items); - RNA_def_property_ui_text(prop, "Face Mark Negation", "Set the negation operation for the condition on face marks."); + RNA_def_property_ui_text(prop, "Face Mark Negation", "Set the negation operation for the condition on face marks"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "face_mark_condition", PROP_ENUM, PROP_NONE); RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); RNA_def_property_enum_items(prop, face_mark_condition_items); - RNA_def_property_ui_text(prop, "Face Mark Condition", "Set a feature edge selection condition on face marks."); + RNA_def_property_ui_text(prop, "Face Mark Condition", "Set a feature edge selection condition on face marks"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_silhouette", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_SILHOUETTE); - RNA_def_property_ui_text(prop, "Silhouette", "Select silhouette edges."); + RNA_def_property_ui_text(prop, "Silhouette", "Select silhouette edges"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_border", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_BORDER); - RNA_def_property_ui_text(prop, "Border", "Select border edges."); + RNA_def_property_ui_text(prop, "Border", "Select border edges"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_crease", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_CREASE); - RNA_def_property_ui_text(prop, "Crease", "Select crease edges."); + RNA_def_property_ui_text(prop, "Crease", "Select crease edges"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_ridge", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_RIDGE); - RNA_def_property_ui_text(prop, "Ridge", "Select ridges."); + RNA_def_property_ui_text(prop, "Ridge", "Select ridges"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_valley", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_VALLEY); - RNA_def_property_ui_text(prop, "Valley", "Select valleys."); + RNA_def_property_ui_text(prop, "Valley", "Select valleys"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_suggestive_contour", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_SUGGESTIVE_CONTOUR); - RNA_def_property_ui_text(prop, "Suggestive Contour", "Select suggestive contours."); + RNA_def_property_ui_text(prop, "Suggestive Contour", "Select suggestive contours"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_material_boundary", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_MATERIAL_BOUNDARY); - RNA_def_property_ui_text(prop, "Material Boundary", "Select edges at material boundaries."); + RNA_def_property_ui_text(prop, "Material Boundary", "Select edges at material boundaries"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_contour", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_CONTOUR); - RNA_def_property_ui_text(prop, "Contour", "Select contours."); + RNA_def_property_ui_text(prop, "Contour", "Select contours"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_external_contour", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_EXTERNAL_CONTOUR); - RNA_def_property_ui_text(prop, "External Contour", "Select external contours."); + RNA_def_property_ui_text(prop, "External Contour", "Select external contours"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "select_edge_mark", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "edge_types", FREESTYLE_FE_EDGE_MARK); - RNA_def_property_ui_text(prop, "Edge Mark", "Select edge marks."); + RNA_def_property_ui_text(prop, "Edge Mark", "Select edge marks"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_silhouette", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_SILHOUETTE); - RNA_def_property_ui_text(prop, "Silhouette", "Exclude silhouette edges."); + RNA_def_property_ui_text(prop, "Silhouette", "Exclude silhouette edges"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_border", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_BORDER); - RNA_def_property_ui_text(prop, "Border", "Exclude border edges."); + RNA_def_property_ui_text(prop, "Border", "Exclude border edges"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_crease", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_CREASE); - RNA_def_property_ui_text(prop, "Crease", "Exclude crease edges."); + RNA_def_property_ui_text(prop, "Crease", "Exclude crease edges"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_ridge", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_RIDGE); - RNA_def_property_ui_text(prop, "Ridge", "Exclude ridges."); + RNA_def_property_ui_text(prop, "Ridge", "Exclude ridges"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_valley", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_VALLEY); - RNA_def_property_ui_text(prop, "Valley", "Exclude valleys."); + RNA_def_property_ui_text(prop, "Valley", "Exclude valleys"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_suggestive_contour", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_SUGGESTIVE_CONTOUR); - RNA_def_property_ui_text(prop, "Suggestive Contour", "Exclude suggestive contours."); + RNA_def_property_ui_text(prop, "Suggestive Contour", "Exclude suggestive contours"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_material_boundary", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_MATERIAL_BOUNDARY); - RNA_def_property_ui_text(prop, "Material Boundary", "Exclude edges at material boundaries."); + RNA_def_property_ui_text(prop, "Material Boundary", "Exclude edges at material boundaries"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_contour", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_CONTOUR); - RNA_def_property_ui_text(prop, "Contour", "Exclude contours."); + RNA_def_property_ui_text(prop, "Contour", "Exclude contours"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_external_contour", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_EXTERNAL_CONTOUR); - RNA_def_property_ui_text(prop, "External Contour", "Exclude external contours."); + RNA_def_property_ui_text(prop, "External Contour", "Exclude external contours"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "exclude_edge_mark", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "exclude_edge_types", FREESTYLE_FE_EDGE_MARK); - RNA_def_property_ui_text(prop, "Edge Mark", "Exclude edge marks."); + RNA_def_property_ui_text(prop, "Edge Mark", "Exclude edge marks"); RNA_def_property_ui_icon(prop, ICON_X, 0); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "visibility", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "qi"); RNA_def_property_enum_items(prop, visibility_items); - RNA_def_property_ui_text(prop, "Visibility", "Determine how to use visibility for feature edge selection."); + RNA_def_property_ui_text(prop, "Visibility", "Determine how to use visibility for feature edge selection"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "qi_start", PROP_INT, PROP_UNSIGNED); @@ -2048,16 +2048,16 @@ static void rna_def_freestyle_settings(BlenderRNA *brna) srna= RNA_def_struct(brna, "FreestyleModuleSettings", NULL); RNA_def_struct_sdna(srna, "FreestyleModuleConfig"); - RNA_def_struct_ui_text(srna, "Freestyle Module", "Style module configuration for specifying a style module."); + RNA_def_struct_ui_text(srna, "Freestyle Module", "Style module configuration for specifying a style module"); prop= RNA_def_property(srna, "module_path", PROP_STRING, PROP_FILEPATH); RNA_def_property_string_sdna(prop, NULL, "module_path"); - RNA_def_property_ui_text(prop, "Module Path", "Path to a style module file."); + RNA_def_property_ui_text(prop, "Module Path", "Path to a style module file"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "use", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "is_displayed", 1); - RNA_def_property_ui_text(prop, "Use", "Enable or disable this style module during stroke rendering."); + RNA_def_property_ui_text(prop, "Use", "Enable or disable this style module during stroke rendering"); RNA_def_property_update(prop, NC_SCENE, NULL); /* FreestyleSettings */ @@ -2065,12 +2065,12 @@ static void rna_def_freestyle_settings(BlenderRNA *brna) srna= RNA_def_struct(brna, "FreestyleSettings", NULL); RNA_def_struct_sdna(srna, "FreestyleConfig"); RNA_def_struct_nested(brna, srna, "SceneRenderLayer"); - RNA_def_struct_ui_text(srna, "Frestyle Settings", "Freestyle settings for a SceneRenderLayer datablock."); + RNA_def_struct_ui_text(srna, "Frestyle Settings", "Freestyle settings for a SceneRenderLayer datablock"); prop= RNA_def_property(srna, "modules", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "modules", NULL); RNA_def_property_struct_type(prop, "FreestyleModuleSettings"); - RNA_def_property_ui_text(prop, "Style modules", "A list of style modules (to be applied from top to bottom)."); + RNA_def_property_ui_text(prop, "Style modules", "A list of style modules (to be applied from top to bottom)"); prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "mode"); @@ -2086,40 +2086,40 @@ static void rna_def_freestyle_settings(BlenderRNA *brna) prop= RNA_def_property(srna, "use_suggestive_contours", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", FREESTYLE_SUGGESTIVE_CONTOURS_FLAG); - RNA_def_property_ui_text(prop, "Suggestive Contours", "Enable suggestive contours."); + RNA_def_property_ui_text(prop, "Suggestive Contours", "Enable suggestive contours"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "use_ridges_and_valleys", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", FREESTYLE_RIDGES_AND_VALLEYS_FLAG); - RNA_def_property_ui_text(prop, "Ridges and Valleys", "Enable ridges and valleys."); + RNA_def_property_ui_text(prop, "Ridges and Valleys", "Enable ridges and valleys"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "use_material_boundaries", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", FREESTYLE_MATERIAL_BOUNDARIES_FLAG); - RNA_def_property_ui_text(prop, "Material Boundaries", "Enable material boundaries."); + RNA_def_property_ui_text(prop, "Material Boundaries", "Enable material boundaries"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "use_smoothness", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", FREESTYLE_FACE_SMOOTHNESS_FLAG); - RNA_def_property_ui_text(prop, "Face Smoothness", "Take face smoothness into account in view map calculation."); + RNA_def_property_ui_text(prop, "Face Smoothness", "Take face smoothness into account in view map calculation"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "sphere_radius", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "sphere_radius"); RNA_def_property_range(prop, 0.0, 1000.0); - RNA_def_property_ui_text(prop, "Sphere Radius", "Sphere radius for computing curvatures."); + RNA_def_property_ui_text(prop, "Sphere Radius", "Sphere radius for computing curvatures"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "kr_derivative_epsilon", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "dkr_epsilon"); RNA_def_property_range(prop, 0.0, 1000.0); - RNA_def_property_ui_text(prop, "Kr Derivative Epsilon", "Kr derivative epsilon for computing suggestive contours."); + RNA_def_property_ui_text(prop, "Kr Derivative Epsilon", "Kr derivative epsilon for computing suggestive contours"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "crease_angle", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "crease_angle"); RNA_def_property_range(prop, 0.0, 180.0); - RNA_def_property_ui_text(prop, "Crease Angle", "Angular threshold in degrees (between 0 and 180) for detecting crease edges."); + RNA_def_property_ui_text(prop, "Crease Angle", "Angular threshold in degrees (between 0 and 180) for detecting crease edges"); RNA_def_property_update(prop, NC_SCENE, NULL); prop= RNA_def_property(srna, "linesets", PROP_COLLECTION, PROP_NONE); @@ -3296,7 +3296,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna) prop= RNA_def_property(srna, "use_freestyle", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "mode", R_EDGE_FRS); - RNA_def_property_ui_text(prop, "Edge", "Draw stylized strokes using Freestyle."); + RNA_def_property_ui_text(prop, "Edge", "Draw stylized strokes using Freestyle"); RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL); /* threads */