Fix #119304: Assert copying transform data in OBJ and STL export
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user