Protect against crashing with certain layers
This commit is contained in:
parent
871abdc616
commit
fa70f9094b
1 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,9 @@ class SilicaEngine {
|
|||
maskContext?.fill(document.cgRect())
|
||||
|
||||
for chunk in layer.mask!.chunks {
|
||||
maskContext?.draw(chunk.image!, in: document.getChunkRect(chunk))
|
||||
if let image = chunk.image {
|
||||
maskContext?.draw(image, in: document.getChunkRect(chunk))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue