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
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2011-06-16 13:13:29 +0400
committerJoerg Mueller <nexyon@gmail.com>2011-06-16 13:13:29 +0400
commita90d30c8638a87234048060d8fcb385369b3daaf (patch)
tree7d2bb0c31f833b561cb6dd365fc23bc9185f7d1c /intern/audaspace/Python/AUD_PyAPI.cpp
parentcfcc4b4fcd7dabd0929db53fc5a9cf0833704259 (diff)
3D Audio GSoC:
GameEngine Python access sound actuator's sound (with setting! :-D).
Diffstat (limited to 'intern/audaspace/Python/AUD_PyAPI.cpp')
-rw-r--r--intern/audaspace/Python/AUD_PyAPI.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/intern/audaspace/Python/AUD_PyAPI.cpp b/intern/audaspace/Python/AUD_PyAPI.cpp
index ac25ab34a69..b6e336eb329 100644
--- a/intern/audaspace/Python/AUD_PyAPI.cpp
+++ b/intern/audaspace/Python/AUD_PyAPI.cpp
@@ -2881,6 +2881,19 @@ Factory_empty()
return FactoryType.tp_alloc(&FactoryType, 0);
}
+Factory*
+checkFactory(PyObject* factory)
+{
+ if(!PyObject_TypeCheck(factory, &FactoryType))
+ {
+ PyErr_SetString(PyExc_TypeError, "Object is not of type Factory!");
+ return NULL;
+ }
+
+ return (Factory*)factory;
+}
+
+
// ====================================================================
PyDoc_STRVAR(M_aud_doc,