Skip to content

Commit 699dfa0

Browse files
Merge pull request #91 from Priemar/Fixed_#90
fixed (ar.android) fixed error when adding model after ar is recreated (#90)
2 parents 7d6b031 + d2b2976 commit 699dfa0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/ar.android.ts

+5
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ export class AR extends ARBase {
269269

270270
disposeNativeView(): void {
271271
super.disposeNativeView();
272+
// (fix: #90) remove anchor node
273+
if (_origin) {
274+
_origin.setParent(null);
275+
_origin = null;
276+
}
272277
// destroy AR fragment
273278
const supportFragmentManager = (application.android.foregroundActivity || application.android.startActivity).getSupportFragmentManager();
274279
supportFragmentManager.beginTransaction().remove(_fragment).commit();

0 commit comments

Comments
 (0)