Blender Git Commit Log
Git Commits -> Revision 527f8b3
Revision 527f8b3 by Kévin Dietrich (master) October 26, 2020, 22:11 (GMT) |
Cycles API: encapsulate Node socket members This encapsulates Node socket members behind a set of specific methods; as such it is no longer possible to directly access Node class members from exporters and parts of Cycles. The methods are defined via the NODE_SOCKET_API macros in `graph/ node.h`, and are for getting or setting a specific socket's value, as well as querying or modifying the state of its update flag. The setters will check whether the value has changed and tag the socket as modified appropriately. This will let us know how a Node has changed and what to update, which is the first concrete step toward a more granular scene update system. Since the setters will tag the Node sockets as modified when passed different data, this patch also removes the various `modified` methods on Nodes in favor of `Node::is_modified` which checks the sockets' update flags status. Reviewed By: brecht Maniphest Tasks: T79174 Differential Revision: https://developer.blender.org/D8544 |
Commit Details:
Full Hash: 527f8b32b32187f754e5b176db6377736f9cb8ff
Parent Commit: d6180dd
Lines Changed: +2366, -1789
61 Modified Paths:
/intern/cycles/blender/blender_camera.cpp (+75, -66) (Diff)
/intern/cycles/blender/blender_curves.cpp (+38, -33) (Diff)
/intern/cycles/blender/blender_geometry.cpp (+6, -5) (Diff)
/intern/cycles/blender/blender_light.cpp (+53, -53) (Diff)
/intern/cycles/blender/blender_mesh.cpp (+82, -73) (Diff)
/intern/cycles/blender/blender_object.cpp (+48, -60) (Diff)
/intern/cycles/blender/blender_object_cull.cpp (+3, -3) (Diff)
/intern/cycles/blender/blender_particles.cpp (+8, -6) (Diff)
/intern/cycles/blender/blender_session.cpp (+17, -16) (Diff)
/intern/cycles/blender/blender_shader.cpp (+223, -201) (Diff)
/intern/cycles/blender/blender_sync.cpp (+93, -97) (Diff)
/intern/cycles/blender/blender_sync.h (+4, -4) (Diff)
/intern/cycles/blender/blender_volume.cpp (+6, -8) (Diff)
/intern/cycles/bvh/bvh.cpp (+10, -10) (Diff)
/intern/cycles/bvh/bvh_build.cpp (+18, -18) (Diff)
/intern/cycles/bvh/bvh_embree.cpp (+29, -28) (Diff)
/intern/cycles/bvh/bvh_optix.cpp (+8, -8) (Diff)
/intern/cycles/bvh/bvh_split.cpp (+10, -9) (Diff)
/intern/cycles/bvh/bvh_unaligned.cpp (+4, -4) (Diff)
/intern/cycles/device/device_optix.cpp (+39, -34) (Diff)
/intern/cycles/graph/node.cpp (+80, -5) (Diff)
/intern/cycles/graph/node.h (+61, -0) (Diff)
/intern/cycles/render/attribute.cpp (+18, -18) (Diff)
/intern/cycles/render/background.cpp (+4, -10) (Diff)
/intern/cycles/render/background.h (+10, -13) (Diff)
/intern/cycles/render/bake.cpp (+8, -7) (Diff)
/intern/cycles/render/camera.cpp (+40, -36) (Diff)
/intern/cycles/render/camera.h (+60, -43) (Diff)
/intern/cycles/render/film.cpp (+47, -18) (Diff)
/intern/cycles/render/film.h (+28, -24) (Diff)
/intern/cycles/render/geometry.cpp (+77, -65) (Diff)
/intern/cycles/render/geometry.h (+29, -5) (Diff)
/intern/cycles/render/graph.cpp (+11, -11) (Diff)
/intern/cycles/render/hair.cpp (+3, -2) (Diff)
/intern/cycles/render/hair.h (+4, -4) (Diff)
/intern/cycles/render/image.cpp (+1, -1) (Diff)
/intern/cycles/render/image.h (+1, -1) (Diff)
/intern/cycles/render/integrator.cpp (+5, -11) (Diff)
/intern/cycles/render/integrator.h (+34, -37) (Diff)
/intern/cycles/render/light.cpp (+48, -50) (Diff)
/intern/cycles/render/light.h (+33, -27) (Diff)
/intern/cycles/render/mesh.cpp (+140, -25) (Diff)
/intern/cycles/render/mesh.h (+66, -14) (Diff)
/intern/cycles/render/mesh_displace.cpp (+10, -9) (Diff)
/intern/cycles/render/mesh_subdivision.cpp (+38, -31) (Diff)
/intern/cycles/render/nodes.cpp (+77, -70) (Diff)
/intern/cycles/render/nodes.h (+380, -281) (Diff)
/intern/cycles/render/object.cpp (+44, -31) (Diff)
/intern/cycles/render/object.h (+23, -18) (Diff)
/intern/cycles/render/osl.cpp (+5, -5) (Diff)
/intern/cycles/render/scene.cpp (+21, -19) (Diff)
/intern/cycles/render/session.cpp (+12, -15) (Diff)
/intern/cycles/render/shader.cpp (+27, -24) (Diff)
/intern/cycles/render/shader.h (+12, -12) (Diff)
/intern/cycles/render/svm.cpp (+5, -5) (Diff)
/intern/cycles/render/volume.cpp (+10, -8) (Diff)
/intern/cycles/render/volume.h (+3, -3) (Diff)
/intern/cycles/subd/subd_dice.cpp (+3, -3) (Diff)
/intern/cycles/subd/subd_split.cpp (+6, -6) (Diff)
/intern/cycles/test/render_graph_finalize_test.cpp (+88, -86) (Diff)
/intern/cycles/util/util_array.h (+20, -0) (Diff)
/intern/cycles/blender/blender_curves.cpp (+38, -33) (Diff)
/intern/cycles/blender/blender_geometry.cpp (+6, -5) (Diff)
/intern/cycles/blender/blender_light.cpp (+53, -53) (Diff)
/intern/cycles/blender/blender_mesh.cpp (+82, -73) (Diff)
/intern/cycles/blender/blender_object.cpp (+48, -60) (Diff)
/intern/cycles/blender/blender_object_cull.cpp (+3, -3) (Diff)
/intern/cycles/blender/blender_particles.cpp (+8, -6) (Diff)
/intern/cycles/blender/blender_session.cpp (+17, -16) (Diff)
/intern/cycles/blender/blender_shader.cpp (+223, -201) (Diff)
/intern/cycles/blender/blender_sync.cpp (+93, -97) (Diff)
/intern/cycles/blender/blender_sync.h (+4, -4) (Diff)
/intern/cycles/blender/blender_volume.cpp (+6, -8) (Diff)
/intern/cycles/bvh/bvh.cpp (+10, -10) (Diff)
/intern/cycles/bvh/bvh_build.cpp (+18, -18) (Diff)
/intern/cycles/bvh/bvh_embree.cpp (+29, -28) (Diff)
/intern/cycles/bvh/bvh_optix.cpp (+8, -8) (Diff)
/intern/cycles/bvh/bvh_split.cpp (+10, -9) (Diff)
/intern/cycles/bvh/bvh_unaligned.cpp (+4, -4) (Diff)
/intern/cycles/device/device_optix.cpp (+39, -34) (Diff)
/intern/cycles/graph/node.cpp (+80, -5) (Diff)
/intern/cycles/graph/node.h (+61, -0) (Diff)
/intern/cycles/render/attribute.cpp (+18, -18) (Diff)
/intern/cycles/render/background.cpp (+4, -10) (Diff)
/intern/cycles/render/background.h (+10, -13) (Diff)
/intern/cycles/render/bake.cpp (+8, -7) (Diff)
/intern/cycles/render/camera.cpp (+40, -36) (Diff)
/intern/cycles/render/camera.h (+60, -43) (Diff)
/intern/cycles/render/film.cpp (+47, -18) (Diff)
/intern/cycles/render/film.h (+28, -24) (Diff)
/intern/cycles/render/geometry.cpp (+77, -65) (Diff)
/intern/cycles/render/geometry.h (+29, -5) (Diff)
/intern/cycles/render/graph.cpp (+11, -11) (Diff)
/intern/cycles/render/hair.cpp (+3, -2) (Diff)
/intern/cycles/render/hair.h (+4, -4) (Diff)
/intern/cycles/render/image.cpp (+1, -1) (Diff)
/intern/cycles/render/image.h (+1, -1) (Diff)
/intern/cycles/render/integrator.cpp (+5, -11) (Diff)
/intern/cycles/render/integrator.h (+34, -37) (Diff)
/intern/cycles/render/light.cpp (+48, -50) (Diff)
/intern/cycles/render/light.h (+33, -27) (Diff)
/intern/cycles/render/mesh.cpp (+140, -25) (Diff)
/intern/cycles/render/mesh.h (+66, -14) (Diff)
/intern/cycles/render/mesh_displace.cpp (+10, -9) (Diff)
/intern/cycles/render/mesh_subdivision.cpp (+38, -31) (Diff)
/intern/cycles/render/nodes.cpp (+77, -70) (Diff)
/intern/cycles/render/nodes.h (+380, -281) (Diff)
/intern/cycles/render/object.cpp (+44, -31) (Diff)
/intern/cycles/render/object.h (+23, -18) (Diff)
/intern/cycles/render/osl.cpp (+5, -5) (Diff)
/intern/cycles/render/scene.cpp (+21, -19) (Diff)
/intern/cycles/render/session.cpp (+12, -15) (Diff)
/intern/cycles/render/shader.cpp (+27, -24) (Diff)
/intern/cycles/render/shader.h (+12, -12) (Diff)
/intern/cycles/render/svm.cpp (+5, -5) (Diff)
/intern/cycles/render/volume.cpp (+10, -8) (Diff)
/intern/cycles/render/volume.h (+3, -3) (Diff)
/intern/cycles/subd/subd_dice.cpp (+3, -3) (Diff)
/intern/cycles/subd/subd_split.cpp (+6, -6) (Diff)
/intern/cycles/test/render_graph_finalize_test.cpp (+88, -86) (Diff)
/intern/cycles/util/util_array.h (+20, -0) (Diff)