Commit ef1190bf authored by wmayer's avatar wmayer
Browse files

0000939: Pressing Escape while pivoting a box crashes

parent a7e2d50f
......@@ -290,6 +290,8 @@ void ViewProviderGeometryObject::unsetEdit(int ModNum)
// The manipulator has a sensor as user data and this sensor contains the view provider
SoCenterballManip * manip = static_cast<SoCenterballManip*>(path->getTail());
SoNodeSensor* sensor = reinterpret_cast<SoNodeSensor*>(manip->getUserData());
// #0000939: Pressing Escape while pivoting a box crashes
manip->getDragger()->grabEventsCleanup();
// detach sensor
sensor->detach();
......
Supports Markdown
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