diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-09-05 20:22:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-09-05 20:22:14 +0400 |
commit | 5eab0da6335b57cc3508d85277592e0f789c7ebd (patch) | |
tree | 4b104b8664f2b32a833de7c6d8b52b4e5b42c74c /source/gameengine/Ketsji/KX_GameObject.h | |
parent | 2e653838c09be5f813c4d979a035b0b44211bed4 (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.h | 6 |
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); |