Skip to content

Commit 5b7f18c

Browse files
Check of iOS blendshapes in nativeBlendshapes
1 parent ff49f0f commit 5b7f18c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/ft/adaptors/vtsproto.d

+4-2
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,9 @@ public:
315315
)
316316
) / 2.0;
317317

318-
} else {
318+
} else if ("JawOpen" in this.nativeBlendshapes) {
319319

320320
// WE'RE ON IOS
321-
322321
// LEFT EYE
323322
this.blendshapes[BlendshapeNames.ftEyeBlinkLeft] = this.nativeBlendshapes["EyeBlinkLeft"];
324323
this.blendshapes[BlendshapeNames.ftEyeXLeft] = this.nativeBlendshapes["EyeLookOutLeft"]-this.nativeBlendshapes["EyeLookInLeft"];
@@ -345,6 +344,9 @@ public:
345344
)
346345
) / 2.0;
347346
}
347+
348+
// If both cases are false there's a problem!
349+
// TODO: make some logs that can be sent to devs?
348350
}
349351
}
350352
}

0 commit comments

Comments
 (0)