Turn fill layers into paint layers when linked material is deleted

This commit is contained in:
Lubos Lenco
2021-06-03 10:27:44 +02:00
parent 16ad15b498
commit 1310ebcee2
+1
View File
@@ -143,6 +143,7 @@ class TabMaterials {
}
if (materials.length > 1 && ui.button(tr("Delete"), Left)) {
for (l in Project.layers) if (l.fill_layer == m) l.fill_layer = null;
History.deleteMaterial();
selectMaterial(i == 0 ? 1 : 0);
materials.splice(i, 1);