[Bf-blender-cvs] [afd30e5e3a7] master: Fix: Crash updating draw cache of original curves data
Hans Goudey
noreply at git.blender.org
Thu Oct 13 16:37:20 CEST 2022
Commit: afd30e5e3a770d3ce08f7913a6d952967084b9ea
Author: Hans Goudey
Date: Thu Oct 13 09:37:12 2022 -0500
Branches: master
https://developer.blender.org/rBafd30e5e3a770d3ce08f7913a6d952967084b9ea
Fix: Crash updating draw cache of original curves data
Error in c67e5628d22f8348492 which mistook clearing
the pointer for clearing the values in the struct.
===================================================================
M source/blender/draw/intern/draw_cache_impl_curves.cc
===================================================================
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;
More information about the Bf-blender-cvs
mailing list