mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Remove unnecessary calls to Doc::resetTransformation/generateMaskBoundaries()
This commit is contained in:
parent
fe42245ed9
commit
d588777b40
@ -155,10 +155,6 @@ protected:
|
||||
|
||||
// Copy new mask
|
||||
api.copyToCurrentMask(new_mask.get());
|
||||
|
||||
// Regenerate mask
|
||||
document()->resetTransformation();
|
||||
document()->generateMaskBoundaries();
|
||||
}
|
||||
|
||||
// change the sprite's size
|
||||
|
@ -142,10 +142,6 @@ protected:
|
||||
|
||||
// Copy new mask
|
||||
api.copyToCurrentMask(new_mask.get());
|
||||
|
||||
// Regenerate mask
|
||||
document()->resetTransformation();
|
||||
document()->generateMaskBoundaries();
|
||||
}
|
||||
|
||||
// Resize slices
|
||||
|
@ -92,8 +92,10 @@ void Transaction::commit()
|
||||
m_cmds = nullptr;
|
||||
|
||||
// Process changes
|
||||
if (int(m_changes) & int(Changes::kSelection))
|
||||
if (int(m_changes) & int(Changes::kSelection)) {
|
||||
m_doc->resetTransformation();
|
||||
m_doc->generateMaskBoundaries();
|
||||
}
|
||||
}
|
||||
|
||||
void Transaction::rollbackAndStartAgain()
|
||||
|
@ -124,8 +124,6 @@ void select_layer_boundaries(Layer* layer,
|
||||
tx(new cmd::SetMask(doc, &newMask));
|
||||
tx.commit();
|
||||
|
||||
doc->resetTransformation();
|
||||
doc->generateMaskBoundaries();
|
||||
update_screen_for_document(doc);
|
||||
}
|
||||
catch (base::Exception& e) {
|
||||
|
Loading…
Reference in New Issue
Block a user