[Bf-blender-cvs] [d0b58a0926a] cycles_procedural_api: fix crash setting particle systems on objects
Kévin Dietrich
noreply at git.blender.org
Tue Oct 6 07:19:00 CEST 2020
Commit: d0b58a0926a09393575b6f670ae47d8b5b3a881a
Author: Kévin Dietrich
Date: Tue Oct 6 05:25:19 2020 +0200
Branches: cycles_procedural_api
https://developer.blender.org/rBd0b58a0926a09393575b6f670ae47d8b5b3a881a
fix crash setting particle systems on objects
===================================================================
M intern/cycles/render/object.h
===================================================================
diff --git a/intern/cycles/render/object.h b/intern/cycles/render/object.h
index 5a53991ed23..0131fe1b6a0 100644
--- a/intern/cycles/render/object.h
+++ b/intern/cycles/render/object.h
@@ -18,6 +18,11 @@
#define __OBJECT_H__
#include "graph/node.h"
+
+/* included as Object::set_particle_system defined through NODE_PUBLIC_API does
+ * not select the right Node::set overload as it does not know that ParticleSystem
+ * is a Node */
+#include "render/particles.h"
#include "render/scene.h"
#include "util/util_array.h"
More information about the Bf-blender-cvs
mailing list