Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/exporter/abc_export_capi.cc
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
| // Construct the depsgraph for exporting. | // Construct the depsgraph for exporting. | ||||
| static void build_depsgraph(Depsgraph *depsgraph, Main *bmain) | static void build_depsgraph(Depsgraph *depsgraph, Main *bmain) | ||||
| { | { | ||||
| Scene *scene = DEG_get_input_scene(depsgraph); | Scene *scene = DEG_get_input_scene(depsgraph); | ||||
| ViewLayer *view_layer = DEG_get_input_view_layer(depsgraph); | ViewLayer *view_layer = DEG_get_input_view_layer(depsgraph); | ||||
| DEG_graph_build_from_view_layer(depsgraph, bmain, scene, view_layer); | DEG_graph_build_from_view_layer(depsgraph, bmain, scene, view_layer); | ||||
| } | } | ||||
| static void export_startjob(void *customdata, short *stop, short *do_update, float *progress) | static void export_startjob(void *customdata, | ||||
| short *stop /* NOLINT */, | |||||
| short *do_update, | |||||
| float *progress) | |||||
| { | { | ||||
| ExportJobData *data = static_cast<ExportJobData *>(customdata); | ExportJobData *data = static_cast<ExportJobData *>(customdata); | ||||
| data->was_canceled = false; | data->was_canceled = 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; | ||||
| ▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines | |||||