Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sceneObjects/DMeshSO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ void on_mesh_changed(bool bInvalidateSpatial = true, bool bInvalidateDecomp = tr

void validate_spatial()
{
if ( enable_spatial && spatial == null ) {
if (enable_spatial && (spatial == null || !spatial.IsValid)) {
spatial = new DMeshAABBTree3(mesh);
spatial.Build();
}
Expand Down