Blender Git Loki

Git Commits -> Revision 0579eaa

Revision 0579eaa by Sergey Sharybin (master)
March 29, 2017, 11:41 (GMT)
Cycles: Make all #include statements relative to cycles source directory

The idea is to make include statements more explicit and obvious where the
file is coming from, additionally reducing chance of wrong header being
picked up.

For example, it was not obvious whether bvh.h was refferring to builder
or traversal, whenter node.h is a generic graph node or a shader node
and cases like that.

Surely this might look obvious for the active developers, but after some
time of not touching the code it becomes less obvious where file is coming
from.

This was briefly mentioned in T50824 and seems @brecht is fine with such
explicitness, but need to agree with all active developers before committing
this.

Please note that this patch is lacking changes related on GPU/OpenCL
support. This will be solved if/when we all agree this is a good idea to move
forward.

Reviewers: brecht, lukasstockner97, maiself, nirved, dingto, juicyfruit, swerner

Reviewed By: lukasstockner97, maiself, nirved, dingto

Subscribers: brecht

Differential Revision: https://developer.blender.org/D2586

Commit Details:

Full Hash: 0579eaae1f7afd2e40ad525fe97de7c4be2a9a1e
Parent Commit: 61db9ee
Lines Changed: +1480, -1523

233 Modified Paths:

