Commit f49cfe52 authored by Mike Kremer's avatar Mike Kremer
Browse files

Topology plugin now uses the new update policy.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8708 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 96ccf568
...@@ -466,7 +466,7 @@ void TopologyPlugin::split_face(QMouseEvent* _event) { ...@@ -466,7 +466,7 @@ void TopologyPlugin::split_face(QMouseEvent* _event) {
m.update_normals(); m.update_normals();
object->update(); object->update();
emit updatedObject(object->id()); emit updatedObject(object->id(), UPDATE_TOPOLOGY);
emit updateView(); emit updateView();
emit createBackup(object->id(),"Split Face"); emit createBackup(object->id(),"Split Face");
} }
...@@ -521,7 +521,7 @@ void TopologyPlugin::delete_face(QMouseEvent* _event) { ...@@ -521,7 +521,7 @@ void TopologyPlugin::delete_face(QMouseEvent* _event) {
} }
object->update(); object->update();
emit updatedObject(object->id()); emit updatedObject(object->id(), UPDATE_TOPOLOGY);
emit updateView(); emit updateView();
emit createBackup(object->id(),"Delete Face"); emit createBackup(object->id(),"Delete Face");
} else return; } else return;
...@@ -579,7 +579,7 @@ void TopologyPlugin::flip_edge(QMouseEvent* _event) { ...@@ -579,7 +579,7 @@ void TopologyPlugin::flip_edge(QMouseEvent* _event) {
emit log(LOGOUT,"Picked Edge " + QString::number(closest_edge.idx())); emit log(LOGOUT,"Picked Edge " + QString::number(closest_edge.idx()));
object->update(); object->update();
emit updatedObject(object->id()); emit updatedObject(object->id(), UPDATE_TOPOLOGY);
emit updateView(); emit updateView();
emit createBackup(object->id(),"Edge Flip"); emit createBackup(object->id(),"Edge Flip");
} }
...@@ -651,7 +651,7 @@ void TopologyPlugin::collapse_edge(QMouseEvent* _event) { ...@@ -651,7 +651,7 @@ void TopologyPlugin::collapse_edge(QMouseEvent* _event) {
emit log(LOGOUT,"Picked Edge " + QString::number(closest_edge.idx())); emit log(LOGOUT,"Picked Edge " + QString::number(closest_edge.idx()));
object->update(); object->update();
emit updatedObject(object->id()); emit updatedObject(object->id(), UPDATE_TOPOLOGY);
emit updateView(); emit updateView();
emit createBackup(object->id(),"Edge Collapse"); emit createBackup(object->id(),"Edge Collapse");
} }
...@@ -712,7 +712,7 @@ void TopologyPlugin::split_edge(QMouseEvent* _event) { ...@@ -712,7 +712,7 @@ void TopologyPlugin::split_edge(QMouseEvent* _event) {
emit log(LOGOUT,"Picked Edge " + QString::number(closest_edge.idx())); emit log(LOGOUT,"Picked Edge " + QString::number(closest_edge.idx()));
object->update(); object->update();
emit updatedObject(object->id()); emit updatedObject(object->id(), UPDATE_TOPOLGY);
emit updateView(); emit updateView();
emit createBackup(object->id(),"Edge Split"); emit createBackup(object->id(),"Edge Split");
} }
......
...@@ -68,7 +68,7 @@ class TopologyPlugin : public QObject, BaseInterface , MouseInterface, KeyInterf ...@@ -68,7 +68,7 @@ class TopologyPlugin : public QObject, BaseInterface , MouseInterface, KeyInterf
signals: signals:
// BaseInterface // BaseInterface
void updateView(); void updateView();
void updatedObject(int); void updatedObject(int _id, UpdateType _type);
// PickingInterface // PickingInterface
void addHiddenPickMode( const std::string _mode ); void addHiddenPickMode( const std::string _mode );
......
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