Render heightmap to layer

This commit is contained in:
2019-01-07 23:07:55 +01:00
parent 352511a920
commit 2b02be77dc
11 changed files with 145 additions and 116 deletions

View File

@@ -108,6 +108,8 @@ void NodeCheckBox::set_icon(const std::string& icon_path)
void NodeCheckBox::update_icon()
{
if (m_icon_path.empty())
return;
auto& t = TextureManager::get(const_hash(m_icon_path.c_str()));
if (!m_icon)
m_icon = m_inner->add_child<NodeImage>();