From fe371a28b5ab77920016d85f9bfcd9fcd6e5f3a5 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 25 Nov 2016 12:37:40 +0800 Subject: [PATCH] Add non-const function for STK usage --- lib/irrlicht/include/ISceneNode.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/irrlicht/include/ISceneNode.h b/lib/irrlicht/include/ISceneNode.h index ecaad4a38..212581d3b 100644 --- a/lib/irrlicht/include/ISceneNode.h +++ b/lib/irrlicht/include/ISceneNode.h @@ -172,7 +172,6 @@ namespace scene \return The non-transformed bounding box. */ virtual const core::aabbox3d& getBoundingBox() const = 0; - //! Get the axis aligned, transformed and animated absolute bounding box of this node. /** \return The transformed bounding box. */ virtual const core::aabbox3d getTransformedBoundingBox() const @@ -590,6 +589,12 @@ namespace scene return Children; } + //! Returns a list of all children (non-const version). + /** \return The list of all children of this node. */ + core::list& getChildren() + { + return Children; + } //! Changes the parent of the scene node. /** \param newParent The new parent to be used. */