Patches to Bf Blender for CAD development. https://tornavis.org/
Go to file
Lukas Tönne 5ad49f4142 Geometry Nodes: Menu Switch Node
This patch adds support for _Menu Switch_ nodes and enum definitions in
node trees more generally. The design is based on the outcome of the
[2022 Nodes Workshop](https://code.blender.org/2022/11/geometry-nodes-workshop-2022/#menu-switch).

The _Menu Switch_ node is an advanced version of the _Switch_ node which
has a customizable **menu input socket** instead of a simple boolean.
The _items_ of this menu are owned by the node itself. Each item has a
name and description and unique identifier that is used internally. A
menu _socket_ represents a concrete value out of the list of items.

To enable selection of an enum value for unconnected sockets the menu is
presented as a dropdown list like built-in enums. When the socket is
connected a shared pointer to the enum definition is propagated along
links and stored in socket default values. This allows node groups to
expose a menu from an internal menu switch as a parameter. The enum
definition is a runtime copy of the enum items in DNA that allows
sharing.

A menu socket can have multiple connections, which can lead to
ambiguity. If two or more different menu source nodes are connected to a
socket it gets marked as _undefined_. Any connection to an undefined
menu socket is invalid as a hint to users that there is a problem. A
warning/error is also shown on nodes with undefined menu sockets.

At runtime the value of a menu socket is the simple integer identifier.
This can also be a field in geometry nodes. The identifier is unique
within each enum definition, and it is persistent even when items are
added, removed, or changed. Changing the name of an item does not affect
the internal identifier, so users can rename enum items without breaking
existing input values. This also persists if, for example, a linked node
group is temporarily unavailable.

Pull Request: https://projects.blender.org/blender/blender/pulls/113445
2024-01-26 12:40:01 +01:00
.gitea Docs: Replace most wiki links with links to new developer docs 2024-01-18 16:49:38 +01:00
.github Docs: Replace most wiki links with links to new developer docs 2024-01-18 16:49:38 +01:00
build_files Render Tests: Separate difference of Color and Alpha 2024-01-25 10:04:16 +01:00
doc Cleanup: move bl_description to doc-strings 2024-01-23 13:59:15 +11:00
extern Audaspace: faster audio resampling 2024-01-03 21:23:24 +01:00
intern Cycles: Skip denoising during bake when pass does not support denoising 2024-01-25 15:56:20 +01:00
locale I18N: Updated UI translations from git/weblate repo (fe7935fc8ede674). 2024-01-22 12:36:51 +01:00
release Cleanup: include release/datafiles/ to "make check_mypy" 2024-01-25 10:06:29 +11:00
scripts Geometry Nodes: Menu Switch Node 2024-01-26 12:40:01 +01:00
source Geometry Nodes: Menu Switch Node 2024-01-26 12:40:01 +01:00
tests RenderTests: Fix Incorrect Command in Report 2024-01-25 18:55:28 +01:00
tools Cleanup: include release/datafiles/ to "make check_mypy" 2024-01-25 10:06:29 +11:00
.clang-format clang-format: set BraceWrapping::AfterControlStatement to "MultiLine" 2023-05-02 09:37:08 +10:00
.clang-tidy Clang-tidy: Ignore variable name length and .c/.cc include warnings 2022-05-06 15:26:54 +02:00
.editorconfig editorconfig: add HTML entry 2023-12-08 13:28:13 +11:00
.git-blame-ignore-revs Cleanup: add commit to .git-blame-ignore-revs 2023-05-03 20:31:11 +10:00
.gitignore Ignore build files for VS and VS Code 2023-03-07 17:38:34 +01:00
AUTHORS AUTHORS: correct canonical authors map 2024-01-16 17:30:38 +11:00
CMakeLists.txt CMake: always mark CMAKE_BUILD_TYPE_INIT as advanced 2024-01-23 20:40:00 +11:00
COPYING
GNUmakefile Build: improve make icons detection of Inkscape and Blender on macOS 2024-01-24 18:55:54 +01:00
README.md Docs: Replace most wiki links with links to new developer docs 2024-01-18 16:49:38 +01:00
make.bat Windows: Propagate errors in make.bat 2023-08-16 19:29:47 +02:00
pyproject.toml Black: skip string normalisation 2024-01-22 10:09:33 +01:00

README.md

Blender

Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.

Blender screenshot

Project Pages

Development

License

Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.

See blender.org/about/license for details.