diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2014-08-23 14:31:32 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2014-08-23 14:31:32 +0400 |
commit | fb49c5aa5662da3c2434c75ea6283408c01d6c23 (patch) | |
tree | 9be1358b54142ff50fe884fb4b9fc4b1b4b76e43 /doc | |
parent | a0600debda8cd9ec93cd8e10f5d7ecd5be9a1a9a (diff) |
BGE: fix crash and return boolean on scene.replace()
Scene replacement with invalid scene name was crashing blender,
now it's a no-op.
KS_Scene.replace() to return a boolean to indicate if the scene
is valid and is scheduled for replacement. This allows more
robust game management.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/rst/bge_types/bge.types.KX_Scene.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge_types/bge.types.KX_Scene.rst b/doc/python_api/rst/bge_types/bge.types.KX_Scene.rst index 75630ae4d26..f2dad58731c 100644 --- a/doc/python_api/rst/bge_types/bge.types.KX_Scene.rst +++ b/doc/python_api/rst/bge_types/bge.types.KX_Scene.rst @@ -152,6 +152,8 @@ base class --- :class:`PyObjectPlus` :arg scene: The name of the scene to replace this scene with. :type scene: string + :return: True if the scene exists and was scheduled for addition, False otherwise. + :rtype: boolean .. method:: suspend() |