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
This commit is contained in:
committed by
Brecht Van Lommel
parent
8833f5dbf9
commit
cbf3bd0efc
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user