io_scene_3ds: Added feet to imperial unit length measure #104808

Merged
Sebastian Sille merged 61 commits from :main into main 2023-07-31 12:48:33 +02:00
Showing only changes of commit f669804d20 - Show all commits

View File

@ -1538,7 +1538,7 @@ def save(operator, context, filepath="", scale_factor=1.0, apply_unit=False,
# Add MASTERSCALE element # Add MASTERSCALE element
mscale = _3ds_chunk(MASTERSCALE) mscale = _3ds_chunk(MASTERSCALE)
mscale.add_variable("scale", _3ds_float(1.0)) 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