Fix #119304: Assert copying transform data in OBJ and STL export

This commit is contained in:
Hans Goudey
2024-03-11 14:31:01 -04:00
parent b4e3a00cd3
commit 6f4718242e
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ void export_frame(Depsgraph *depsgraph,
mul_m4_m3m4(xform, axes_transform, obj_eval->object_to_world().ptr());
/* mul_m4_m3m4 does not transform last row of obmat, i.e. location data. */
mul_v3_m3v3(xform[3], axes_transform, obj_eval->object_to_world().location());
xform[3][3] = obj_eval->object_to_world().location()[3];
xform[3][3] = obj_eval->object_to_world()[3][3];
/* Write triangles. */
const Span<float3> positions = mesh->vert_positions();

View File

@@ -39,7 +39,7 @@ void OBJCurve::set_world_axes_transform(const eIOAxis forward, const eIOAxis up)
/* #mul_m4_m3m4 does not transform last row of #Object.object_to_world, i.e. location data. */
mul_v3_m3v3(
world_axes_transform_[3], axes_transform, export_object_eval_->object_to_world().location());
world_axes_transform_[3][3] = export_object_eval_->object_to_world().location()[3];
world_axes_transform_[3][3] = export_object_eval_->object_to_world()[3][3];
}
const char *OBJCurve::get_curve_name() const