diff options
author | Jacques Lucke <jacques@blender.org> | 2021-09-13 11:42:54 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-09-13 11:42:54 +0300 |
commit | eaa35b27e0af9547ed947d672bea660df3d688a0 (patch) | |
tree | 9da7b09e7c01aa4bef1ef9eba85b2ae7d73f6ade /source | |
parent | 9b2b32a3338d873529a9b2c402feae4e9d25afdf (diff) |
Fix T91311: incorrect batch generation for instances
This was a mistake in {rB5a9a16334c573c4566dc9b2a314cf0d0ccdcb54f}.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index aca645acc09..47adc0acc60 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -695,7 +695,7 @@ static void duplidata_value_free(void *val) static void duplidata_key_free(void *key) { DupliKey *dupli_key = (DupliKey *)key; - if (dupli_key->ob_data == NULL) { + if (dupli_key->ob_data == dupli_key->ob->data) { drw_batch_cache_generate_requested(dupli_key->ob); } else { |