Commit ef682b40 authored by Dirk Wilden's avatar Dirk Wilden
Browse files

initial paint sphere size

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5548 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6b3b2015
......@@ -123,7 +123,6 @@ void SelectionPlugin::paintSphereSelection(QMouseEvent* _event) {
sphere_node_->show();
sphere_node_->set_position((ACG::Vec3f)hit_point);
sphere_node_->set_size(sphere_radius_);
selection_changes_.push_back(object->id());
sphere_selection_ = true;
}
......
......@@ -471,6 +471,12 @@ void SelectionPlugin::slotPickModeChanged( const std::string& _mode) {
emit updateView();
}
if ( _mode == PAINT_SPHERE_SELECTION && sphere_radius_ == 0.1f){
//init the sphere radius once
sphere_radius_ = 0.05 * PluginFunctions::sceneRadius();
}
#ifdef ENABLE_POLYLINE_SUPPORT
bool check = (_mode == SURFACE_LASSO_SELECTION) || (_mode == "PolyLine" && waitingForPolyLineSelection_);
surfaceLassoAction_->setChecked(check);
......
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