implement shading modes switch for heightmap

This commit is contained in:
2018-12-24 23:47:00 +01:00
parent 52c87d9ec6
commit f823451546
5 changed files with 44 additions and 17 deletions

View File

@@ -19,6 +19,8 @@ void NodeComboBox::clone_copy(Node* dest) const
void NodeComboBox::loaded()
{
NodeButton::loaded();
m_text->set_text(m_data[m_current_index].c_str());
m_selected_child_index = m_current_index;
on_click = [this](Node* target) {
NodePopupMenu* popup = new NodePopupMenu;
popup->init();