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

Made all update calls of the object types private.

Only type plugins and the core will access the update function
parent 69cc0cec
...@@ -159,11 +159,10 @@ void HoleFillerPlugin::slotFillSelection(){ ...@@ -159,11 +159,10 @@ void HoleFillerPlugin::slotFillSelection(){
} }
//update the object //update the object
o_it->update(); emit updatedObject(o_it->id(),UPDATE_ALL);
holeInfo->getHoles(); holeInfo->getHoles();
o_it->update();
update_menu(); update_menu();
emit createBackup( o_it->id(), "Hole Filling", UPDATE_GEOMETRY | UPDATE_TOPOLOGY | UPDATE_SELECTION); emit createBackup( o_it->id(), "Hole Filling", UPDATE_GEOMETRY | UPDATE_TOPOLOGY | UPDATE_SELECTION);
} }
...@@ -215,7 +214,7 @@ void HoleFillerPlugin::slotItemSelectionChanged() { ...@@ -215,7 +214,7 @@ void HoleFillerPlugin::slotItemSelectionChanged() {
holeInfo->selectHole( holes[i] ); holeInfo->selectHole( holes[i] );
//update the object //update the object
o_it->update(); emit updatedObject(o_it->id(),UPDATE_SELECTION);
} }
// DATATYPE is POLYMESH // DATATYPE is POLYMESH
else if ( o_it->dataType( DATA_POLY_MESH ) ) { else if ( o_it->dataType( DATA_POLY_MESH ) ) {
...@@ -239,7 +238,7 @@ void HoleFillerPlugin::slotItemSelectionChanged() { ...@@ -239,7 +238,7 @@ void HoleFillerPlugin::slotItemSelectionChanged() {
holeInfo->selectHole( holes[i] ); holeInfo->selectHole( holes[i] );
//update the object //update the object
o_it->update(); emit updatedObject(o_it->id(),UPDATE_SELECTION);
} }
} }
......
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