pac3 icon indicating copy to clipboard operation
pac3 copied to clipboard

PAC to Holo export has messed up positions on nested parts with position offset.

Open freedom7341 opened this issue 4 years ago • 5 comments

When exporting a PAC like the one below to a holo, nested objects with position offsets are positioned in the wrong place. E2 Holo output: wgauges_needles.txt PAC: wgauges_needles.txt

When you load them, you can see the parts with offsets nested in other parts aren't positioned correctly. image image

freedom7341 avatar Dec 07 '21 04:12 freedom7341

This is probably why nested parts export wasn't implemented in the first place

thegrb93 avatar Dec 07 '21 15:12 thegrb93

The generated code does not track nor anyhow treat parented parts, so this is expected as with any missing feature.

DBotThePony avatar Dec 07 '21 15:12 DBotThePony

This is the commit that added the nest part export. I'm guessing it needs to maintain a transform hierarchy as well. https://github.com/CapsAdmin/pac3/commit/4bbdf57a0014ae1d4a6799fe7b0da235da42b3d8

thegrb93 avatar Dec 07 '21 16:12 thegrb93

Relevant lines: https://github.com/CapsAdmin/pac3/blob/develop/lua/pac3/editor/client/tools.lua#L651-L654

thegrb93 avatar Dec 07 '21 19:12 thegrb93