Fix T94122: Export to X3D Fails.

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
This commit is contained in:
Andreas Plesch 2021-12-27 15:41:38 +01:00 committed by Philipp Oeser
parent 5876b7836d
commit c7be983489
Notes: blender-bot 2023-02-14 18:28:08 +01:00
Referenced by issue blender/blender#93479: 3.0 Potential candidates for corrective releases
Referenced by issue blender/blender#93479, 3.0 Potential candidates for corrective releases
Referenced by issue #94122, Export to X3D Fails
1 changed files with 2 additions and 1 deletions

View File

@ -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