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:
authorJörg Müller <nexyon@gmail.com>2019-04-27 01:13:43 +0300
committerJörg Müller <nexyon@gmail.com>2019-04-27 01:13:43 +0300
commit157cc54ed52192ef6994bcc6a975c4399503ac25 (patch)
tree04e0eabc4d50fd5ba7c3c457d0aa7fd725401aef /intern/audaspace
parent1fa7d51f342a07febac102d381fd3075efc78e2b (diff)
Fix T63899: Can't get sound.factory on Windows
Diffstat (limited to 'intern/audaspace')
-rw-r--r--intern/audaspace/intern/AUD_PyInit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/audaspace/intern/AUD_PyInit.cpp b/intern/audaspace/intern/AUD_PyInit.cpp
index b65d2740f32..f184f61f4ae 100644
--- a/intern/audaspace/intern/AUD_PyInit.cpp
+++ b/intern/audaspace/intern/AUD_PyInit.cpp
@@ -34,11 +34,11 @@ extern void *BKE_sound_get_factory(void *sound);
static PyObject *AUD_getSoundFromPointer(PyObject *self, PyObject *args)
{
- long int lptr;
+ PyObject* lptr = NULL;
- if (PyArg_Parse(args, "l:_sound_from_pointer", &lptr)) {
+ if (PyArg_Parse(args, "O:_sound_from_pointer", &lptr)) {
if (lptr) {
- AUD_Sound *sound = BKE_sound_get_factory((void *)lptr);
+ AUD_Sound* sound = BKE_sound_get_factory(PyLong_AsVoidPtr(lptr));
if (sound) {
Sound *obj = (Sound *)Sound_empty();