From e11cf49f67b8edae1f1b70e06dd291c472c3069d Mon Sep 17 00:00:00 2001 From: Lubos Lenco Date: Thu, 2 Sep 2021 22:55:03 +0200 Subject: [PATCH] Fix creating mask from textures tab --- Sources/arm/ui/TabTextures.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/arm/ui/TabTextures.hx b/Sources/arm/ui/TabTextures.hx index de4d6e58..cd1b6fa0 100644 --- a/Sources/arm/ui/TabTextures.hx +++ b/Sources/arm/ui/TabTextures.hx @@ -121,7 +121,9 @@ class TabTextures { Project.reimportTexture(asset); } if (ui.button(tr("To Mask"), Left)) { - Layers.createImageMask(asset); + App.notifyOnNextFrame(function() { + Layers.createImageMask(asset); + }); } if (ui.button(tr("Delete"), Left)) { UIStatus.inst.statusHandle.redraws = 2;