Update for Depsgraph API changes

Addresses new behavior of object.to_mesh().

This is corresponding part for D4875.

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D4876
This commit is contained in:
Sergey Sharybin
2019-05-16 15:01:17 +02:00
parent 2e5b7a4a04
commit 901868a4b2
29 changed files with 152 additions and 61 deletions

View File

@ -639,7 +639,7 @@ def write_file(filepath, objects, depsgraph, scene,
totno += no_unique_count
# clean up
bpy.data.meshes.remove(me)
ob_for_convert.to_mesh_clear()
subprogress1.leave_substeps("Finished writing geometry of '%s'." % ob_main.name)
subprogress1.leave_substeps()