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:
authorBrecht Van Lommel <brecht@blender.org>2020-10-26 14:15:52 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-10-26 14:31:01 +0300
commitae5fd92228f82270806b127facba1f6c052f9717 (patch)
tree801ec137fcc308b0a5316aa675affde113df025e /intern/cycles/blender/blender_id_map.h
parent6fc0d743f12d4a1e72748cdc423ddd04b500a93b (diff)
Fix T81893: Cycles viewport crash changing mesh to smoke domain
Now that volume is a dedicated geometry type in Cycles, we need to re-allocate the geometry when a mesh changes into a volume.
Diffstat (limited to 'intern/cycles/blender/blender_id_map.h')
-rw-r--r--intern/cycles/blender/blender_id_map.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/intern/cycles/blender/blender_id_map.h b/intern/cycles/blender/blender_id_map.h
index f9f201c2e4e..8ce1d23665d 100644
--- a/intern/cycles/blender/blender_id_map.h
+++ b/intern/cycles/blender/blender_id_map.h
@@ -19,6 +19,7 @@
#include <string.h>
+#include "render/geometry.h"
#include "render/scene.h"
#include "util/util_map.h"
@@ -230,9 +231,9 @@ struct ObjectKey {
struct GeometryKey {
void *id;
- bool use_particle_hair;
+ Geometry::Type geometry_type;
- GeometryKey(void *id, bool use_particle_hair) : id(id), use_particle_hair(use_particle_hair)
+ GeometryKey(void *id, Geometry::Type geometry_type) : id(id), geometry_type(geometry_type)
{
}
@@ -242,7 +243,7 @@ struct GeometryKey {
return true;
}
else if (id == k.id) {
- if (use_particle_hair < k.use_particle_hair) {
+ if (geometry_type < k.geometry_type) {
return true;
}
}