Cleanup: USD: Pass struct by ref and add more tests for scaling optionsmain
commita6ad8f4fd985b78d0d9ac161cbda0ac407e4635a
authorJesse Yurkovich <jesse.y@gmail.com>
Wed, 29 Jan 2025 19:03:36 +0000 (29 20:03 +0100)
committerJesse Yurkovich <deadpin@noreply.localhost>
Wed, 29 Jan 2025 19:03:36 +0000 (29 20:03 +0100)
tree664bd2354038465ce091cf4be7bf5fcbd22b4821
parentca64f2f7e7e66b7b025104e1d3e025ce0061f98b
Cleanup: USD: Pass struct by ref and add more tests for scaling options

- There's only a few unit conversion options, just test all of them
- Use reference instead of pointer when passing export settings struct
- Organize scaling struct fields to keep similar options together

Pull Request: https://projects.blender.org/blender/blender/pulls/133774
source/blender/editors/io/io_usd.cc
source/blender/io/usd/intern/usd_capi_export.cc
source/blender/io/usd/intern/usd_writer_camera.cc
source/blender/io/usd/intern/usd_writer_transform.cc
source/blender/io/usd/usd.hh
tests/python/bl_usd_export_test.py