if (layer)
{
graphic->editLayer(graphic->getActiveLayer(), *layer);
// Update updatable entities on the layer that has changed
if (layer)
{
graphic->editLayer(graphic->getActiveLayer(), *layer);
// Update updatable entities on the layer that has changed