diff options
author | Pierluigi Grassi <pierluigi@tukano.it> | 2015-03-15 19:26:11 +0300 |
---|---|---|
committer | Jorge Bernal <jbernalmartinez@gmail.com> | 2015-03-15 19:26:49 +0300 |
commit | 225027ce5dea3785626908b58b01fb3959cf8362 (patch) | |
tree | 7089122c4d3d3ea3cd76d4f955a529afd954a397 /source/blender/compositor/operations/COM_AntiAliasOperation.cpp | |
parent | dd3ade250ded8c8bb86f68748b19cf5d4ab1b82a (diff) |
BGE - new read-only attribute in KX_GameObject python api (LOD level)
Added a new "current_lod_level" property to the python api of
KX_GameObject. The property returns the current lod level of the game
object. The purpose of the property is activate logic routines only when
an object is at a certain lod-distance from the camera, avoiding to
separately recomputing the same distance in the logic script. Usage in
python script might look like:
owner = bge.logic.getCurrentController().owner
lod_level = owner.currentLodLevel
if lod_level == 0: ...do something
else: ... object might be too distant
Reviewers: dfelinto, kupoman, moguri
Reviewed By: kupoman, moguri
Subscribers: lordloki
Projects: #game_engine
Differential Revision: https://developer.blender.org/D978
Diffstat (limited to 'source/blender/compositor/operations/COM_AntiAliasOperation.cpp')
0 files changed, 0 insertions, 0 deletions