diff options
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_context.c | 7 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_curve.c | 3 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_object.c | 24 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 7 |
4 files changed, 14 insertions, 27 deletions
diff --git a/source/blender/makesrna/intern/rna_context.c b/source/blender/makesrna/intern/rna_context.c index 40f2927077c..75f8b97b99d 100644 --- a/source/blender/makesrna/intern/rna_context.c +++ b/source/blender/makesrna/intern/rna_context.c @@ -37,11 +37,8 @@ const EnumPropertyItem rna_enum_context_mode_items[] = { {CTX_MODE_EDIT_CURVE, "EDIT_CURVE", 0, "Curve Edit", ""}, {CTX_MODE_EDIT_SURFACE, "EDIT_SURFACE", 0, "Surface Edit", ""}, {CTX_MODE_EDIT_TEXT, "EDIT_TEXT", 0, "Edit Edit", ""}, - {CTX_MODE_EDIT_ARMATURE, - "EDIT_ARMATURE", - 0, - "Armature Edit", - ""}, /* PARSKEL reuse will give issues */ + /* PARSKEL reuse will give issues */ + {CTX_MODE_EDIT_ARMATURE, "EDIT_ARMATURE", 0, "Armature Edit", ""}, {CTX_MODE_EDIT_METABALL, "EDIT_METABALL", 0, "Metaball Edit", ""}, {CTX_MODE_EDIT_LATTICE, "EDIT_LATTICE", 0, "Lattice Edit", ""}, {CTX_MODE_POSE, "POSE", 0, "Pose ", ""}, diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c index 7afc0ca6eae..bf53d41c484 100644 --- a/source/blender/makesrna/intern/rna_curve.c +++ b/source/blender/makesrna/intern/rna_curve.c @@ -1781,7 +1781,8 @@ static void rna_def_curve_nurb(BlenderRNA *brna) {KEY_LINEAR, "LINEAR", 0, "Linear", ""}, {KEY_CARDINAL, "CARDINAL", 0, "Cardinal", ""}, {KEY_BSPLINE, "BSPLINE", 0, "BSpline", ""}, - {KEY_CU_EASE, "EASE", 0, "Ease", ""}, /* todo, define somewhere, not one of BEZT_IPO_* */ + /* TODO: define somewhere, not one of BEZT_IPO_*. */ + {KEY_CU_EASE, "EASE", 0, "Ease", ""}, {0, NULL, 0, NULL, NULL}, }; diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index 6aed3003ab9..047887644c8 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -153,11 +153,8 @@ const EnumPropertyItem rna_enum_object_gpencil_type_items[] = { static const EnumPropertyItem parent_type_items[] = { {PAROBJECT, "OBJECT", 0, "Object", "The object is parented to an object"}, {PARSKEL, "ARMATURE", 0, "Armature", ""}, - {PARSKEL, - "LATTICE", - 0, - "Lattice", - "The object is parented to a lattice"}, /* PARSKEL reuse will give issues */ + /* PARSKEL reuse will give issues. */ + {PARSKEL, "LATTICE", 0, "Lattice", "The object is parented to a lattice"}, {PARVERT1, "VERTEX", 0, "Vertex", "The object is parented to a vertex"}, {PARVERT3, "VERTEX_3", 0, "3 Vertices", ""}, {PARBONE, "BONE", 0, "Bone", "The object is parented to a bone"}, @@ -193,11 +190,8 @@ const EnumPropertyItem rna_enum_metaelem_type_items[] = { {MB_BALL, "BALL", ICON_META_BALL, "Ball", ""}, {MB_TUBE, "CAPSULE", ICON_META_CAPSULE, "Capsule", ""}, {MB_PLANE, "PLANE", ICON_META_PLANE, "Plane", ""}, - {MB_ELIPSOID, - "ELLIPSOID", - ICON_META_ELLIPSOID, - "Ellipsoid", - ""}, /* NOTE: typo at original definition! */ + /* NOTE: typo at original definition! */ + {MB_ELIPSOID, "ELLIPSOID", ICON_META_ELLIPSOID, "Ellipsoid", ""}, {MB_CUBE, "CUBE", ICON_META_CUBE, "Cube", ""}, {0, NULL, 0, NULL, NULL}, }; @@ -714,9 +708,8 @@ void rna_object_vgroup_name_set(PointerRNA *ptr, const char *value, char *result Object *ob = (Object *)ptr->id.data; bDeformGroup *dg = defgroup_find_name(ob, value); if (dg) { - BLI_strncpy(result, - value, - maxlen); /* no need for BLI_strncpy_utf8, since this matches an existing group */ + /* No need for BLI_strncpy_utf8, since this matches an existing group. */ + BLI_strncpy(result, value, maxlen); return; } @@ -798,9 +791,8 @@ void rna_object_fmap_name_set(PointerRNA *ptr, const char *value, char *result, Object *ob = (Object *)ptr->id.data; bFaceMap *fmap = BKE_object_facemap_find_name(ob, value); if (fmap) { - BLI_strncpy(result, - value, - maxlen); /* no need for BLI_strncpy_utf8, since this matches an existing group */ + /* No need for BLI_strncpy_utf8, since this matches an existing group. */ + BLI_strncpy(result, value, maxlen); return; } diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index e14f499e714..848944262e8 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -2686,11 +2686,8 @@ static void rna_def_tool_settings(BlenderRNA *brna) ICON_PIVOT_CURSOR, "3D Cursor", "Draw stroke at 3D cursor location"}, - {0, - "VIEW", - ICON_RESTRICT_VIEW_ON, - "View", - "Stick stroke to the view "}, /* weird, GP_PROJECT_VIEWALIGN is inverted */ + /* Weird, GP_PROJECT_VIEWALIGN is inverted. */ + {0, "VIEW", ICON_RESTRICT_VIEW_ON, "View", "Stick stroke to the view "}, {GP_PROJECT_VIEWSPACE | GP_PROJECT_DEPTH_VIEW, "SURFACE", ICON_FACESEL, |