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 <bastien@blender.org>2021-08-04 13:36:06 +0300
committerBastien Montagne <bastien@blender.org>2021-08-04 13:38:13 +0300
commitadd719e31aa7d5668fd33cb1a1e02417a334be97 (patch)
treeea27437503ac69f1b6f63a6c44af3a1ef6a5218c
parentac6b263906c92d6adaafd014db28e0863cfd13e9 (diff)
Tweak to recent liboverride API addition: naming.
Rename new API function introduced in recent rB3b0fab6dfaa0 to match our convention to put the action (verb) at the end of names: `operations_update`. Sorry for not catching that during review.
-rw-r--r--source/blender/makesrna/intern/rna_ID.c4
-rw-r--r--tests/python/bl_blendfile_library_overrides.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c
index e177f211c7f..15704fc2523 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -741,7 +741,7 @@ static void rna_ID_override_template_create(ID *id, ReportList *reports)
BKE_lib_override_library_template_create(id);
}
-static void rna_ID_override_library_update_operations(ID *id,
+static void rna_ID_override_library_operations_update(ID *id,
IDOverrideLibrary *UNUSED(override_library),
Main *bmain,
ReportList *reports)
@@ -1725,7 +1725,7 @@ static void rna_def_ID_override_library(BlenderRNA *brna)
rna_def_ID_override_library_properties(brna, prop);
/* Update function. */
- func = RNA_def_function(srna, "update_operations", "rna_ID_override_library_update_operations");
+ func = RNA_def_function(srna, "operations_update", "rna_ID_override_library_operations_update");
RNA_def_function_flag(func, FUNC_USE_MAIN | FUNC_USE_SELF_ID | FUNC_USE_REPORTS);
RNA_def_function_ui_description(func,
"Update the library override operations based on the "
diff --git a/tests/python/bl_blendfile_library_overrides.py b/tests/python/bl_blendfile_library_overrides.py
index 138c5fd13b5..19f06dc698e 100644
--- a/tests/python/bl_blendfile_library_overrides.py
+++ b/tests/python/bl_blendfile_library_overrides.py
@@ -60,7 +60,7 @@ class TestLibraryOverrides(TestHelper, unittest.TestCase):
assert(len(local_id.override_library.properties) == 0)
local_id.location.y = 1.0
- local_id.override_library.update_operations()
+ local_id.override_library.operations_update()
assert(len(local_id.override_library.properties) == 1)
override_prop = local_id.override_library.properties[0]
@@ -104,7 +104,7 @@ class TestLibraryOverrides(TestHelper, unittest.TestCase):
assert(local_id.scale.x == 0.5)
assert(local_id.location.y == 1.0)
- local_id.override_library.update_operations()
+ local_id.override_library.operations_update()
assert(local_id.scale.x == 1.0)
assert(local_id.location.y == 1.0)