Code refactor: make Transform always affine, dropping last row.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 8 Mar 2018 05:48:14 +0000 (06:48 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Sat, 10 Mar 2018 03:54:05 +0000 (04:54 +0100)
commitb66efbecf4780c65833f72ac8de5d18b5bca7e15
tree58f258df9e797f55ad1a77082115989df147e6db
parent623141f339d5066ed6b96ad70ab45fb294e3e612
Code refactor: make Transform always affine, dropping last row.

This save a little memory and copying in the kernel by storing only a 4x3
matrix instead of a 4x4 matrix. We already did this in a few places, and
those don't need to be special exceptions anymore now.
25 files changed:
intern/cycles/app/cycles_xml.cpp
intern/cycles/blender/blender_camera.cpp
intern/cycles/blender/blender_util.h
intern/cycles/graph/node_type.cpp
intern/cycles/graph/node_xml.cpp
intern/cycles/kernel/bvh/bvh_nodes.h
intern/cycles/kernel/geom/geom_attribute.h
intern/cycles/kernel/geom/geom_curve_intersect.h
intern/cycles/kernel/geom/geom_object.h
intern/cycles/kernel/kernel_textures.h
intern/cycles/kernel/kernel_types.h
intern/cycles/kernel/osl/osl_services.cpp
intern/cycles/kernel/svm/svm_mapping.h
intern/cycles/kernel/svm/svm_tex_coord.h
intern/cycles/kernel/svm/svm_voxel.h
intern/cycles/render/light.cpp
intern/cycles/render/mesh.cpp
intern/cycles/render/nodes.cpp
intern/cycles/render/object.cpp
intern/cycles/render/object.h
intern/cycles/render/osl.cpp
intern/cycles/render/scene.h
intern/cycles/util/util_projection.h
intern/cycles/util/util_transform.cpp
intern/cycles/util/util_transform.h