diff options
author | Andreas Plesch <andreasplesch> | 2021-12-27 17:41:38 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-01-11 12:44:43 +0300 |
commit | c7be9834895821678616edbc78d54ea8006d096e (patch) | |
tree | 81cfe5b83d8390a9e7c3df8e62d0c32cc395ce79 | |
parent | 5876b7836db45d242a55898092e69b3c17b055a9 (diff) |
Fix T94122: Export to X3D Fails.v3.0.1blender-v3.0-release
Fixes call to `create_derived_objects()` in x3d export.
rBa82c9e1e405c84b9 introduced a change in the signature and return value of
the `create_derived_objects()` utility. This change lead to failure of the x3d
export addon.
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D13667
-rw-r--r-- | io_scene_x3d/export_x3d.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 746567f8..6a4daf91 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -1378,7 +1378,8 @@ def export(file, def export_object(ident, obj_main_parent, obj_main, obj_children): matrix_fallback = mathutils.Matrix() world = scene.world - free, derived = create_derived_objects(scene, obj_main) + derived_dict = create_derived_objects(depsgraph, [obj_main]) + derived = derived_dict.get(obj_main) if use_hierarchy: obj_main_matrix_world = obj_main.matrix_world |