[editor only] Use default layer when no one is available
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user