Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Vazquez <pablo@blender.org>2020-09-08 17:30:09 +0300
committerPablo Vazquez <pablo@blender.org>2020-09-08 17:30:29 +0300
commit8f4f9275cea6602e74eecf7e9a88c101f9cc5245 (patch)
tree9f28e3d0d10c5d0f28227802d09f0c4d5e468694 /source/blender/makesrna/intern/rna_object.c
parent9421d66a1b74f18b1eadbfdff4d8bfc08bd19913 (diff)
UI: Aesthetic tweaks to Select All by Type operator
* Match menu items with Add Menu (order and naming e.g. Font -> Text) * Use Icons * Remove ellipsis from the name (policy is to use `...` only when triggering a window/popup) No functional changes. Thanks @HooglyBoogly for the help!
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r--source/blender/makesrna/intern/rna_object.c35
1 files changed, 19 insertions, 16 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index e98fff13068..c7f625e2fa5 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -223,36 +223,39 @@ const EnumPropertyItem rna_enum_lightprobes_type_items[] = {
/* used for 2 enums */
#define OBTYPE_CU_CURVE \
{ \
- OB_CURVE, "CURVE", 0, "Curve", "" \
+ OB_CURVE, "CURVE", ICON_OUTLINER_OB_CURVE, "Curve", "" \
}
#define OBTYPE_CU_SURF \
{ \
- OB_SURF, "SURFACE", 0, "Surface", "" \
+ OB_SURF, "SURFACE", ICON_OUTLINER_OB_SURFACE, "Surface", "" \
}
#define OBTYPE_CU_FONT \
{ \
- OB_FONT, "FONT", 0, "Font", "" \
+ OB_FONT, "FONT", ICON_OUTLINER_OB_FONT, "Text", "" \
}
const EnumPropertyItem rna_enum_object_type_items[] = {
- {OB_MESH, "MESH", 0, "Mesh", ""},
+ {OB_MESH, "MESH", ICON_OUTLINER_OB_MESH, "Mesh", ""},
OBTYPE_CU_CURVE,
OBTYPE_CU_SURF,
- {OB_MBALL, "META", 0, "Meta", ""},
+ {OB_MBALL, "META", ICON_OUTLINER_OB_META, "Metaball", ""},
OBTYPE_CU_FONT,
- {OB_HAIR, "HAIR", 0, "Hair", ""},
- {OB_POINTCLOUD, "POINTCLOUD", 0, "PointCloud", ""},
- {OB_VOLUME, "VOLUME", 0, "Volume", ""},
+ {OB_HAIR, "HAIR", ICON_OUTLINER_OB_HAIR, "Hair", ""},
+ {OB_POINTCLOUD, "POINTCLOUD", ICON_OUTLINER_OB_POINTCLOUD, "Point Cloud", ""},
+ {OB_VOLUME, "VOLUME", ICON_OUTLINER_OB_VOLUME, "Volume", ""},
+ {OB_GPENCIL, "GPENCIL", ICON_OUTLINER_OB_GREASEPENCIL, "Grease Pencil", ""},
{0, "", 0, NULL, NULL},
- {OB_ARMATURE, "ARMATURE", 0, "Armature", ""},
- {OB_LATTICE, "LATTICE", 0, "Lattice", ""},
- {OB_EMPTY, "EMPTY", 0, "Empty", ""},
- {OB_GPENCIL, "GPENCIL", 0, "GPencil", ""},
+ {OB_ARMATURE, "ARMATURE", ICON_OUTLINER_OB_ARMATURE, "Armature", ""},
+ {OB_LATTICE, "LATTICE", ICON_OUTLINER_OB_LATTICE, "Lattice", ""},
{0, "", 0, NULL, NULL},
- {OB_CAMERA, "CAMERA", 0, "Camera", ""},
- {OB_LAMP, "LIGHT", 0, "Light", ""},
- {OB_SPEAKER, "SPEAKER", 0, "Speaker", ""},
- {OB_LIGHTPROBE, "LIGHT_PROBE", 0, "Probe", ""},
+ {OB_EMPTY, "EMPTY", ICON_OUTLINER_OB_EMPTY, "Empty", ""},
+ {0, "", 0, NULL, NULL},
+ {OB_LAMP, "LIGHT", ICON_OUTLINER_OB_LIGHT, "Light", ""},
+ {OB_LIGHTPROBE, "LIGHT_PROBE", ICON_OUTLINER_OB_LIGHTPROBE, "Light Probe", ""},
+ {0, "", 0, NULL, NULL},
+ {OB_CAMERA, "CAMERA", ICON_OUTLINER_OB_CAMERA, "Camera", ""},
+ {0, "", 0, NULL, NULL},
+ {OB_SPEAKER, "SPEAKER", ICON_OUTLINER_OB_SPEAKER, "Speaker", ""},
{0, NULL, 0, NULL, NULL},
};