[Bf-blender-cvs] [8e66183a982] blender-v2.82-release: USD Exporter: clarified export options in the UI

Sybren A. Stüvel noreply at git.blender.org
Fri Jan 10 15:43:40 CET 2020


Commit: 8e66183a982ab3e4c524af0d71d2f62ad4fd3c37
Author: Sybren A. Stüvel
Date:   Fri Jan 10 15:25:51 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB8e66183a982ab3e4c524af0d71d2f62ad4fd3c37

USD Exporter: clarified export options in the UI

- "Only Export Selected Objects" → "Selection Only", as this is the
  standard used in other exporters.
- "Evaluation Mode" → "Use Settings for", as this is clearer for users
  who aren't as familiar with the technical details of the depsgraph.
- "Use Instancing" → "Instancing", and moved the checkbox to the end of
  the option list into its own box "Experimental". This looks a bit
  cleaner than just plonking "EXPERIMENTAL" in the checkbox label.

===================================================================

M	source/blender/editors/io/io_usd.c

===================================================================

diff --git a/source/blender/editors/io/io_usd.c b/source/blender/editors/io/io_usd.c
index 67e2091e128..bb527ee6a3f 100644
--- a/source/blender/editors/io/io_usd.c
+++ b/source/blender/editors/io/io_usd.c
@@ -32,6 +32,8 @@
 #  include "BLI_string.h"
 #  include "BLI_utildefines.h"
 
+#  include "BLT_translation.h"
+
 #  include "MEM_guardedalloc.h"
 
 #  include "RNA_access.h"
@@ -152,10 +154,13 @@ static void wm_usd_export_draw(bContext *UNUSED(C), wmOperator *op)
   uiItemR(col, ptr, "export_uvmaps", 0, NULL, ICON_NONE);
   uiItemR(col, ptr, "export_normals", 0, NULL, ICON_NONE);
   uiItemR(col, ptr, "export_materials", 0, NULL, ICON_NONE);
-  uiItemR(col, ptr, "use_instancing", 0, NULL, ICON_NONE);
 
   col = uiLayoutColumn(layout, true);
   uiItemR(col, ptr, "evaluation_mode", 0, NULL, ICON_NONE);
+
+  uiLayout *box = uiLayoutBox(layout);
+  uiItemL(box, IFACE_("Experimental:"), ICON_NONE);
+  uiItemR(box, ptr, "use_instancing", 0, NULL, ICON_NONE);
 }
 
 void WM_OT_usd_export(struct wmOperatorType *ot)
@@ -180,7 +185,7 @@ void WM_OT_usd_export(struct wmOperatorType *ot)
   RNA_def_boolean(ot->srna,
                   "selected_objects_only",
                   false,
-                  "Only Export Selected Objects",
+                  "Selection Only",
                   "Only selected objects are exported. Unselected parents of selected objects are "
                   "exported as empty transform");
 
@@ -212,16 +217,17 @@ void WM_OT_usd_export(struct wmOperatorType *ot)
   RNA_def_boolean(ot->srna,
                   "use_instancing",
                   false,
-                  "Use Instancing (EXPERIMENTAL)",
-                  "When true, dupli-objects are written as instances of the original in USD. "
-                  "Experimental feature, not working perfectly");
+                  "Instancing",
+                  "When checked, instanced objects are exported as references in USD. "
+                  "When unchecked, instanced objects are exported as real objects");
 
   RNA_def_enum(ot->srna,
                "evaluation_mode",
                rna_enum_usd_export_evaluation_mode_items,
                DAG_EVAL_RENDER,
-               "Evaluation Mode",
-               "Determines visibility of objects and modifier settings");
+               "Use Settings for",
+               "Determines visibility of objects, modifier settings, and other areas where there "
+               "are different settings for viewport and rendering");
 }
 
 #endif /* WITH_USD */



More information about the Bf-blender-cvs mailing list