#884 Fixed occasional crashes using the 3D manipulator

This commit is contained in:
Jacob Støren
2016-10-04 09:47:09 +02:00
parent c7aae71dbc
commit 47df6a6122
2 changed files with 10 additions and 1 deletions

View File

@@ -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();
}
//--------------------------------------------------------------------------------------------------

View File

@@ -49,6 +49,7 @@ public:
public:
BoxManipulatorPartManager();
~BoxManipulatorPartManager();
void setOrigin(const cvf::Vec3d& origin);
void setSize(const cvf::Vec3d& size);