Avoid copying the default transform in the getGlobalTransform call


Creating a copy of the node's local transform each time the function is
called is pointless, especially since that's the uncommon case.

Pick-to: 6.11
Change-Id: I938f971ee018fa5a56db36ad8f6dd60a2bf3022a
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commit15ab714095e7b8c9d2cad6ceaed0aed87cda42b6
parentf5848e35faf6ec87d205a55643565ee7b48bfb91
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeThu, 21 May 2026 16:08:45 +0000