Commit bb6d7a5b authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed manipulator node, where bounding box was computed without center

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11583 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a96f0ecb
......@@ -2021,8 +2021,8 @@ void TranslationManipulatorNode::boundingBox( Vec3d & _bbMin, Vec3d & _bbMax )
float r = 2 * manipulator_height_;
_bbMin.minimize(Vec3d(-r,-r,-r));
_bbMax.maximize(Vec3d(r,r,r));
_bbMin.minimize(center()+Vec3d(-r,-r,-r));
_bbMax.maximize(center()+Vec3d(r,r,r));
}
//----------------------------------------------------------------------------
......
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