Cleanup: pass const context to CTX_py_init_get

This commit is contained in:
Campbell Barton
2025-09-04 23:00:19 +10:00
parent 866fcd0a09
commit 7250eef0a3
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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;
}