From cbf3bd0efc654b208a5d6af2c3389f55e30dd669 Mon Sep 17 00:00:00 2001 From: Alex Fuller Date: Tue, 13 Dec 2022 16:29:23 +0100 Subject: [PATCH] Fix Cycles missing geometry header in object header, causing crashes The problem is that `set_geometry()` otherwise ends up implicitly casting `Geometry*` to bool. In Blender this worked because the geometry header was always included before the object header. Differential Revision: https://developer.blender.org/D16737 --- intern/cycles/scene/object.h | 1 + 1 file changed, 1 insertion(+) diff --git a/intern/cycles/scene/object.h b/intern/cycles/scene/object.h index 7779f603efd..27a4c1ea320 100644 --- a/intern/cycles/scene/object.h +++ b/intern/cycles/scene/object.h @@ -9,6 +9,7 @@ /* included as Object::set_particle_system defined through NODE_SOCKET_API does * not select the right Node::set overload as it does not know that ParticleSystem * is a Node */ +#include "scene/geometry.h" #include "scene/particles.h" #include "scene/scene.h"