0000942: Crash when 2xdouble-click on part
This commit is contained in:
parent
9eb4174315
commit
49f66c5fba
|
@ -291,7 +291,10 @@ void ViewProviderGeometryObject::unsetEdit(int ModNum)
|
||||||
SoCenterballManip * manip = static_cast<SoCenterballManip*>(path->getTail());
|
SoCenterballManip * manip = static_cast<SoCenterballManip*>(path->getTail());
|
||||||
SoNodeSensor* sensor = reinterpret_cast<SoNodeSensor*>(manip->getUserData());
|
SoNodeSensor* sensor = reinterpret_cast<SoNodeSensor*>(manip->getUserData());
|
||||||
// #0000939: Pressing Escape while pivoting a box crashes
|
// #0000939: Pressing Escape while pivoting a box crashes
|
||||||
manip->getDragger()->grabEventsCleanup();
|
// #0000942: Crash when 2xdouble-click on part
|
||||||
|
SoDragger* dragger = manip->getDragger();
|
||||||
|
if (dragger && dragger->getHandleEventAction())
|
||||||
|
dragger->grabEventsCleanup();
|
||||||
|
|
||||||
// detach sensor
|
// detach sensor
|
||||||
sensor->detach();
|
sensor->detach();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user