/intern/cycles/blender/blender_camera.cpp (+5, -5) (Diff)
/intern/cycles/blender/blender_curves.cpp (+12, -12) (Diff)
/intern/cycles/blender/blender_logging.cpp (+2, -2) (Diff)
/intern/cycles/blender/blender_mesh.cpp (+16, -16) (Diff)
/intern/cycles/blender/blender_object.cpp (+18, -18) (Diff)
/intern/cycles/blender/blender_object_cull.cpp (+2, -2) (Diff)
/intern/cycles/blender/blender_object_cull.h (+2, -2) (Diff)
/intern/cycles/blender/blender_particles.cpp (+6, -6) (Diff)
/intern/cycles/blender/blender_python.cpp (+11, -11) (Diff)
/intern/cycles/blender/blender_session.cpp (+24, -24) (Diff)
/intern/cycles/blender/blender_session.h (+5, -5) (Diff)
/intern/cycles/blender/blender_shader.cpp (+15, -15) (Diff)
/intern/cycles/blender/blender_sync.cpp (+23, -23) (Diff)
/intern/cycles/blender/blender_sync.h (+7, -7) (Diff)
/intern/cycles/blender/blender_texture.cpp (+1, -1) (Diff)
/intern/cycles/blender/blender_texture.h (+1, -1) (Diff)
/intern/cycles/blender/blender_util.h (+9, -9) (Diff)
/intern/cycles/blender/CMakeLists.txt (+1, -7) (Diff)
/intern/cycles/bvh/bvh.cpp (+19, -19) (Diff)
/intern/cycles/bvh/bvh.h (+3, -3) (Diff)
/intern/cycles/bvh/bvh_binning.cpp (+4, -4) (Diff)
/intern/cycles/bvh/bvh_binning.h (+3, -3) (Diff)
/intern/cycles/bvh/bvh_build.cpp (+18, -18) (Diff)
/intern/cycles/bvh/bvh_build.h (+6, -6) (Diff)
/intern/cycles/bvh/bvh_node.cpp (+5, -5) (Diff)
/intern/cycles/bvh/bvh_node.h (+3, -3) (Diff)
/intern/cycles/bvh/bvh_params.h (+2, -2) (Diff)
/intern/cycles/bvh/bvh_sort.cpp (+5, -5) (Diff)
/intern/cycles/bvh/bvh_split.cpp (+6, -6) (Diff)
/intern/cycles/bvh/bvh_split.h (+2, -2) (Diff)
/intern/cycles/bvh/bvh_unaligned.cpp (+7, -7) (Diff)
/intern/cycles/bvh/bvh_unaligned.h (+1, -1) (Diff)
/intern/cycles/bvh/CMakeLists.txt (+1, -7) (Diff)
/intern/cycles/device/CMakeLists.txt (+1, -8) (Diff)
/intern/cycles/device/device.cpp (+12, -12) (Diff)
/intern/cycles/device/device.h (+9, -9) (Diff)
/intern/cycles/device/device_cpu.cpp (+21, -21) (Diff)
/intern/cycles/device/device_cuda.cpp (+20, -20) (Diff)
/intern/cycles/device/device_memory.h (+4, -4) (Diff)
/intern/cycles/device/device_multi.cpp (+9, -9) (Diff)
/intern/cycles/device/device_network.cpp (+5, -5) (Diff)
/intern/cycles/device/device_network.h (+5, -5) (Diff)
/intern/cycles/device/device_opencl.cpp (+4, -4) (Diff)
/intern/cycles/device/device_split_kernel.cpp (+4, -4) (Diff)
/intern/cycles/device/device_split_kernel.h (+2, -2) (Diff)
/intern/cycles/device/device_task.cpp (+4, -4) (Diff)
/intern/cycles/device/device_task.h (+4, -4) (Diff)
/intern/cycles/device/opencl/opencl.h (+4, -4) (Diff)
/intern/cycles/device/opencl/opencl_base.cpp (+9, -9) (Diff)
/intern/cycles/device/opencl/opencl_mega.cpp (+7, -7) (Diff)
/intern/cycles/device/opencl/opencl_split.cpp (+11, -11) (Diff)
/intern/cycles/device/opencl/opencl_util.cpp (+9, -9) (Diff)
/intern/cycles/graph/CMakeLists.txt (+1, -2) (Diff)
/intern/cycles/graph/node.cpp (+5, -5) (Diff)
/intern/cycles/graph/node.h (+4, -4) (Diff)
/intern/cycles/graph/node_enum.h (+2, -2) (Diff)
/intern/cycles/graph/node_type.cpp (+3, -3) (Diff)
/intern/cycles/graph/node_type.h (+5, -5) (Diff)
/intern/cycles/graph/node_xml.cpp (+4, -4) (Diff)
/intern/cycles/graph/node_xml.h (+4, -4) (Diff)
/intern/cycles/kernel/bvh/bvh.h (+21, -21) (Diff)
/intern/cycles/kernel/bvh/bvh_shadow_all.h (+1, -1) (Diff)
/intern/cycles/kernel/bvh/bvh_subsurface.h (+1, -1) (Diff)
/intern/cycles/kernel/bvh/bvh_traversal.h (+1, -1) (Diff)
/intern/cycles/kernel/bvh/bvh_volume.h (+1, -1) (Diff)
/intern/cycles/kernel/bvh/bvh_volume_all.h (+1, -1) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+15, -15) (Diff)
/intern/cycles/kernel/closure/bsdf_microfacet_multi.h (+3, -3) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+31, -35) (Diff)
/intern/cycles/kernel/geom/geom.h (+13, -13) (Diff)
/intern/cycles/kernel/kernel.h (+8, -8) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_avx.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_avx2.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_impl.h (+28, -28) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_split.cpp (+2, -2) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_split_avx.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_split_avx2.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_split_sse2.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_split_sse3.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_split_sse41.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_sse2.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_sse3.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_sse41.cpp (+3, -3) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel.cu (+8, -8) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel_split.cu (+20, -20) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel.cl (+29, -29) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_buffer_update.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_data_init.cl (+5, -5) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_direct_lighting.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_do_volume.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_holdout_emission_blurring_pathtermination_ao.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_indirect_background.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_indirect_subsurface.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_lamp_emission.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_next_iteration_setup.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_path_init.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_queue_enqueue.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_scene_intersect.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_shader_eval.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_shadow_blocked_ao.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_shadow_blocked_dl.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_split.cl (+17, -17) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_state_buffer_size.cl (+2, -2) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_subsurface_scatter.cl (+3, -3) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+6, -6) (Diff)
/intern/cycles/kernel/kernel_compat_cuda.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_compat_opencl.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_globals.h (+3, -3) (Diff)
/intern/cycles/kernel/kernel_math.h (+6, -7) (Diff)
/intern/cycles/kernel/kernel_path.h (+22, -22) (Diff)
/intern/cycles/kernel/kernel_path_common.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_random.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_shader.h (+5, -5) (Diff)
/intern/cycles/kernel/kernel_types.h (+3, -3) (Diff)
/intern/cycles/kernel/osl/background.cpp (+3, -3) (Diff)
/intern/cycles/kernel/osl/bsdf_diffuse_ramp.cpp (+6, -6) (Diff)
/intern/cycles/kernel/osl/bsdf_phong_ramp.cpp (+5, -5) (Diff)
/intern/cycles/kernel/osl/CMakeLists.txt (+1, -7) (Diff)
/intern/cycles/kernel/osl/emissive.cpp (+5, -5) (Diff)
/intern/cycles/kernel/osl/osl_bssrdf.cpp (+7, -7) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+28, -28) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+2, -2) (Diff)
/intern/cycles/kernel/osl/osl_globals.h (+4, -4) (Diff)
/intern/cycles/kernel/osl/osl_services.cpp (+28, -28) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+12, -12) (Diff)
/intern/cycles/kernel/osl/osl_shader.h (+1, -1) (Diff)
/intern/cycles/kernel/split/kernel_data_init.h (+2, -2) (Diff)
/intern/cycles/kernel/split/kernel_split_common.h (+31, -31) (Diff)
/intern/cycles/kernel/split/kernel_split_data.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm.h (+42, -42) (Diff)
/intern/cycles/render/attribute.cpp (+6, -6) (Diff)
/intern/cycles/render/attribute.h (+5, -5) (Diff)
/intern/cycles/render/background.cpp (+11, -11) (Diff)
/intern/cycles/render/background.h (+2, -2) (Diff)
/intern/cycles/render/bake.cpp (+2, -2) (Diff)
/intern/cycles/render/bake.h (+4, -4) (Diff)
/intern/cycles/render/buffers.cpp (+11, -11) (Diff)
/intern/cycles/render/buffers.h (+7, -7) (Diff)
/intern/cycles/render/camera.cpp (+12, -12) (Diff)
/intern/cycles/render/camera.h (+5, -5) (Diff)
/intern/cycles/render/CMakeLists.txt (+1, -9) (Diff)
/intern/cycles/render/constant_fold.cpp (+4, -4) (Diff)
/intern/cycles/render/constant_fold.h (+2, -2) (Diff)
/intern/cycles/render/curves.cpp (+10, -10) (Diff)
/intern/cycles/render/curves.h (+2, -2) (Diff)
/intern/cycles/render/film.cpp (+13, -13) (Diff)
/intern/cycles/render/film.h (+4, -4) (Diff)
/intern/cycles/render/graph.cpp (+12, -12) (Diff)
/intern/cycles/render/graph.h (+9, -9) (Diff)
/intern/cycles/render/image.cpp (+9, -9) (Diff)
/intern/cycles/render/image.h (+6, -6) (Diff)
/intern/cycles/render/integrator.cpp (+10, -10) (Diff)
/intern/cycles/render/integrator.h (+2, -2) (Diff)
/intern/cycles/render/light.cpp (+13, -13) (Diff)
/intern/cycles/render/light.h (+4, -4) (Diff)
/intern/cycles/render/mesh.cpp (+23, -23) (Diff)
/intern/cycles/render/mesh.h (+12, -11) (Diff)
/intern/cycles/render/mesh_displace.cpp (+7, -7) (Diff)
/intern/cycles/render/mesh_subdivision.cpp (+8, -8) (Diff)
/intern/cycles/render/nodes.cpp (+15, -15) (Diff)
/intern/cycles/render/nodes.h (+3, -3) (Diff)
/intern/cycles/render/object.cpp (+16, -16) (Diff)
/intern/cycles/render/object.h (+8, -8) (Diff)
/intern/cycles/render/osl.cpp (+15, -15) (Diff)
/intern/cycles/render/osl.h (+6, -6) (Diff)
/intern/cycles/render/particles.cpp (+9, -9) (Diff)
/intern/cycles/render/particles.h (+2, -2) (Diff)
/intern/cycles/render/scene.cpp (+21, -21) (Diff)
/intern/cycles/render/scene.h (+12, -12) (Diff)
/intern/cycles/render/session.cpp (+18, -18) (Diff)
/intern/cycles/render/session.h (+9, -9) (Diff)
/intern/cycles/render/shader.cpp (+16, -16) (Diff)
/intern/cycles/render/shader.h (+9, -9) (Diff)
/intern/cycles/render/sobol.cpp (+3, -3) (Diff)
/intern/cycles/render/sobol.h (+1, -1) (Diff)
/intern/cycles/render/svm.cpp (+14, -14) (Diff)
/intern/cycles/render/svm.h (+6, -6) (Diff)
/intern/cycles/render/tables.cpp (+5, -5) (Diff)
/intern/cycles/render/tables.h (+1, -1) (Diff)
/intern/cycles/render/tile.cpp (+3, -3) (Diff)
/intern/cycles/render/tile.h (+2, -2) (Diff)
/intern/cycles/subd/CMakeLists.txt (+1, -6) (Diff)
/intern/cycles/subd/subd_dice.cpp (+5, -5) (Diff)
/intern/cycles/subd/subd_dice.h (+2, -2) (Diff)
/intern/cycles/subd/subd_patch.cpp (+4, -4) (Diff)
/intern/cycles/subd/subd_patch.h (+2, -2) (Diff)
/intern/cycles/subd/subd_patch_table.cpp (+3, -3) (Diff)
/intern/cycles/subd/subd_patch_table.h (+2, -2) (Diff)
/intern/cycles/subd/subd_split.cpp (+8, -8) (Diff)
/intern/cycles/subd/subd_split.h (+3, -3) (Diff)
/intern/cycles/util/CMakeLists.txt (+1, -1) (Diff)
/intern/cycles/util/util_aligned_malloc.cpp (+2, -2) (Diff)
/intern/cycles/util/util_aligned_malloc.h (+1, -1) (Diff)
/intern/cycles/util/util_boundbox.h (+4, -4) (Diff)
/intern/cycles/util/util_color.h (+3, -3) (Diff)
/intern/cycles/util/util_debug.cpp (+3, -3) (Diff)
/intern/cycles/util/util_debug.h (+1, -1) (Diff)
/intern/cycles/util/util_guarded_allocator.cpp (+2, -2) (Diff)
/intern/cycles/util/util_guarded_allocator.h (+2, -2) (Diff)
/intern/cycles/util/util_half.h (+3, -3) (Diff)
/intern/cycles/util/util_hash.h (+1, -1) (Diff)
/intern/cycles/util/util_image.h (+2, -2) (Diff)
/intern/cycles/util/util_image_impl.h (+4, -4) (Diff)
/intern/cycles/util/util_logging.cpp (+2, -2) (Diff)
/intern/cycles/util/util_math.h (+1, -1) (Diff)
/intern/cycles/util/util_math_cdf.cpp (+3, -3) (Diff)
/intern/cycles/util/util_math_cdf.h (+3, -3) (Diff)
/intern/cycles/util/util_md5.h (+2, -2) (Diff)
/intern/cycles/util/util_optimization.h (+1, -1) (Diff)
/intern/cycles/util/util_path.cpp (+5, -5) (Diff)
/intern/cycles/util/util_path.h (+4, -4) (Diff)
/intern/cycles/util/util_progress.h (+4, -4) (Diff)
/intern/cycles/util/util_simd.cpp (+1, -1) (Diff)
/intern/cycles/util/util_simd.h (+7, -7) (Diff)
/intern/cycles/util/util_sky_model.cpp (+2, -2) (Diff)
/intern/cycles/util/util_stack_allocator.h (+2, -2) (Diff)
/intern/cycles/util/util_stats.h (+1, -1) (Diff)
/intern/cycles/util/util_string.cpp (+3, -3) (Diff)
/intern/cycles/util/util_string.h (+1, -1) (Diff)
/intern/cycles/util/util_system.cpp (+5, -5) (Diff)
/intern/cycles/util/util_system.h (+1, -1) (Diff)
/intern/cycles/util/util_task.cpp (+6, -6) (Diff)
/intern/cycles/util/util_task.h (+4, -4) (Diff)
/intern/cycles/util/util_thread.cpp (+3, -3) (Diff)
/intern/cycles/util/util_thread.h (+1, -1) (Diff)
/intern/cycles/util/util_time.cpp (+2, -2) (Diff)
/intern/cycles/util/util_transform.cpp (+3, -3) (Diff)
/intern/cycles/util/util_transform.h (+2, -2) (Diff)
/intern/cycles/util/util_types.h (+1, -1) (Diff)
/intern/cycles/util/util_vector.h (+3, -3) (Diff)
/intern/cycles/util/util_view.cpp (+5, -5) (Diff)
/intern/cycles/util/util_windows.cpp (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021