You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set the grid.visible property as false the grid disappears in my UI but the property does not update its own value.
This is the code of my angular component
The setup method
this.grid = this.grids.create(this.world);
My toggle method
toggleGrid() {
if (this.grid) {
this.grid.visible = !this.grid.visible;
}
}
When I log in the console the value it prints always true, also when the grid is not visible in the UI...
Probably the setter works properly to hide the grid in the UI but not to update its own value.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
Check that this is a concrete bug. For Q&A join our Community.
Describe the bug 📝
What happened?
When I set the grid.visible property as false the grid disappears in my UI but the property does not update its own value.
This is the code of my angular component
The setup method
this.grid = this.grids.create(this.world);
My toggle method
When I log in the console the value it prints always true, also when the grid is not visible in the UI...
Probably the setter works properly to hide the grid in the UI but not to update its own value.
https://github.com/ThatOpen/engine_components/blob/main/packages/core/src/core/Grids/src/simple-grid.ts
Below the code of the library
Version
^2.2.0
Reproduction▶️
No response
Steps to reproduce 🔢
No response
System Info 💻
Used Package Manager 📦
npm
Error Trace/Logs 📃
No response
Validations ✅
The text was updated successfully, but these errors were encountered: