Fix crash trying to paint in a group layer

This commit is contained in:
David Capello 2016-06-08 15:01:02 -03:00
parent 2f91122c26
commit 389ea666e5

View File

@ -297,7 +297,7 @@ bool StandbyState::onMouseDown(Editor* editor, MouseMessage* msg)
}
// Start the Tool-Loop
if (layer) {
if (layer && layer->isImage()) {
// Disable layer edges to avoid showing the modified cel
// information by ExpandCelCanvas (i.e. the cel origin is changed
// to 0,0 coordinate.)