UniformBlockValueBuilder: fix unity-build


The qNodeIdTypeId name is also used in materialsystem/shaderdata.cpp.

Use get_if() instead, which implicitly performs the check the old code
was doing explicitly. Then we don't need the qMetaTypeId<QNodeId>()
anymore.

As a drive-by, scope a variable closer (in an if condition).

Amends db4de3f44a9011ae644c7d2ea10ec2394ff7f6f0.

Pick-to: 6.9 6.8 6.5
Change-Id: I2d17384337c927f754e9c2231bd6314114c1d626
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit76b6590fdc5293d297281f39c443fa062dff8e91
parent5fa585ed44b64effaccaa5686b36b2127703c4d6
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeTue, 31 Dec 2024 08:30:03 +0100