Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-05-16 16:01:17 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-05-16 17:43:14 +0300
commit901868a4b2fc6e70d9c74119d97c57de132859a3 (patch)
tree94f96b6fd5f8a1ec509c6551f504cad958c1688f /oscurart_tools
parent2e5b7a4a044ab982af66def583ae16bb563a1357 (diff)
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
Diffstat (limited to 'oscurart_tools')
-rw-r--r--oscurart_tools/mesh/shapes_to_objects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/oscurart_tools/mesh/shapes_to_objects.py b/oscurart_tools/mesh/shapes_to_objects.py
index c2af30ed..29a5babc 100644
--- a/oscurart_tools/mesh/shapes_to_objects.py
+++ b/oscurart_tools/mesh/shapes_to_objects.py
@@ -49,7 +49,8 @@ class ShapeToObjects(Operator):
print(SHAPE.name)
bpy.ops.object.shape_key_clear()
SHAPE.value = 1
- mesh = OBJACT.evaluated_get(depsgraph).to_mesh()
+ OBJACT_eval = OBJACT.evaluated_get(depsgraph)
+ mesh = bpy.data.meshes.new_from_object(OBJACT_eval)
object = bpy.data.objects.new(SHAPE.name, mesh)
bpy.context.scene.collection.objects.link(object)
else: