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:
authorWilliam Reynish <billreynish>2021-01-20 12:48:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-20 12:51:44 +0300
commit685419d6bebfec1542ecbe8c3542baba88132604 (patch)
tree86fb6a320afab743b6f18e4bf7f93e2f629ec4b4 /source/blender/editors/object/object_relations.c
parent91bf24dd00781ce83851edbbc72f617bb26f827f (diff)
UI: Object "Make Links" sub-menu overhaul
- Rename to "Link/Transfer Data". - Move Mesh Data Transfer operators here from the Relations sub-menu. - Clarify which operations links to, copies or transfers/projects data using Link, Copy and Transfer leading text. - Re-order contents to fit each category and add separators. - Add enum tool-tips. Reviewed By: Blendify, campbellbarton pablovazquez, mont29 Ref D10090
Diffstat (limited to 'source/blender/editors/object/object_relations.c')
-rw-r--r--source/blender/editors/object/object_relations.c33
1 files changed, 23 insertions, 10 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index acad1b43cbb..e4d06dca8cf 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -1790,20 +1790,33 @@ void OBJECT_OT_make_links_scene(wmOperatorType *ot)
void OBJECT_OT_make_links_data(wmOperatorType *ot)
{
static const EnumPropertyItem make_links_items[] = {
- {MAKE_LINKS_OBDATA, "OBDATA", 0, "Object Data", ""},
- {MAKE_LINKS_MATERIALS, "MATERIAL", 0, "Materials", ""},
- {MAKE_LINKS_ANIMDATA, "ANIMATION", 0, "Animation Data", ""},
- {MAKE_LINKS_GROUP, "GROUPS", 0, "Collection", ""},
- {MAKE_LINKS_DUPLICOLLECTION, "DUPLICOLLECTION", 0, "Instance Collection", ""},
- {MAKE_LINKS_MODIFIERS, "MODIFIERS", 0, "Modifiers", ""},
- {MAKE_LINKS_FONTS, "FONTS", 0, "Fonts", ""},
- {MAKE_LINKS_SHADERFX, "EFFECTS", 0, "Effects", ""},
+ {MAKE_LINKS_OBDATA, "OBDATA", 0, "Link Object Data", "Replace assigned Object Data"},
+ {MAKE_LINKS_MATERIALS, "MATERIAL", 0, "Link Materials", "Replace assigned Materials"},
+ {MAKE_LINKS_ANIMDATA,
+ "ANIMATION",
+ 0,
+ "Link Animation Data",
+ "Replace assigned Animation Data"},
+ {MAKE_LINKS_GROUP, "GROUPS", 0, "Link Collections", "Replace assigned Collections"},
+ {MAKE_LINKS_DUPLICOLLECTION,
+ "DUPLICOLLECTION",
+ 0,
+ "Link Instance Collection",
+ "Replace assigned Collection Instance"},
+ {MAKE_LINKS_FONTS, "FONTS", 0, "Link Fonts to Text", "Replace Text object Fonts"},
+ {0, "", 0, NULL, NULL},
+ {MAKE_LINKS_MODIFIERS, "MODIFIERS", 0, "Copy Modifiers", "Replace Modifiers"},
+ {MAKE_LINKS_SHADERFX,
+ "EFFECTS",
+ 0,
+ "Copy Grease Pencil Effects",
+ "Replace Grease Pencil Effects"},
{0, NULL, 0, NULL, NULL},
};
/* identifiers */
- ot->name = "Link Data";
- ot->description = "Apply active object links to other selected objects";
+ ot->name = "Link/Transfer Data";
+ ot->description = "Transfer data from active object to selected objects";
ot->idname = "OBJECT_OT_make_links_data";
/* api callbacks */