Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qgs3dmapscene: Ensure to update near/far planes on new entity creation
The near/far planes are computed in `Qgs3DMapScene` when the camera parameters have changed. Their values depend on the bounding boxes of the visible entities. However, the near and far planes are not recomputed when a new entity is added. This can be problematic for entities from a vector layer because their vertical extent is unknown when the associated bounding boxes are created. This issue is fixed by calling `Qgs3DMapscene::updateCameraNearFarPlanes` when a new scene entity is created. Indeed, on a new scene entity, the exact exact bounding box has been computed by the loader of the chunked entity.
- Loading branch information