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:
authorHans Goudey <h.goudey@me.com>2022-10-13 17:37:12 +0300
committerHans Goudey <h.goudey@me.com>2022-10-13 17:37:12 +0300
commitafd30e5e3a770d3ce08f7913a6d952967084b9ea (patch)
tree6a511d64fc875fbc3d6e2b434a5216ba6fc36dd1 /source/blender/draw
parentd292d635ea7fd23be61987befc561747382d8133 (diff)
Fix: Crash updating draw cache of original curves data
Error in c67e5628d22f8348492 which mistook clearing the pointer for clearing the values in the struct.
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_curves.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_curves.cc b/source/blender/draw/intern/draw_cache_impl_curves.cc
index e6a422b6a11..329bc4a4700 100644
--- a/source/blender/draw/intern/draw_cache_impl_curves.cc
+++ b/source/blender/draw/intern/draw_cache_impl_curves.cc
@@ -78,7 +78,7 @@ static void curves_batch_cache_init(Curves &curves)
curves.batch_cache = cache;
}
else {
- cache = {};
+ cache->curves_cache = {};
}
cache->is_dirty = false;