mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-16 10:20:50 +00:00
Don't wait for DocumentReader lock in Editor/Timeline::onPaint()
This commit is contained in:
parent
0f4705e67b
commit
44bf546d0d
@ -1328,7 +1328,7 @@ void Editor::onPaint(ui::PaintEvent& ev)
|
||||
else {
|
||||
try {
|
||||
// Lock the sprite to read/render it.
|
||||
DocumentReader documentReader(m_document, 250);
|
||||
DocumentReader documentReader(m_document, 0);
|
||||
|
||||
// Draw the sprite in the editor
|
||||
drawSpriteUnclippedRect(g, gfx::Rect(0, 0, m_sprite->width(), m_sprite->height()));
|
||||
|
@ -809,7 +809,7 @@ void Timeline::onPaint(ui::PaintEvent& ev)
|
||||
|
||||
try {
|
||||
// Lock the sprite to read/render it.
|
||||
const DocumentReader documentReader(m_document, 250);
|
||||
const DocumentReader documentReader(m_document, 0);
|
||||
|
||||
LayerIndex layer, first_layer, last_layer;
|
||||
frame_t frame, first_frame, last_frame;
|
||||
|
Loading…
x
Reference in New Issue
Block a user