diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-23 11:38:52 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-23 14:59:58 +0300 |
commit | 694bc9776860fb0c8e5e95a3ca81a0badf72ced0 (patch) | |
tree | 17a661c544578b170bbfdd5b82c8a0e9b2b6004b /source | |
parent | b2dc54ffe589a47999bf0c9d415ba8143bd96a36 (diff) |
Draw Manager: Prevent errors when overwritting the instance batch.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 94e32424ade..a652b9b9426 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -825,6 +825,7 @@ void DRW_shgroup_free(struct DRWShadingGroup *shgroup) void DRW_shgroup_instance_batch(DRWShadingGroup *shgroup, struct Batch *instances) { BLI_assert(shgroup->type == DRW_SHG_INSTANCE); + BLI_assert(shgroup->interface->instance_batch == NULL); shgroup->interface->instance_batch = instances; } |