added timeline slider and export animation frames
This commit is contained in:
@@ -251,6 +251,17 @@ int Node::get_child_index(Node* n)
|
||||
return -1;
|
||||
}
|
||||
|
||||
Node* Node::get_child_at(int index)
|
||||
{
|
||||
auto n = YGNodeGetChild(y_node, index);
|
||||
for (auto& c : m_children)
|
||||
{
|
||||
if (c->y_node == n)
|
||||
return c.get();
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
glm::vec4 Node::get_children_rect() const
|
||||
{
|
||||
if (m_children.empty())
|
||||
|
||||
Reference in New Issue
Block a user