Simplify re-indexing of per-layer data
Fix outstanding handling of re-indexing when the storage size changes or
the version changes. Instead of keeping the current halfhearted
solution, just get rid of the extra indexing for per-layer data (which
we ended up ignoring due to problems with import scenes).
With this change we get a much cleaner approach and avoid separate
indexing and the, not so elegant, tracking involved. And since we don't
actually needed the per-layer material storage (override materials are
handled differently then first expected) we can use one global storage
instead, also for meshes. There are however one drawback with this
approach and that is the MVP storage, which now will use the full size
requirement. Worst case are multiple view without a common set of nodes.
Pick-to: 6.11
Change-Id: Icb23a354d4e8fdb3ff5bb1e7bdcb6392c3d03205
Reviewed-by: Andy Nichols <andy.nichols@qt.io>