add template Node::clone() and remove destroy_immediate

This commit is contained in:
2019-08-28 23:57:29 +02:00
parent ee2483be1b
commit 462c4a52e1
18 changed files with 66 additions and 60 deletions

View File

@@ -589,10 +589,10 @@ void NodeStrokePreview::handle_resize(glm::vec2 old_size, glm::vec2 new_size, fl
draw_stroke();
}
void NodeStrokePreview::destroy_immediate()
void NodeStrokePreview::destroy()
{
Node::destroy_immediate();
m_tex_preview.destroy();
Node::destroy();
}
void NodeStrokePreview::handle_on_screen(bool old_visibility, bool new_visibility)