Collection IO: Enable file exporters to be specified on Collections #116646

Merged
Jesse Yurkovich merged 56 commits from deadpin/blender:collection-io into main 2024-04-08 22:10:52 +02:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 19f316c641 - Show all commits

View File

@ -2414,7 +2414,7 @@ void uiTemplateCollectionExporters(uiLayout *layout, bContext *C)
PointerRNA io_handler_ptr = RNA_pointer_create(&collection->id, &RNA_IOHandlerData, data);
PanelLayout panel = uiLayoutPanelWithHeader(C, layout, &io_handler_ptr, "is_open");
PanelLayout panel = uiLayoutPanelProp(C, layout, &io_handler_ptr, "is_open");
draw_export_controls(panel.header, fh->label, index);
if (panel.body) {
draw_export_properties(C, panel.body, &collection->id, ot, data);

View File

@ -79,6 +79,7 @@ struct USDExportParams {
bool overwrite_textures = true;
bool relative_paths = true;
char root_prim_path[1024] = ""; /* FILE_MAX */
char collection[MAX_IDPROP_NAME] = "";
/** Communication structure between the wmJob management code and the worker code. Currently used
* to generate safely reports from the worker thread. */