Remove features for deleted control points

Originally committed to SVN as r4620.
This commit is contained in:
Thomas Goyne 2010-06-27 07:53:14 +00:00
parent dc2836e9e5
commit caba46bf0b
2 changed files with 3 additions and 2 deletions

View File

@ -168,7 +168,7 @@ protected:
// @brief Called at the end of a drag
virtual void CommitDrag(FeatureType* feature) { }
/// @brief Called when there's stuff
/// @brief Called by Refresh when there's stuff
virtual void DoRefresh() { }
/// @brief Add a feature (and its line) to the selection
@ -205,7 +205,7 @@ public:
virtual bool Update() { return false; };
/// @brief Draw stuff
virtual void Draw()=0;
/// @brief Called by stuff when there's stuff
/// @brief Called by stuff when there's stuff, and sometimes when there isn't stuff
void Refresh();
/// @brief Constructor

View File

@ -318,6 +318,7 @@ bool VisualToolVectorClip::InitializeDrag(VisualToolVectorClipDraggableFeature*
spline.erase(feature->curve);
CommitDrag(feature);
curFeature = NULL;
PopulateFeatureList();
ClearSelection(false);
Commit(true);
return false;