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

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 ...@@ -513,6 +513,8 @@ void SelectionPlugin::slotMouseWheelEvent(QWheelEvent * _event, const std::strin
sphere_node_->set_size(sphere_radius_); sphere_node_->set_size(sphere_radius_);
sphere_node_->show(); sphere_node_->show();
emit nodeVisibilityChanged( -1 );
emit updateView(); emit updateView();
} }
} }
......
...@@ -123,6 +123,7 @@ class SelectionPlugin : public QObject, BaseInterface , MouseInterface, KeyInter ...@@ -123,6 +123,7 @@ class SelectionPlugin : public QObject, BaseInterface , MouseInterface, KeyInter
//BaseInterface //BaseInterface
void updateView(); void updateView();
void updatedObject(int, const UpdateType); void updatedObject(int, const UpdateType);
void nodeVisibilityChanged( int _identifier );
//PickingInterface //PickingInterface
void addHiddenPickMode( const std::string _mode ); void addHiddenPickMode( const std::string _mode );
......
...@@ -188,6 +188,7 @@ void SelectionPlugin::slotGrowSelection() { ...@@ -188,6 +188,7 @@ void SelectionPlugin::slotGrowSelection() {
* *
*/ */
void SelectionPlugin::slotColorizeSelection() { void SelectionPlugin::slotColorizeSelection() {
PluginFunctions::IteratorRestriction restriction; PluginFunctions::IteratorRestriction restriction;
if ( !tool_->restrictOnTargets->isChecked() ) if ( !tool_->restrictOnTargets->isChecked() )
restriction = PluginFunctions::ALL_OBJECTS; restriction = PluginFunctions::ALL_OBJECTS;
...@@ -196,9 +197,11 @@ void SelectionPlugin::slotColorizeSelection() { ...@@ -196,9 +197,11 @@ void SelectionPlugin::slotColorizeSelection() {
for ( PluginFunctions::ObjectIterator o_it(restriction,DataType( DATA_TRIANGLE_MESH | DATA_POLY_MESH )) ; for ( PluginFunctions::ObjectIterator o_it(restriction,DataType( DATA_TRIANGLE_MESH | DATA_POLY_MESH )) ;
o_it != PluginFunctions::objectsEnd(); ++o_it) o_it != PluginFunctions::objectsEnd(); ++o_it)
if ( o_it->visible() ) if ( o_it->visible() ) {
colorizeSelection( o_it->id() ); colorizeSelection( o_it->id() );
emit updatedObject(o_it->id(), UPDATE_COLOR);
}
emit updateView(); 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