Geometry Nodes: use dynamic declaration for switch node #113413

Merged
Hans Goudey merged 7 commits from JacquesLucke/blender:switch-dynamic-declaration into main 2023-12-13 17:33:35 +01:00
Member

Follow up for 8149678d5e. Significantly reduce boilerplate
required for each type in the switch node.Forward compatibility in 4.0
provided by 0ea193bdb3.

Follow up for 8149678d5e1d6e0d0066. Significantly reduce boilerplate required for each type in the switch node.Forward compatibility in 4.0 provided by 0ea193bdb3ad710ff881.
Jacques Lucke added 1 commit 2023-10-08 15:17:40 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
a739eeb4a5
use dynamic declaration for switch node
Author
Member

@blender-bot build

@blender-bot build
Jacques Lucke requested review from Hans Goudey 2023-10-08 15:41:22 +02:00
Jacques Lucke changed title from Geometry Nodes: use dynamic declaration for switch node to WIP: Geometry Nodes: use dynamic declaration for switch node 2023-10-08 15:41:38 +02:00
Hans Goudey added 2 commits 2023-12-13 16:15:34 +01:00
Hans Goudey changed title from WIP: Geometry Nodes: use dynamic declaration for switch node to Geometry Nodes: use dynamic declaration for switch node 2023-12-13 16:16:19 +01:00
Iliya Katushenock added this to the Nodes & Physics project 2023-12-13 16:18:29 +01:00
Iliya Katushenock added the
Interest
Geometry Nodes
label 2023-12-13 16:18:33 +01:00
Hans Goudey approved these changes 2023-12-13 16:23:10 +01:00
Iliya Katushenock reviewed 2023-12-13 16:52:58 +01:00
@ -297,7 +238,6 @@ static void node_rna(StructRNA *srna)
SOCK_GEOMETRY,
SOCK_OBJECT,
SOCK_COLLECTION,
SOCK_TEXTURE,

Unrelated change?

Unrelated change?
Member

Required to not assert when switching to texture type in the UI enum. It's not supported anyway in geometry nodes, pure legacy stuff.

Required to not assert when switching to texture type in the UI enum. It's not supported anyway in geometry nodes, pure legacy stuff.
mod_moder marked this conversation as resolved
@ -21,3 +21,2 @@
{
b.add_input<decl::Bool>("Switch").default_value(false).supports_field();
b.add_input<decl::Bool>("Switch", "Switch_001").default_value(false);
auto &switch_decl = b.add_input<decl::Bool>("Switch").default_value(false);

Is there the chance to note the type of value in anythere?

Is there the chance to note the type of value in anythere?
@ -114,4 +57,2 @@
}
static void node_gather_link_searches(GatherLinkSearchOpParams &params)
{

Can part of function be replaced by search_link_ops_for_declarations(params, params.node_type().static_declaration->inputs);?

Can part of function be replaced by `search_link_ops_for_declarations(params, params.node_type().static_declaration->inputs);`?
Member

Not yet, since we don't handle multiple types like that for link drag search yet

Not yet, since we don't handle multiple types like that for link drag search yet

Ah yes, boolean a switch input is dynamic too!

Ah yes, boolean a switch input is dynamic too!
mod_moder marked this conversation as resolved
Hans Goudey added 4 commits 2023-12-13 17:00:18 +01:00
Hans Goudey merged commit f7383cfe9b into main 2023-12-13 17:33:35 +01:00
Hans Goudey deleted branch switch-dynamic-declaration 2023-12-13 17:33:37 +01:00
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
3 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#113413
No description provided.