diff options
Diffstat (limited to 'source/blender/io/usd/intern/usd_capi.cc')
-rw-r--r-- | source/blender/io/usd/intern/usd_capi.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/io/usd/intern/usd_capi.cc b/source/blender/io/usd/intern/usd_capi.cc index 1c23535e248..83b8c18d436 100644 --- a/source/blender/io/usd/intern/usd_capi.cc +++ b/source/blender/io/usd/intern/usd_capi.cc @@ -75,12 +75,11 @@ static void export_startjob(void *customdata, // Construct the depsgraph for exporting. Scene *scene = DEG_get_input_scene(data->depsgraph); - ViewLayer *view_layer = DEG_get_input_view_layer(data->depsgraph); if (data->params.visible_objects_only) { - DEG_graph_build_from_view_layer(data->depsgraph, data->bmain, scene, view_layer); + DEG_graph_build_from_view_layer(data->depsgraph); } else { - DEG_graph_build_for_all_objects(data->depsgraph, data->bmain, scene, view_layer); + DEG_graph_build_for_all_objects(data->depsgraph); } BKE_scene_graph_update_tagged(data->depsgraph, data->bmain); |