Cleanup: remove duplicate context variable (__py_context)
The context was stored both in __py_context & bpy_context_module. This avoids duplicate functions to update them too.
This commit is contained in:
@@ -38,16 +38,6 @@
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
|
||||
static bContext *__py_context = NULL;
|
||||
bContext *BPy_GetContext(void)
|
||||
{
|
||||
return __py_context;
|
||||
}
|
||||
void BPy_SetContext(bContext *C)
|
||||
{
|
||||
__py_context = C;
|
||||
}
|
||||
|
||||
char *BPy_enum_as_string(const EnumPropertyItem *item)
|
||||
{
|
||||
DynStr *dynstr = BLI_dynstr_new();
|
||||
|
Reference in New Issue
Block a user