forked from mia/Aegisub
Remove features for deleted control points
Originally committed to SVN as r4620.
This commit is contained in:
parent
dc2836e9e5
commit
caba46bf0b
|
@ -168,7 +168,7 @@ protected:
|
||||||
// @brief Called at the end of a drag
|
// @brief Called at the end of a drag
|
||||||
virtual void CommitDrag(FeatureType* feature) { }
|
virtual void CommitDrag(FeatureType* feature) { }
|
||||||
|
|
||||||
/// @brief Called when there's stuff
|
/// @brief Called by Refresh when there's stuff
|
||||||
virtual void DoRefresh() { }
|
virtual void DoRefresh() { }
|
||||||
|
|
||||||
/// @brief Add a feature (and its line) to the selection
|
/// @brief Add a feature (and its line) to the selection
|
||||||
|
@ -205,7 +205,7 @@ public:
|
||||||
virtual bool Update() { return false; };
|
virtual bool Update() { return false; };
|
||||||
/// @brief Draw stuff
|
/// @brief Draw stuff
|
||||||
virtual void Draw()=0;
|
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();
|
void Refresh();
|
||||||
|
|
||||||
/// @brief Constructor
|
/// @brief Constructor
|
||||||
|
|
|
@ -318,6 +318,7 @@ bool VisualToolVectorClip::InitializeDrag(VisualToolVectorClipDraggableFeature*
|
||||||
spline.erase(feature->curve);
|
spline.erase(feature->curve);
|
||||||
CommitDrag(feature);
|
CommitDrag(feature);
|
||||||
curFeature = NULL;
|
curFeature = NULL;
|
||||||
|
PopulateFeatureList();
|
||||||
ClearSelection(false);
|
ClearSelection(false);
|
||||||
Commit(true);
|
Commit(true);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue