io_scene_3ds: Changed unit convert to apply units #104776

Closed
Sebastian Sille wants to merge 13 commits from (deleted):main into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 70b45a8858 - Show all commits

View File

@ -1538,7 +1538,7 @@ def save(operator, context, filepath="", scale_factor=1.0, unit_convert=False,
# Add MASTERSCALE element # Add MASTERSCALE element
mscale = _3ds_chunk(MASTERSCALE) mscale = _3ds_chunk(MASTERSCALE)
mscale.add_variable("scale", _3ds_float(unit_measure)) mscale.add_variable("scale", _3ds_float(1.0 / unit_measure))
object_info.add_subchunk(mscale) object_info.add_subchunk(mscale)
# Init main keyframe data chunk # Init main keyframe data chunk