Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-06-15 00:16:04 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-06-15 00:21:12 +0300
commit23254ce4ee6b21b202549b421cf1d98f6a03b33d (patch)
tree77ebd72c7f1cd2776e058f04b5e6e49f14a327ec /source/blender/python/intern/bpy_app.c
parentf64070185808f153d141b26e63942424a1b258b1 (diff)
Cleanup: Rename: Static Override -> Library Override.
Better to make internal code naming match official/UI naming to some extent, this will reduce confusion in the future. This is 'breaking' scripts and files that would use that feature, but since it is not yet officially supported nor exposed in 2.80, as far as that release is concerned, it is effectively a 'no functional changes' commit.
Diffstat (limited to 'source/blender/python/intern/bpy_app.c')
-rw-r--r--source/blender/python/intern/bpy_app.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c
index 9ffb4cb4821..a3dd8ef93f2 100644
--- a/source/blender/python/intern/bpy_app.c
+++ b/source/blender/python/intern/bpy_app.c
@@ -392,25 +392,25 @@ static PyObject *bpy_app_autoexec_fail_message_get(PyObject *UNUSED(self), void
return PyC_UnicodeFromByte(G.autoexec_fail);
}
-PyDoc_STRVAR(bpy_app_use_static_override_doc,
- "Boolean, whether static override is exposed in UI or not.");
-static PyObject *bpy_app_use_static_override_get(PyObject *UNUSED(self), void *UNUSED(closure))
+PyDoc_STRVAR(bpy_app_use_override_library_doc,
+ "Boolean, whether library override is exposed in UI or not.");
+static PyObject *bpy_app_use_override_library_get(PyObject *UNUSED(self), void *UNUSED(closure))
{
- return PyBool_FromLong((long)BKE_override_static_is_enabled());
+ return PyBool_FromLong((long)BKE_override_library_is_enabled());
}
-static int bpy_app_use_static_override_set(PyObject *UNUSED(self),
- PyObject *value,
- void *UNUSED(closure))
+static int bpy_app_use_override_library_set(PyObject *UNUSED(self),
+ PyObject *value,
+ void *UNUSED(closure))
{
const int param = PyC_Long_AsBool(value);
if (param == -1 && PyErr_Occurred()) {
- PyErr_SetString(PyExc_TypeError, "bpy.app.use_static_override must be a boolean");
+ PyErr_SetString(PyExc_TypeError, "bpy.app.use_override_library must be a boolean");
return -1;
}
- BKE_override_static_enable((const bool)param);
+ BKE_override_library_enable((const bool)param);
return 0;
}
@@ -497,10 +497,10 @@ static PyGetSetDef bpy_app_getsets[] = {
(char *)bpy_app_debug_doc,
(void *)G_DEBUG_IO},
- {(char *)"use_static_override",
- bpy_app_use_static_override_get,
- bpy_app_use_static_override_set,
- (char *)bpy_app_use_static_override_doc,
+ {(char *)"use_override_library",
+ bpy_app_use_override_library_get,
+ bpy_app_use_override_library_set,
+ (char *)bpy_app_use_override_library_doc,
NULL},
{(char *)"use_event_simulate",
bpy_app_global_flag_get,