diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-19 17:52:23 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-19 18:01:20 +0300 |
commit | 9905f5725c366b6ee8b159a7293e8bd273922dfa (patch) | |
tree | 6924dc8b2f97401c018ff4066cf5a81110450f96 /source/blender/makesrna | |
parent | df25d3c2a32dc64003249cc80ffdf804d232b51c (diff) |
LibOverride: rempve ID preview from comparison (diffing) process.
Accessing this from RNA may actually create some data, which we do not
want to happen when comparing data. Further more, preview is not data,
but a view of it, so we should be safe ignoring it entirely here.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_ID.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index 97536e31003..9a7a27dc8ae 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -1545,6 +1545,7 @@ static void rna_def_ID(BlenderRNA *brna) "Preview", "Preview image and icon of this data-block (None if not supported for this type of data)"); RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON); RNA_def_property_pointer_funcs(prop, "rna_IDPreview_get", NULL, NULL, NULL); /* functions */ |