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:
authormakowalski <makowalski@nvidia.com>2021-07-20 04:00:09 +0300
committermakowalski <makowalski@nvidia.com>2021-07-20 04:00:09 +0300
commit50443ada6504d34f0355487fa19283e171d4293e (patch)
tree878403524c936a5b848da16b53aff5c47d7d9a6c
parentaf536794eb13a6b82c7cc43d1879ddd35d619af0 (diff)
USD import: clarify mesh read options.
Simplified the mesh read options naming and descriptions to remove references to the mesh sequence modifiers, as such references may be confusing. The enum labels should now make it more obvious which options are for animated data, so mentioning the modifiers is unnecessary.
-rw-r--r--source/blender/editors/io/io_usd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/editors/io/io_usd.c b/source/blender/editors/io/io_usd.c
index 263a9b91a18..aa341e4b2f2 100644
--- a/source/blender/editors/io/io_usd.c
+++ b/source/blender/editors/io/io_usd.c
@@ -77,7 +77,7 @@ const EnumPropertyItem rna_enum_usd_import_read_flags[] = {
{MOD_MESHSEQ_READ_VERT, "VERT", 0, "Vertex Animation", ""},
{MOD_MESHSEQ_READ_POLY, "POLY", 0, "Face Animation", ""},
{MOD_MESHSEQ_READ_UV, "UV", 0, "UV Coordinates", ""},
- {MOD_MESHSEQ_READ_COLOR, "COLOR", 0, "Mesh Color", ""},
+ {MOD_MESHSEQ_READ_COLOR, "COLOR", 0, "Vertex Colors", ""},
{0, NULL, 0, NULL, NULL},
};
@@ -369,7 +369,6 @@ static void wm_usd_import_draw(bContext *UNUSED(C), wmOperator *op)
uiLayout *box = uiLayoutBox(layout);
uiItemL(box, IFACE_("USD Import"), ICON_NONE);
- uiItemL(box, IFACE_("Global Mesh Read Data Flag:"), ICON_NONE);
uiItemR(box, ptr, "global_read_flag", UI_ITEM_R_EXPAND, NULL, ICON_NONE);
uiItemL(box, IFACE_("Manual Transform:"), ICON_NONE);
uiItemR(box, ptr, "scale", 0, NULL, ICON_NONE);
@@ -489,10 +488,8 @@ void WM_OT_usd_import(struct wmOperatorType *ot)
"global_read_flag",
rna_enum_usd_import_read_flags,
0,
- "Flags",
- "Set the Read Data flag for all mesh sequence cache modifiers applied "
- "to imported animated meshes, specifying the cache data to read. Note "
- "that the UV and Color options apply to static meshes as well");
+ "Mesh Data",
+ "Mesh data to read");
/* Specify that the flag contains multiple enums. */
RNA_def_property_flag(prop, PROP_ENUM_FLAG);