Don't wait for DocumentReader lock in Editor/Timeline::onPaint()

This commit is contained in:
David Capello 2015-04-21 12:14:56 -03:00
parent 0f4705e67b
commit 44bf546d0d
2 changed files with 2 additions and 2 deletions

View File

@ -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()));

View File

@ -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;