We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5bd1b3 commit f85675aCopy full SHA for f85675a
src/editor/layer_icon.cpp
@@ -29,10 +29,9 @@ LayerIcon::LayerIcon(LayerObject* layer) :
29
ObjectIcon("", layer->get_icon_path()),
30
m_layer(layer),
31
m_layer_tilemap(dynamic_cast<TileMap*>(layer)),
32
- m_selection()
+ m_selection(m_layer_tilemap ?
33
+ Surface::from_file("images/engine/editor/selection.png") : nullptr)
34
{
- if (m_layer_tilemap)
35
- m_selection = Surface::from_file("images/engine/editor/selection.png");
36
}
37
38
void
0 commit comments