Cleanup: pass const context to CTX_py_init_get
This commit is contained in:
@@ -175,8 +175,8 @@ std::optional<blender::StringRefNull> CTX_store_string_lookup(const bContextStor
|
||||
blender::StringRef name);
|
||||
std::optional<int64_t> CTX_store_int_lookup(const bContextStore *store, blender::StringRef name);
|
||||
|
||||
/* need to store if python is initialized or not */
|
||||
bool CTX_py_init_get(bContext *C);
|
||||
/** Needed to store if Python is initialized or not. */
|
||||
bool CTX_py_init_get(const bContext *C);
|
||||
void CTX_py_init_set(bContext *C, bool value);
|
||||
|
||||
void *CTX_py_dict_get(const bContext *C);
|
||||
|
||||
@@ -239,7 +239,7 @@ std::optional<int64_t> CTX_store_int_lookup(const bContextStore *store,
|
||||
|
||||
/* is python initialized? */
|
||||
|
||||
bool CTX_py_init_get(bContext *C)
|
||||
bool CTX_py_init_get(const bContext *C)
|
||||
{
|
||||
return C->data.py_init;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user