Open transaction before applying transformation
This commit is contained in:
parent
6677b7608c
commit
734dd0a386
|
@ -892,10 +892,12 @@ void ManualAlignment::align()
|
|||
|
||||
// Compute alignment
|
||||
bool ok = computeAlignment(myAlignModel.activeGroup().getPoints(), myFixedGroup.getPoints());
|
||||
if (ok) {
|
||||
if (ok && myDocument) {
|
||||
// Align views
|
||||
myDocument->openCommand("Align");
|
||||
for (std::vector<App::DocumentObject*>::iterator it = pViews.begin(); it != pViews.end(); ++it)
|
||||
alignObject(*it);
|
||||
myDocument->commitCommand();
|
||||
|
||||
// the alignment was successful so show it in the right view now
|
||||
//myAlignModel.activeGroup().setRandomColor();
|
||||
|
|
Loading…
Reference in New Issue
Block a user