Commit ac6e2cff authored by Sebastien Jourdain's avatar Sebastien Jourdain

Disable render server mode for picking

- add warning when picking in render server mode

Change-Id: I5a14f4e4608dbc00d696486ed119e7a79a3e2ca1
parent 60249405
......@@ -137,6 +137,9 @@ SET (TESTS_WITH_BASELINES
# ${CMAKE_CURRENT_SOURCE_DIR}/XYBarChart.xml
)
# Probe picking does not work in render server mode
set(ProbePicking_DISABLE_CRS TRUE)
# only enable find data tests if numpy is available
include("TestNumPy")
......
......@@ -513,6 +513,14 @@ void pqRubberBandHelper::onSelectionChanged(vtkObject*, unsigned long,
}
else
{
// Need to warn user when used in RenderServer mode
if(!renderViewProxy->IsSelectionAvailable())
{
qWarning("Snapping to the surface is not available therefore "
"the camera focal point will be used to determine "
"the depth of the picking.");
}
// Use camera focal point to get some Zbuffer
double cameraFP[4];
vtkRenderer* renderer = renderViewProxy->GetRenderer();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment