forked from bartvdbraak/blender
28604c46a1
Basically the idea is to make code robust against extending enum options in the future by falling back to a known safe default setting when RNA is set to something unknown. While this approach solves the issues similar to T47377, but it wouldn't really help when/if any of the RNA values gets ever deprecated and removed. There'll be no simple solution to that apart from defining explicit mapping from RNA value to Cycles one. Another part which isn't so great actually is that we now have to have some enum guards and give some explicit values to the enum items, but we can live with that perhaps. Reviewers: dingto, juicyfruit, lukasstockner97, brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D1785 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
device_cpu.cpp | ||
device_cuda.cpp | ||
device_intern.h | ||
device_memory.h | ||
device_multi.cpp | ||
device_network.cpp | ||
device_network.h | ||
device_opencl.cpp | ||
device_task.cpp | ||
device_task.h | ||
device.cpp | ||
device.h |