omegalib icon indicating copy to clipboard operation
omegalib copied to clipboard

Segfault on addSelectionListener() and addVisibilityListener()

Open dyhl opened this issue 8 years ago • 1 comments

Example code from addSelectionListener() and addVisibilityListener() segfaults.

Looks like it's because of code in src/omega/omegaPythonApi.cpp:

SceneNode* node = (SceneNode*)PyCapsule_GetPointer(pyNode, "node"); This evaluates to NULL regardless of pyNode type.

This then causes node->addListener(listener); to segfault

dyhl avatar Oct 20 '16 05:10 dyhl

Thank you for the report

febret avatar Oct 21 '16 04:10 febret