mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 01:20:25 +00:00
Add some time to unlock sprite to select layer bounds
This commit is contained in:
parent
498ffcbaae
commit
d55e00aea0
@ -11,6 +11,7 @@
|
||||
#include "app/util/layer_boundaries.h"
|
||||
|
||||
#include "app/cmd/set_mask.h"
|
||||
#include "app/console.h"
|
||||
#include "app/context_access.h"
|
||||
#include "app/modules/gui.h"
|
||||
#include "app/transaction.h"
|
||||
@ -94,7 +95,8 @@ void select_layer_boundaries(Layer* layer,
|
||||
}
|
||||
}
|
||||
|
||||
ContextWriter writer(UIContext::instance());
|
||||
try {
|
||||
ContextWriter writer(UIContext::instance(), 500);
|
||||
app::Document* doc = writer.document();
|
||||
Sprite* spr = layer->sprite();
|
||||
ASSERT(doc == spr->document());
|
||||
@ -127,5 +129,9 @@ void select_layer_boundaries(Layer* layer,
|
||||
doc->generateMaskBoundaries();
|
||||
update_screen_for_document(doc);
|
||||
}
|
||||
catch (base::Exception& e) {
|
||||
Console::showException(e);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace app
|
||||
|
Loading…
x
Reference in New Issue
Block a user