blender/intern/cycles/render/CMakeLists.txt
Lukas Toenne f0d2477484 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.
2012-08-31 17:27:08 +00:00

70 lines
825 B
CMake

set(INC
.
../device
../kernel
../kernel/svm
../kernel/osl
../bvh
../util
${GLEW_INCLUDE_PATH}
)
set(SRC
attribute.cpp
background.cpp
buffers.cpp
camera.cpp
film.cpp
# film_response.cpp (code unused)
filter.cpp
graph.cpp
image.cpp
integrator.cpp
light.cpp
mesh.cpp
mesh_displace.cpp
nodes.cpp
object.cpp
osl.cpp
particles.cpp
scene.cpp
session.cpp
shader.cpp
sobol.cpp
svm.cpp
tile.cpp
)
set(SRC_HEADERS
attribute.h
background.h
buffers.h
camera.h
film.h
# film_response.h (code unused)
filter.h
graph.h
image.h
integrator.h
light.h
mesh.h
nodes.h
object.h
osl.h
particles.h
scene.h
session.h
shader.h
sobol.h
svm.h
tile.h
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RTTI_DISABLE_FLAGS}")
include_directories(${INC})
add_library(cycles_render ${SRC} ${SRC_HEADERS})