mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Symmetry actions now work; reflection symmetry is forced to use a multiple of two copies
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@539 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <gui/symbol/selection.hpp>
|
||||
#include <gui/util.hpp>
|
||||
#include <data/action/symbol.hpp>
|
||||
#include <data/action/symbol_part.hpp>
|
||||
#include <gfx/gfx.hpp>
|
||||
#include <render/symbol/filter.hpp>
|
||||
#include <util/error.hpp>
|
||||
@@ -75,6 +76,16 @@ void SymbolPartList::onAction(const Action& action, bool undone) {
|
||||
updateParts(selection.get());
|
||||
return;
|
||||
}
|
||||
TYPE_CASE_(action, SymmetryTypeAction) {
|
||||
if (typing_in) cursor = typing_in->name.size(); // can change the name
|
||||
Refresh(false);
|
||||
return;
|
||||
}
|
||||
TYPE_CASE_(action, SymmetryCopiesAction) {
|
||||
if (typing_in) cursor = typing_in->name.size();
|
||||
Refresh(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
wxSize SymbolPartList::DoGetBestSize() const {
|
||||
|
||||
Reference in New Issue
Block a user