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.
This commit is contained in:
parent
ac6b263906
commit
add719e31a
|
@ -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 "
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue