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>2020-12-30 14:38:53 +0300
committerBastien Montagne <bastien@blender.org>2020-12-30 14:38:53 +0300
commitf910342c8d1f09a140d036b2d3583933cc126593 (patch)
tree6d7446a379ec6b51f1f3c12e230fc662d3fbcb00 /source/blender/editors/space_outliner/outliner_tree.c
parent761ef45a24e38902d5a316c6eb487cb16aaa4310 (diff)
Outliner: Fix useless assert in new liboverride showing code.
It is perfectly 'valid' to find invalid RNA properties references in override properties list. Data change, RNA changes, IDProperties change, some linked ID may become unavailable, etc. Note that those invaldi override properties are cleaned up when updating the override info (so typically on undo step storage, and .blend file save).
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tree.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 11894548016..f8905d772b2 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -655,7 +655,9 @@ static void outliner_add_library_override_contents(SpaceOutliner *soops, TreeEle
int index = 0;
LISTBASE_FOREACH (IDOverrideLibraryProperty *, op, &id->override_library->properties) {
if (!BKE_lib_override_rna_property_find(&idpoin, op, &override_ptr, &override_prop)) {
- BLI_assert(false);
+ /* This is fine, override properties list is not alwasy fully up-to-date with current
+ * RNA/IDProps etc., this gets cleaned up when re-generating the overrides rules, no error
+ * here. */
continue;
}