mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
give MouseRayPickResultOperator and SetPrecisionPickingOperator default values to avoid crash on startup
This commit is contained in:
parent
d675ee9427
commit
b9c68f9156
1 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,11 @@ EntityTreeRenderer::EntityTreeRenderer(bool wantScripts, AbstractViewStateInterf
|
|||
_displayModelBounds(false),
|
||||
_layeredZones(this)
|
||||
{
|
||||
setMouseRayPickResultOperator([&](QUuid rayPickID) {
|
||||
RayToEntityIntersectionResult entityResult;
|
||||
return entityResult;
|
||||
});
|
||||
setSetPrecisionPickingOperator([&](QUuid rayPickID, bool value) {});
|
||||
EntityRenderer::initEntityRenderers();
|
||||
_currentHoverOverEntityID = UNKNOWN_ENTITY_ID;
|
||||
_currentClickingOnEntityID = UNKNOWN_ENTITY_ID;
|
||||
|
|
Loading…
Reference in a new issue