Add missing check as the context override dict may have been copied since it was assigned, also initialize the context manager with PyType_Ready, while it didn't cause any errors - it's expected that all types are initialized.
20 lines
273 B
C++
20 lines
273 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup pythonintern
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern PyMethodDef BPY_rna_context_temp_override_method_def;
|
|
|
|
void bpy_rna_context_types_init(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|