Improve loop's readability in createAnimateTransformNode


The loop's condition read "i < vals.size()" but inside the loop, indices
up to "i+2" are being used. This seemed as if the indices could exceed
the container's size. They didn't exceed it because of the earlier check
which returned from the function when "vals.size() % 3 != 0".

This change is meant to make it more obvious that the indices don't
exceed the container by making the loop protect itself while keeping the
same behavior.

Change-Id: I299677604d060e4e1840cde2b1e1986a5badc4aa
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
commite45e7f07472f533820ce8a6dfd83691c295583a6
parent7582a2df61cc84b50375463abae3bf3ef3cd9ac7
authorRobert Löhning <robert.loehning@qt.io>
committerRobert Löhning <robert.loehning@qt.io>
commit timeWed, 11 Feb 2026 11:23:07 +0100