Skip to content

Commit 9fb7f8c

Browse files
committed
correct more bounds
1 parent f3a4cb1 commit 9fb7f8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtime/Mapbox/VectorModule/VectorLayerVisualizer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ protected List<GameObject> GameObjectModifications(CanonicalTileId canonicalTile
219219
if(!_results.ContainsKey(canonicalTileId))
220220
_results.Add(canonicalTileId, new List<VectorEntity>());
221221
_results[canonicalTileId].Add(entity);
222+
entity.Mesh.RecalculateBounds();
222223
OnVectorMeshCreated(entity.GameObject);
223224
}
224225
}
@@ -312,4 +313,4 @@ protected MeshData CombineMeshData(HashSet<MeshData> meshDataList)
312313
public Action<GameObject> OnVectorMeshCreated = list => { };
313314
public Action<GameObject> OnVectorMeshDestroyed = go => { };
314315
}
315-
}
316+
}

0 commit comments

Comments
 (0)