Closed ImVeryLost closed 2 years ago
Thanks for the detailed issue. This would have been introduced by #3598 in 3.2.0-dev.70. We'll fix it.
The fix will become available in 3.3.0-dev.13 tonight, and in 3.2.1 which is expected to release before the end of this week.
Verified that it works with 3.3.0-dev.13, thank you for resolving this so quickly!
Describe the bug In the latest versions of iTwin.js, asserts are being thrown for pickable polyface decorations, specifically when zooming far enough that they become "invisible". Issue is present only for pickable decorations. Managed to reproduce the issue with one of the iTwin.js test apps, with a pretty minimal setup, but it is present elsewhere as well.
To Reproduce
Decorator code
Expected behavior Asserts should not be thrown, or should describe the cause of the issue explicitly.
Desktop (please complete the applicable information):
Additional context Since its an assert that's being thrown, rather than a exception, it is implied that something is going wrong on my side of the code. If so, i would appreciate any pointers. Note that the issue was not present with iTwin.js 3.2.0-dev.62 and previous versions. I realize that dev versions are not stable at all, but it might help narrow down the cause.
Also, is there a way to temporarily disable asserts in dev environment? After they are thrown, the whole app freezes without any way to dismiss it and continue...