Skip to content

Commit

Permalink
Update intr.c
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Sep 9, 2023
1 parent 015594f commit dd213b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/morph/intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit dd213b5

Please sign in to comment.