Fix T63899: Can't get sound.factory on Windows
This commit is contained in:
parent
1fa7d51f34
commit
157cc54ed5
Notes:
blender-bot
2023-02-14 07:31:34 +01:00
Referenced by commit 91bb8da59f
, Cleanup: clangg-format for rB157cc54ed521
Referenced by issue #63929, bpy.ops.file.find_missing_files() doesn't update viewport when files are found
Referenced by issue #63899, Can't get sound.factory on Windows
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue