blender/source
Mateo de Mayo 23f54076db BGE: Added getActionName() function to KX_GameObject()
It works similar to getActionFrame(), you have to give a layer or not (for layer 0) as the argument and it returns the name of the animation that the object is currently playing.

Example:

```
import bge
own = bge.logic.getCurrentController().owner
own.playAction("SomeAction",0,20)
print(own.getActionName())
```
>> SomeAction

Here is an example file, just open the blend file with the terminal opened
and press P, you can see how the current animation is being printed:
{F217484}

Reviewers: moguri, hg1, panzergame, campbellbarton

Reviewed By: panzergame

Subscribers: campbellbarton, hg1, #game_engine

Projects: #game_engine

Differential Revision: https://developer.blender.org/D1443
2015-08-04 00:10:33 +02:00
..
blender OpenSubdiv: Fix/workaround for missing generated coordinates in viewport 2015-08-03 20:39:00 +02:00
blenderplayer Docs: doxy cleanup/minor edits 2015-08-01 12:37:52 +10:00
creator Audaspace: support the device list returned by the new audaspace library. 2015-07-28 14:01:53 +02:00
gameengine BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
icons
CMakeLists.txt Move tests into tests/ top-level dir 2014-06-18 22:03:46 +10:00
SConscript