LogicalError / realtime-CSG-for-unity

Realtime-CSG, CSG level editor for Unity
https://realtimecsg.com
MIT License
732 stars 76 forks source link

NullReferenceException when using "Destroy all helper meshes in scene" option #389

Open Appleguysnake opened 10 months ago

Appleguysnake commented 10 months ago

At line 625.

Cause: Collecting all root gameobjects with MeshFilters, but not checking if they actually have a mesh assigned. So allMeshesInScene contains null values

Fix Check for null.

Related: