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

Dennis:

Translationmanipulator node autosize

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5318 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 17d7f87b
...@@ -382,8 +382,6 @@ void MovePlugin::ManipulatorPositionChanged(QtTranslationManipulatorNode* _node ...@@ -382,8 +382,6 @@ void MovePlugin::ManipulatorPositionChanged(QtTranslationManipulatorNode* _node
*/ */
void MovePlugin::placeManip(QMouseEvent * _event) void MovePlugin::placeManip(QMouseEvent * _event)
{ {
manip_size_ = PluginFunctions::sceneRadius() * 0.1;
unsigned int node_idx, target_idx; unsigned int node_idx, target_idx;
OpenMesh::Vec3d hitPoint; OpenMesh::Vec3d hitPoint;
...@@ -401,6 +399,7 @@ void MovePlugin::placeManip(QMouseEvent * _event) ...@@ -401,6 +399,7 @@ void MovePlugin::placeManip(QMouseEvent * _event)
object->manipulatorNode()->loadIdentity(); object->manipulatorNode()->loadIdentity();
object->manipulatorNode()->set_center(hitPoint); object->manipulatorNode()->set_center(hitPoint);
object->manipulatorNode()->set_draw_cylinder(true); object->manipulatorNode()->set_draw_cylinder(true);
object->manipulatorNode()->set_autosize(true);
object->manipulatorNode()->set_size(manip_size_ * manip_size_modifier_); object->manipulatorNode()->set_size(manip_size_ * manip_size_modifier_);
object->manipulatorNode()->show(); object->manipulatorNode()->show();
......
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