Nodes: add internal node zone type #112531

Merged
Jacques Lucke merged 5 commits from JacquesLucke/blender:node-zone-type into main 2023-09-20 14:41:04 +02:00
Member

The goal is to reduce redundancy by abstracting over the different types of node tree zones. This makes it easier to add new zone types and makes the intend of code more clear. For example, now it is more obvious what code deals with zones in general and what does simulation specific things.

The goal is to reduce redundancy by abstracting over the different types of node tree zones. This makes it easier to add new zone types and makes the intend of code more clear. For example, now it is more obvious what code deals with zones in general and what does simulation specific things.
Jacques Lucke added 1 commit 2023-09-18 16:01:46 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
bf571440f9
add zone type
Author
Member

@blender-bot build

@blender-bot build
Jacques Lucke added 1 commit 2023-09-18 16:21:50 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
af2219086d
cleanup
Author
Member

@blender-bot build

@blender-bot build
Jacques Lucke requested review from Hans Goudey 2023-09-18 16:22:51 +02:00
Jacques Lucke added 1 commit 2023-09-20 10:30:22 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
a401466ad0
Merge branch 'main' into node-zone-type
Author
Member

@blender-bot build

@blender-bot build
Hans Goudey reviewed 2023-09-20 14:09:53 +02:00
Hans Goudey left a comment
Member

Nice! Would it be possible to register/define the zone types from outside blenkernel now? If we could register them in nodes, that would be pretty nice

Nice! Would it be possible to register/define the zone types from outside blenkernel now? If we could register them in `nodes`, that would be pretty nice
@ -325,0 +340,4 @@
virtual const int &get_corresponding_output_id(const bNode &input_bnode) const = 0;
int &get_corresponding_output_id(bNode &input_bnode) const
Member

The fact that this method is const seems weird to me.

The fact that this method is `const` seems weird to me.
Author
Member

Well, calling it should not change the bNodeZoneType. Note that the bNode input is not const.

Well, calling it should not change the `bNodeZoneType`. Note that the `bNode` input is not `const`.
Member

Ah, of course, my bad!

Ah, of course, my bad!
HooglyBoogly marked this conversation as resolved
@ -433,0 +457,4 @@
this->get_corresponding_output(const_cast<const bNodeTree &>(tree), input_bnode));
}
class SimulationZoneType : public bNodeZoneType {
Member

Currently these are specific to geometry nodes, I'd sort of expect them to be in a less generically named file.

Currently these are specific to geometry nodes, I'd sort of expect them to be in a less generically named file.
JacquesLucke marked this conversation as resolved
Jacques Lucke added 2 commits 2023-09-20 14:32:53 +02:00
Hans Goudey approved these changes 2023-09-20 14:35:50 +02:00
Jacques Lucke merged commit 3eb7e453e4 into main 2023-09-20 14:41:04 +02:00
Jacques Lucke deleted branch node-zone-type 2023-09-20 14:41:09 +02: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 project
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#112531
No description provided.