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.
This commit is contained in:
@@ -759,6 +759,10 @@ Types
|
|||||||
|
|
||||||
The id is derived from a memory location and will be different each time the game engine starts.
|
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)
|
.. class:: KX_BlenderMaterial(PyObjectPlus)
|
||||||
|
|
||||||
KX_BlenderMaterial
|
KX_BlenderMaterial
|
||||||
|
|||||||
Reference in New Issue
Block a user