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>