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
path: root/doc
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-29 05:25:38 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-29 05:25:38 +0400
commitc3e18138206d4d841cf9e08b58a7e9ed792655e3 (patch)
tree3f0d6acb2382106846d665f0a50f6ad9d5cfe0ab /doc
parent0d6976ad0ce4570e286ca33b852ee3b6a07a09ab (diff)
Fix related to #33340: add a warning to bge from_id documentation to not store id()
in game object integer properties since it may not fit in 32 bits integers.
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/bge.types.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge.types.rst b/doc/python_api/rst/bge.types.rst
index f7a63b48f61..8cf9ccb794c 100644
--- a/doc/python_api/rst/bge.types.rst
+++ b/doc/python_api/rst/bge.types.rst
@@ -759,6 +759,10 @@ Types
The id is derived from a memory location and will be different each time the game engine starts.
+ .. warning::
+
+ The id can't be stored as an integer in game object properties, as those only have a limited range that the id may not be contained in. Instead an id can be stored as a string game property and converted back to an integer for use in from_id lookups.
+
.. class:: KX_BlenderMaterial(PyObjectPlus)
KX_BlenderMaterial