mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
stuff
This commit is contained in:
parent
769c472ceb
commit
abc2e54c07
16 changed files with 137 additions and 224 deletions
|
@ -94,16 +94,12 @@ public:
|
|||
\param timeMs Current time in milliseconds. */
|
||||
virtual void OnAnimate(u32 timeMs)
|
||||
{
|
||||
if (IsVisible) {
|
||||
// update absolute position
|
||||
updateAbsolutePosition();
|
||||
if (!IsVisible && Children.empty())
|
||||
return;
|
||||
|
||||
// perform the post render process on all children
|
||||
|
||||
ISceneNodeList::iterator it = Children.begin();
|
||||
for (; it != Children.end(); ++it)
|
||||
(*it)->OnAnimate(timeMs);
|
||||
}
|
||||
updateAbsolutePosition();
|
||||
for (auto *child : Children)
|
||||
child->OnAnimate(timeMs);
|
||||
}
|
||||
|
||||
//! Renders the node.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue