mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#884 Fixed occasional crashes using the 3D manipulator
This commit is contained in:
@@ -32,6 +32,13 @@ BoxManipulatorPartManager::BoxManipulatorPartManager()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
BoxManipulatorPartManager::~BoxManipulatorPartManager()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -137,6 +144,8 @@ void BoxManipulatorPartManager::tryToActivateManipulator(const cvf::HitItem* hit
|
||||
void BoxManipulatorPartManager::updateManipulatorFromRay(const cvf::Ray* ray)
|
||||
{
|
||||
if (!isManipulatorActive()) return;
|
||||
if (m_boundingBoxPart.isNull()) return;
|
||||
|
||||
|
||||
BoxFace face = m_handleIds[m_currentHandleIndex].first;
|
||||
cvf::Vec3d faceDir = normalFromFace(face);
|
||||
@@ -360,7 +369,6 @@ void BoxManipulatorPartManager::recreateAllGeometryAndParts()
|
||||
{
|
||||
createBoundingBoxPart();
|
||||
createAllHandleParts();
|
||||
createAllHandleParts();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -49,6 +49,7 @@ public:
|
||||
|
||||
public:
|
||||
BoxManipulatorPartManager();
|
||||
~BoxManipulatorPartManager();
|
||||
|
||||
void setOrigin(const cvf::Vec3d& origin);
|
||||
void setSize(const cvf::Vec3d& size);
|
||||
|
||||
Reference in New Issue
Block a user