Commit 4fa70efc authored by Jan Möbius's avatar Jan Möbius

Fixed bounding box update for selection sphere, emit updatedobject on color change.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9362 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 465f9cdc
......@@ -513,6 +513,8 @@ void SelectionPlugin::slotMouseWheelEvent(QWheelEvent * _event, const std::strin
sphere_node_->set_size(sphere_radius_);
sphere_node_->show();
emit nodeVisibilityChanged( -1 );
emit updateView();
}
}
......
......@@ -123,6 +123,7 @@ class SelectionPlugin : public QObject, BaseInterface , MouseInterface, KeyInter
//BaseInterface
void updateView();
void updatedObject(int, const UpdateType);
void nodeVisibilityChanged( int _identifier );
//PickingInterface
void addHiddenPickMode( const std::string _mode );
......
......@@ -188,6 +188,7 @@ void SelectionPlugin::slotGrowSelection() {
*
*/
void SelectionPlugin::slotColorizeSelection() {
PluginFunctions::IteratorRestriction restriction;
if ( !tool_->restrictOnTargets->isChecked() )
restriction = PluginFunctions::ALL_OBJECTS;
......@@ -196,9 +197,11 @@ void SelectionPlugin::slotColorizeSelection() {
for ( PluginFunctions::ObjectIterator o_it(restriction,DataType( DATA_TRIANGLE_MESH | DATA_POLY_MESH )) ;
o_it != PluginFunctions::objectsEnd(); ++o_it)
if ( o_it->visible() )
if ( o_it->visible() ) {
colorizeSelection( o_it->id() );
emit updatedObject(o_it->id(), UPDATE_COLOR);
}
emit updateView();
}
......
Markdown is supported
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