[editor only] Use default layer when no one is available

This commit is contained in:
fgnm
2024-01-08 16:25:45 +01:00
parent 93092444e0
commit fda9b818a5
2 changed files with 2 additions and 3 deletions
@@ -50,7 +50,7 @@ public class ItemFactory implements IFactory {
UILayerBoxMediator layerBoxMediator = Facade.getInstance().retrieveMediator(UILayerBoxMediator.NAME);
String layerName = layerBoxMediator.getCurrentSelectedLayerName();
if(layerName == null) return false;
if(layerName == null) layerName = "Default";
vo.layerName = layerName;
@@ -247,8 +247,7 @@ public class UILayerBox extends UICollapsibleBox {
uiLayerBox.currentSelectedLayerIndex = uiLayerBox.rows.size - uiLayerBox.rows.indexOf(uiLayerItemSlotTarget, true) - 1;
}
// Send notification with the two layers to swap.
// TODO - change from swap to repositioning source above target.
// Send notification with the two layers to jump.
String[] notificationPayload = {sourceLayer, targetLayer};
Facade.getInstance().sendNotification(LAYER_DROPPED, notificationPayload);
}