Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/usd/intern/usd_capi.cc
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | struct ExportJobData { | ||||
| char filename[FILE_MAX]; | char filename[FILE_MAX]; | ||||
| USDExportParams params; | USDExportParams params; | ||||
| bool export_ok; | bool export_ok; | ||||
| }; | }; | ||||
| static void export_startjob(void *customdata, short *stop, short *do_update, float *progress) | static void export_startjob(void *customdata, short *stop, short *do_update, float *progress) | ||||
| { | { | ||||
| /* Mute readability-non-const-parameter warning from clang-tidy. */ | |||||
| stop = stop; | |||||
| ExportJobData *data = static_cast<ExportJobData *>(customdata); | ExportJobData *data = static_cast<ExportJobData *>(customdata); | ||||
| data->export_ok = false; | data->export_ok = false; | ||||
| G.is_rendering = true; | G.is_rendering = true; | ||||
| WM_set_locked_interface(data->wm, true); | WM_set_locked_interface(data->wm, true); | ||||
| G.is_break = false; | G.is_break = false; | ||||
| // Construct the depsgraph for exporting. | // Construct the depsgraph for exporting. | ||||
| ▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines | |||||