Last commit broke WITH_PYTHON_SAFETY
Re-enable BPY_id_release call with thats enabled.
This commit is contained in:
parent
0b5f056119
commit
6fe2a48d3e
|
@ -431,6 +431,10 @@ if(WITH_PYTHON)
|
|||
)
|
||||
add_definitions(-DWITH_PYTHON)
|
||||
|
||||
if(WITH_PYTHON_SAFETY)
|
||||
add_definitions(-DWITH_PYTHON_SAFETY)
|
||||
endif()
|
||||
|
||||
if(WITH_PYTHON_SECURITY)
|
||||
add_definitions(-DWITH_PYTHON_SECURITY)
|
||||
endif()
|
||||
|
|
|
@ -893,6 +893,9 @@ void BKE_libblock_free_ex(Main *bmain, void *idv, const bool do_id_user, const b
|
|||
DEG_id_type_tag(bmain, type);
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
#ifdef WITH_PYTHON_SAFETY
|
||||
BPY_id_release(id);
|
||||
#endif
|
||||
if (id->py_instance) {
|
||||
BPY_DECREF_RNA_INVALIDATE(id->py_instance);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue