Blender Git Commit Log
Git Commits -> Revision 31a620b
Revision 31a620b by Kévin Dietrich (master) November 4, 2020, 12:03 (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: 31a620b9420cab6292b0aa1ea21c9dd1cf70b8bc
Parent Commit: a4a848d
Lines Changed: +2388, -1782
61 Modified Paths:
/intern/cycles/blender/blender_camera.cpp (+75, -66) (Diff)
/intern/cycles/blender/blender_curves.cpp (+41, -31) (Diff)
/intern/cycles/blender/blender_geometry.cpp (+7, -6) (Diff)
/intern/cycles/blender/blender_light.cpp (+53, -53) (Diff)
/intern/cycles/blender/blender_mesh.cpp (+85, -71) (Diff)
/intern/cycles/blender/blender_object.cpp (+49, -61) (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 (+224, -202) (Diff)
/intern/cycles/blender/blender_sync.cpp (+97, -97) (Diff)
/intern/cycles/blender/blender_sync.h (+1, -1) (Diff)
/intern/cycles/blender/blender_volume.cpp (+4, -4) (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 (+81, -5) (Diff)
/intern/cycles/graph/node.h (+66, -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 (+79, -65) (Diff)
/intern/cycles/render/geometry.h (+29, -5) (Diff)
/intern/cycles/render/graph.cpp (+11, -11) (Diff)
/intern/cycles/render/hair.cpp (+9, -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 (+65, -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 (+11, -9) (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 (+41, -31) (Diff)
/intern/cycles/blender/blender_geometry.cpp (+7, -6) (Diff)
/intern/cycles/blender/blender_light.cpp (+53, -53) (Diff)
/intern/cycles/blender/blender_mesh.cpp (+85, -71) (Diff)
/intern/cycles/blender/blender_object.cpp (+49, -61) (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 (+224, -202) (Diff)
/intern/cycles/blender/blender_sync.cpp (+97, -97) (Diff)
/intern/cycles/blender/blender_sync.h (+1, -1) (Diff)
/intern/cycles/blender/blender_volume.cpp (+4, -4) (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 (+81, -5) (Diff)
/intern/cycles/graph/node.h (+66, -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 (+79, -65) (Diff)
/intern/cycles/render/geometry.h (+29, -5) (Diff)
/intern/cycles/render/graph.cpp (+11, -11) (Diff)
/intern/cycles/render/hair.cpp (+9, -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 (+65, -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 (+11, -9) (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)