Blendshapes fix (still missing tests) 85/292885/7
authorAdam Bialogonski <adam.b@samsung.com>
Tue, 16 May 2023 15:53:24 +0000 (16:53 +0100)
committerRichard <r.huang@samsung.com>
Wed, 17 May 2023 14:05:59 +0000 (15:05 +0100)
commit686ec713a1cec04adb2d996cedf028b26d8c09f3
tree285394055b2ed60fcf1bc4bb7414611ff7f21c92
parentfd7c27ef0918e8c5d734d4dcaee0d199ce134556
Blendshapes fix (still missing tests)

When using sparse accessors, the gltf loader loads data correctly
but the blendshapes generator (texture and data) always assumes that
morph targets contain all the vertices which isn't a case.

Fix makes sure that for sparse access only indexed vertices are
affected by the blendshape. It still generate full vertex data
(for whole mesh) so it's compatible with current shader.

Change-Id: I1f36c1d9d24dec0eb194d0aaf1b93488b61b1d58
Signed-off-by: Adam Bialogonski <adam.b@samsung.com>
dali-scene3d/public-api/loader/mesh-definition.cpp
dali-scene3d/public-api/loader/mesh-definition.h