Lukas Tönne LukasTonne
Lukas Tönne commented on pull request blender/blender#106919 2023-04-15 15:02:53 +02:00
Simulation nodes: UI for simulation state items in sidebar

Could support a type selection enum here, with a dropdown menu invoke.

Lukas Tönne pushed to geometry-nodes-closures at LukasTonne/blender 2023-04-15 14:20:28 +02:00
2498460b63 RNA for node signatures.
Lukas Tönne pushed to geometry-nodes-closures at LukasTonne/blender 2023-04-15 10:39:59 +02:00
f2c11e0950 Improved API for signatures using some C++ support methods.
Lukas Tönne pushed to geometry-nodes-closures at LukasTonne/blender 2023-04-14 18:06:33 +02:00
61a0f26e46 stuff
4926ddd8cd Merge branch 'main' into geometry-nodes-closures
988f23cec3 Attributes: Add 2D integer vector attribute type
80f3f59555 Fix: Remove unsupported data types in extrude and split edges nodes
3f31ac2e1a Cleanup: Make deprecated custom data type handling consistent
Compare 431 commits »
Lukas Tönne commented on pull request blender/blender#106919 2023-04-14 14:18:12 +02:00
Simulation nodes: UI for simulation state items in sidebar

I wonder if we could put the list in the existing Node sidebar tab instead of adding a new one. That might be a more consistent/expected place for it. What do you think about that?

Would be…

Lukas Tönne pushed to geometry-nodes-simulation-item-ui at LukasTonne/blender 2023-04-14 13:58:16 +02:00
6e46c1a896 Cleanup: Change to NOD_geometry naming scheme.
a3450e664e Merge branch 'geometry-nodes-simulation' into geometry-nodes-simulation-item-ui
cbc5b17c1a Cleanup: Use const int cast
a76c714c26 Cleanup: Whitespace
c22fed5c01 Cleanup: Unnecessary null check
Compare 108 commits »
Lukas Tönne pushed to geometry-nodes-simulation-item-ui at LukasTonne/blender 2023-04-14 12:39:03 +02:00
b3b13f37bf Added versioning code to initialize unique identifiers for sim zones.
e920bbede4 Generate unique identifiers for simulation state items.
Compare 2 commits »
Lukas Tönne pushed to geometry-nodes-simulation-item-ui at LukasTonne/blender 2023-04-14 10:14:22 +02:00
9843e26bf3 Limit the allowed socket types in simulation items to Geometry for now.
Lukas Tönne commented on pull request blender/blender#106812 2023-04-14 08:09:43 +02:00
Support for simulation zones in copy operators

otherwise I think it would make more sense for that unification to happen first, better not to leave it like this longer term.

I'll give the copy unification #106852 a go and see if i run…

Lukas Tönne commented on pull request blender/blender#106919 2023-04-13 21:34:18 +02:00
Simulation nodes: UI for simulation state items in sidebar

Assigning nullptr to a std::string is undefined behavior. We also ensure the item.name is never empty now, but it's better not to rely on that alone and check the char * as well.

Lukas Tönne commented on pull request blender/blender#106919 2023-04-13 21:32:11 +02:00
Simulation nodes: UI for simulation state items in sidebar

This function is now also used to check for uniqueness of items that are already in the list. This check avoids detecting duplicates from the same socket.

Lukas Tönne commented on pull request blender/blender#106919 2023-04-13 21:29:58 +02:00
Simulation nodes: UI for simulation state items in sidebar

Exposing socket type colors through ED_node_type_draw_color adds another bad level call. Since the same file already has other UI functions used this way it doesn't make things any worse at least.

Lukas Tönne commented on pull request blender/blender#106919 2023-04-13 21:26:59 +02:00
Simulation nodes: UI for simulation state items in sidebar

Connecting the __extend__ socket updates both input and output node, but only because of the blanket NTREE_CHANGED_LINK handling which updates all nodes in the tree when a link is changed.

Lukas Tönne created pull request blender/blender#106919 2023-04-13 21:17:24 +02:00
Resolve #105723: UI for simulation state items in sidebar
Lukas Tönne pushed to geometry-nodes-simulation-item-ui at LukasTonne/blender 2023-04-13 21:04:44 +02:00
ee61434a2e RNA function to get the appropriate color for a socket type.
Lukas Tönne pushed to geometry-nodes-simulation-item-ui at LukasTonne/blender 2023-04-13 17:10:03 +02:00
687db84aed Fix default item names based on the socket type.
Lukas Tönne pushed to geometry-nodes-simulation-item-ui at LukasTonne/blender 2023-04-13 17:01:34 +02:00
61e3bc88dc Support the simulation zone items panel in both input and output node.
Lukas Tönne pushed to geometry-nodes-simulation-item-ui at LukasTonne/blender 2023-04-13 15:59:05 +02:00
fcc72628e6 Fix items access in the python operators.
Lukas Tönne pushed to geometry-nodes-simulation-item-ui at LukasTonne/blender 2023-04-13 14:34:19 +02:00
0829944cc0 Move operators for simulation item buttons into python.
84b5508f9a Fix item move function for simulation state.
03f134f2fa Ensure updates of sim input nodes when items on the sim output change.
205080ca3c Fix incorrect range check when moving simulation state items.
b7ddb318b6 Fix incorrect struct type used in RNA API implementation for sim zones.
Compare 6 commits »
Lukas Tönne pushed to geometry-nodes-closures at LukasTonne/blender 2023-04-13 08:48:44 +02:00
b34682e9bf Adapt the signature API functions to the new parameter struct.