mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
Don't identify mesh layers which aren't in visible elevation range
This commit is contained in:
parent
0bb3a26b20
commit
16b637e6e7
@ -278,6 +278,12 @@ bool QgsMapToolIdentify::identifyMeshLayer( QList<QgsMapToolIdentify::IdentifyRe
|
|||||||
if ( !layer )
|
if ( !layer )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if ( !identifyContext.zRange().isInfinite() )
|
||||||
|
{
|
||||||
|
if ( !layer->elevationProperties()->isVisibleInZRange( identifyContext.zRange() ) )
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
double searchRadius = mOverrideCanvasSearchRadius < 0 ? searchRadiusMU( mCanvas ) : mOverrideCanvasSearchRadius;
|
double searchRadius = mOverrideCanvasSearchRadius < 0 ? searchRadiusMU( mCanvas ) : mOverrideCanvasSearchRadius;
|
||||||
bool isTemporal = identifyContext.isTemporal() && layer->temporalProperties()->isActive();
|
bool isTemporal = identifyContext.isTemporal() && layer->temporalProperties()->isActive();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user