Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5885: fix loss of attached entity offset after Reload Defs
To render the entity offset, we are using the localToParent matrix exposed by the ITransformNode interface. However this matrix was only being set once, when the attachments were constructed, which isn't sufficiently "sticky" -- the localToParent matrix can easily be recalculated by code in the attached entity itself. We now set the localToParent matrix immediately before rendering each attached entity, ensuring it is always up to date.
- Loading branch information
Matthew Mott
committed
Feb 2, 2022
1 parent
0ffea8f
commit 90958ed
Showing
2 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters