blender/intern/cycles/subd
Kévin Dietrich 31a620b942 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
2020-11-04 13:03:33 +01:00
..
CMakeLists.txt CMake: refresh building and external library handling of Cycles standalone 2020-09-04 17:10:50 +02:00
subd_dice.cpp Cycles API: encapsulate Node socket members 2020-11-04 13:03:33 +01:00
subd_dice.h Cycles: Stitching of subdivided and displaced meshes 2019-08-27 14:27:53 -04:00
subd_patch_table.cpp ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
subd_patch_table.h ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
subd_patch.cpp ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
subd_patch.h Cleanup: compiler warnings 2019-09-13 16:51:51 +02:00
subd_split.cpp Cycles API: encapsulate Node socket members 2020-11-04 13:03:33 +01:00
subd_split.h Cleanup: clang-format, spelling 2019-08-30 10:55:31 +10:00
subd_subpatch.h Cleanup: clang-format, spelling 2019-08-30 10:55:31 +10:00