Fix for #32184 and redesign of particle storage in Cycles.
authorLukas Toenne <lukas.toenne@googlemail.com>
Fri, 31 Aug 2012 17:27:08 +0000 (17:27 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Fri, 31 Aug 2012 17:27:08 +0000 (17:27 +0000)
commitf0d247748408bd10f49c54d3a28a925e37683c4b
treeb47851a73399e6b30c501550ec9024897d65c186
parent5ecff7a240514e8f16e17aa163c6f0055b9edaf2
Fix for #32184 and redesign of particle storage in Cycles.

The particle data used by the Particle Info node was stored in cycles as a list in each object. This is a problem when the particle emitter mesh is hidden: Objects in cycles are only intended as instances of renderable meshes, so when hiding the emitter mesh the particle data doesn't get stored either. Also the particle data can potentially be copied to multiple instances of the same object, which is a waste of texture space.

The solution in this patch is to make a completely separate list of particle systems in the Cycles scene data. This way the particle data can be generated even when the emitter object itself is not visible.
12 files changed:
intern/cycles/blender/blender_object.cpp
intern/cycles/blender/blender_particles.cpp
intern/cycles/blender/blender_sync.cpp
intern/cycles/blender/blender_sync.h
intern/cycles/blender/blender_util.h
intern/cycles/render/CMakeLists.txt
intern/cycles/render/object.cpp
intern/cycles/render/object.h
intern/cycles/render/particles.cpp [new file with mode: 0644]
intern/cycles/render/particles.h [new file with mode: 0644]
intern/cycles/render/scene.cpp
intern/cycles/render/scene.h