add progress bar to lightmap rendering
This commit is contained in:
@@ -132,6 +132,8 @@ void NodePanelLayer::init()
|
||||
add_layer();
|
||||
if (on_layer_add)
|
||||
on_layer_add(this);
|
||||
if (on_layer_change)
|
||||
on_layer_change(this, -1, m_layers_container->get_child_index(m_current_layer));
|
||||
update_attributes();
|
||||
};
|
||||
btn_remove->on_click = [this](Node*) {
|
||||
@@ -189,8 +191,6 @@ NodeLayer* NodePanelLayer::add_layer(const char* name)
|
||||
m_current_layer = l;
|
||||
m_current_layer->m_selected = true;
|
||||
m_layers.push_back(l);
|
||||
if (on_layer_change)
|
||||
on_layer_change(this, -1, m_layers_container->get_child_index(m_current_layer));
|
||||
update_attributes();
|
||||
return l;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user