Refactoring: Nodes: Dynamic declaration for dynamically-typed function nodes #113492

Open
Iliya Katushenock wants to merge 4 commits from mod_moder/blender:refactoring_declaration_in_function_nodes into main

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

Continue of #113553.

Continue of #113553.
Iliya Katushenock added 1 commit 2023-10-10 14:18:14 +02:00
Member

I created a patch that allows us to do this change without breaking forward compatibility: #113497.

Best you focus on the nodes that use these suffixes like _001 or _Vector for sockets, since those need the compatibility patch most.

I created a patch that allows us to do this change without breaking forward compatibility: #113497. Best you focus on the nodes that use these suffixes like `_001` or `_Vector` for sockets, since those need the compatibility patch most.
Iliya Katushenock changed title from WIP: Refactoring: Geometry Nodes: Dynamic declaration of node instead of update function to WIP: Refactoring: Function Nodes: Dynamic declaration of node instead of update function 2023-10-11 17:35:40 +02:00
Iliya Katushenock changed title from WIP: Refactoring: Function Nodes: Dynamic declaration of node instead of update function to WIP: Refactoring: Nodes: Dynamic declaration of node instead of update function 2023-10-12 21:34:16 +02:00
Iliya Katushenock added 2 commits 2023-11-18 12:18:51 +01:00
Iliya Katushenock added 1 commit 2023-11-18 13:05:01 +01:00
Iliya Katushenock changed title from WIP: Refactoring: Nodes: Dynamic declaration of node instead of update function to Refactoring: Nodes: Dynamic declaration for dynamically-typed function nodes 2023-11-18 13:05:41 +01:00
Iliya Katushenock added this to the Nodes & Physics project 2023-11-18 13:06:08 +01:00
Iliya Katushenock requested review from Jacques Lucke 2023-11-18 13:06:13 +01:00
Iliya Katushenock added the
Interest
Geometry Nodes
label 2023-11-18 13:06:20 +01:00
Jacques Lucke reviewed 2023-11-21 11:28:47 +01:00
@ -25,0 +24,4 @@
if (node != nullptr) {
const NodeCombSepColor &storage = node_storage(*node);
const NodeCombSepColorMode mode = NodeCombSepColorMode(storage.mode);
switch (mode) {
Member

I'm not sure about this kind of refactor yet, because it's something that is not supported by node groups and doesn't work if we expose the mode as menu socket.

I'm not sure about this kind of refactor yet, because it's something that is not supported by node groups and doesn't work if we expose the mode as menu socket.
Author
Member

That is what i tolk about eval-depend topology, we should't do this for such enumerations. Potentially, this node can be splitted in to multiple small atomic nodes at all.
Enums is good for switch and generic-socket type. But all other enums, usually, should be static.

That is what i tolk about `eval-depend topology`, we should't do this for such enumerations. Potentially, this node can be splitted in to multiple small atomic nodes at all. Enums is good for switch and generic-socket type. But all other enums, usually, should be static.
Member

Generally, I agree, but we also want to work towards feature parity between built-in nodes and node groups.
Note that I'm not suggesting to actually expose the enum as socket here, but I also don't want to do this with the declaration for now.

Generally, I agree, but we also want to work towards feature parity between built-in nodes and node groups. Note that I'm not suggesting to actually expose the enum as socket here, but I also don't want to do this with the declaration for now.
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u refactoring_declaration_in_function_nodes:mod_moder-refactoring_declaration_in_function_nodes
git checkout mod_moder-refactoring_declaration_in_function_nodes
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113492
No description provided.