From dd213b5d7da7d4011a09abb20a362e0684b7de26 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Sat, 9 Sep 2023 19:38:00 +0300 Subject: [PATCH] Update intr.c --- src/morph/intr.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/morph/intr.c b/src/morph/intr.c index 05cc1d7a..48243c9f 100644 --- a/src/morph/intr.c +++ b/src/morph/intr.c @@ -155,7 +155,9 @@ ak_morphInspect(AkGeometry * __restrict baseMesh, do { /* TODO: maybe position can be optional in future desired... */ if (!(inp = morphable->input) - || !ak_getPositionInput(inp)) { + || !(inpPosition = ak_getPositionInput(inp)) + || !(posAcc = inpPosition->accessor) + || !(count = posAcc->count)) { continue; } COLLECT_TARGET @@ -168,7 +170,9 @@ ak_morphInspect(AkGeometry * __restrict baseMesh, || (geomPrimObj->type != AK_GEOMETRY_MESH) || !(mesh = ak_objGet(geomPrimObj)) || !(prim = mesh->primitive) - || !prim->pos) { + || !(inpPosition = prim->pos) + || !(posAcc = inpPosition->accessor) + || !(count = posAcc->count)) { continue; } do {