Skip to content

Commit 57e6139

Browse files
JavaScript Error (evaluating 'faceGeometry.firstMaterial') #27
1 parent 28270fa commit 57e6139

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: src/ar.ios.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,9 @@ class ARSCNViewDelegateImpl extends NSObject implements ARSCNViewDelegate {
808808
} else {
809809
// if faceMaterial is NOT set, make the faceGeometry mesh include eyes and mouth
810810
faceGeometry = ARSCNFaceGeometry.faceGeometryWithDeviceFillMesh(sceneViewRenderer.device, true);
811-
faceGeometry.firstMaterial.colorBufferWriteMask = SCNColorMask.None;
811+
if (faceGeometry) {
812+
faceGeometry.firstMaterial.colorBufferWriteMask = SCNColorMask.None;
813+
}
812814
}
813815

814816
this.occlusionNode = SCNNode.nodeWithGeometry(faceGeometry);

Diff for: src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-ar",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "NativeScript Augmented Reality plugin. ARKit on iOS and (in the future) ARCore on Android.",
55
"main": "ar",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)