Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2010-03-26 00:43:36 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2010-03-26 00:43:36 +0300
commit3ed81eeccf19daef6ca3b8f7e5035ceef621bd19 (patch)
treecd0d72fc54e9aed1dd1708f24a16d1a00485c304 /source/gameengine/SceneGraph/SG_Node.h
parentaa3428e6abbf3ef453757b4909ad10bb52b9a418 (diff)
BGE: [#19836] Recursive Parenting in game crashes Blender. Added parenting loop detection.
Diffstat (limited to 'source/gameengine/SceneGraph/SG_Node.h')
-rw-r--r--source/gameengine/SceneGraph/SG_Node.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/gameengine/SceneGraph/SG_Node.h b/source/gameengine/SceneGraph/SG_Node.h
index 78fa61c019e..5d2bac2b955 100644
--- a/source/gameengine/SceneGraph/SG_Node.h
+++ b/source/gameengine/SceneGraph/SG_Node.h
@@ -77,6 +77,13 @@ public:
SG_Node* child
);
+ /**
+ * Return true if the node is the ancessor of child
+ */
+ bool
+ IsAncessor(
+ const SG_Node* child
+ ) const;
/**
* Get the current list of children. Do not use this interface for
* adding or removing children please use the methods of this class for