You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto bpy_mesh = ::PythonObject{bpy_mesh_ptr, true};
The bpy_mesh_ptr is borrowed reference, and it may be destroyed while std::async is using it.
Calling Py_INCREF(bpy_mesh_ptr) before the line will fix the problem.
On the other hand, Py_DECREF is not necessary.
Note the second arguemnt true in the ::PythonObject constructor.
The text was updated successfully, but these errors were encountered:
SausageTaste
changed the title
Must call Py_INCREF on bpy_mesh_ptr before this line
Must call Py_INCREF on bpy_mesh_ptrJun 25, 2022
io_scene_dalbaragi/cpp/b3dsung.cpp
Line 469 in 768b839
The
bpy_mesh_ptr
is borrowed reference, and it may be destroyed whilestd::async
is using it.Calling
Py_INCREF(bpy_mesh_ptr)
before the line will fix the problem.On the other hand,
Py_DECREF
is not necessary.Note the second arguemnt
true
in the::PythonObject
constructor.The text was updated successfully, but these errors were encountered: