WIP: Refractor: Compositor: Render layer node to dynamic declaration #114629

Draft
Amine Bensalem wants to merge 18 commits from HamilcarR/blender:nodes-108728-cmp_node_r_layers into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

18 Commits

Author SHA1 Message Date
Amine Bensalem 5f6bfb219d format 2024-03-01 12:28:13 +01:00
Amine Bensalem 4748727b7e Merge branch 'main' into nodes-108728-cmp_node_r_layers 2024-03-01 08:15:50 +01:00
Amine Bensalem b29d2a3815 image and alpha sockets created only with RE_PASSNAME_COMBINED 2024-03-01 08:13:58 +01:00
Amine Bensalem 744d37c98c Cleanup : Removed unused function declarations 2024-02-11 11:46:07 +01:00
Amine Bensalem f30447ad0f Refractor : Removed call to node_cmp_rlayers_outputs
Moved update_node_declaration_and_sockets to ntreeCompositUpdateLayers
2024-02-11 11:11:14 +01:00
Amine Bensalem ee2bab5a3d Cleanup : Removed useless assert 2024-02-11 00:16:31 +01:00
Amine Bensalem 56506a2b08 Cleanup: Removed call to node_type_storage() 2024-02-10 20:34:19 +01:00
Amine Bensalem 9f553ec86d Merge branch 'main' into nodes-108728-cmp_node_r_layers
# Conflicts:
#	source/blender/nodes/composite/nodes/node_composite_image.cc
2024-02-10 11:31:59 +01:00
Amine Bensalem 5313e82181 Fix Compositor crash due to incorrect socket identifiers 2023-11-26 13:23:34 +01:00
Amine Bensalem 8b188f0697 Cleanup : use socket names to check for combined rpass compatibility 2023-11-26 04:56:57 +01:00
Amine Bensalem 2c2a7dda5b Replaced dynamic declare callback by dynamic callback.
Updated for PR #113742 compatibility
2023-11-26 04:56:57 +01:00
Amine Bensalem e8a548c91c CLEANUP : Formating 2023-11-26 04:56:57 +01:00
Amine Bensalem 00fa5ea612 CLEANUP : comment out unused function argument 2023-11-26 04:56:57 +01:00
Amine Bensalem 0c5be5babb CLEANUP : removed unecessary condition checks 2023-11-26 04:56:57 +01:00
Amine Bensalem 6da1a1e0fa Refractor #108728: Removed now unused socket creation code.
1) Removed socket storage allocation in initfunc_api function.

2) Replaced manual free and copy functions for rlayer node , with
   node_free_standard_storage() and node_copy_standard_storage().

3) Removed the socket creation code that was shared with the Image node.

4) RenderLayersNode::test_render_link() now uses socket identifiers
   instead of socket storage to check socket types.

5) NodeImageLayer structure is no longer used as socket storage data.
2023-11-26 04:56:57 +01:00
Amine Bensalem ebf1438d3f cmp_nodes #108728 : Added declare dynamic function 2023-11-26 04:56:57 +01:00
Amine Bensalem dc1ac95166 CLEANUP : deleted static NodeDeclaration array 2023-11-26 04:56:57 +01:00
Amine Bensalem 1053163c7d started implementing declare_dynamic 2023-11-26 04:56:57 +01:00