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:
authorCampbell Barton <ideasman42@gmail.com>2008-09-05 20:22:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-09-05 20:22:14 +0400
commit5eab0da6335b57cc3508d85277592e0f789c7ebd (patch)
tree4b104b8664f2b32a833de7c6d8b52b4e5b42c74c /source/gameengine/Ketsji/KX_GameObject.h
parent2e653838c09be5f813c4d979a035b0b44211bed4 (diff)
BGE set visible actuator, option to set visibility recursively to make managing visibility for collections of objects a lot easier.
BGE Python api's ob.setVisible() also takes an optional recursive arg thats off by default
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.h')
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.h b/source/gameengine/Ketsji/KX_GameObject.h
index 9dcf6526448..98b3f3b4c3f 100644
--- a/source/gameengine/Ketsji/KX_GameObject.h
+++ b/source/gameengine/Ketsji/KX_GameObject.h
@@ -566,6 +566,7 @@ public:
*/
void
UpdateBuckets(
+ bool recursive
);
/**
@@ -640,7 +641,8 @@ public:
*/
void
SetVisible(
- bool b
+ bool b,
+ bool recursive
);
/**
@@ -762,7 +764,7 @@ public:
KX_PYMETHOD_NOARGS(KX_GameObject,GetOrientation);
KX_PYMETHOD_O(KX_GameObject,SetOrientation);
KX_PYMETHOD_NOARGS(KX_GameObject,GetVisible);
- KX_PYMETHOD_O(KX_GameObject,SetVisible);
+ KX_PYMETHOD_VARARGS(KX_GameObject,SetVisible);
KX_PYMETHOD_NOARGS(KX_GameObject,GetState);
KX_PYMETHOD_O(KX_GameObject,SetState);
KX_PYMETHOD_VARARGS(KX_GameObject,AlignAxisToVect);