Simulation nodes: UI for simulation state items in sidebar #106919

Merged

40 Commits

Author SHA1 Message Date
Lukas Tönne 2653fdf5de Cleanup: renamed `items_mutable_span` to `items_span_for_write`. 2023-04-24 11:51:41 +02:00
Lukas Tönne 1248a0bb2f Remove else after return. 2023-04-24 11:47:35 +02:00
Lukas Tönne f8c0330f84 Cleanup: comment line style. 2023-04-24 11:42:30 +02:00
Lukas Tönne e3d10f73db Cleanup: doxygen return statement style. 2023-04-24 11:34:45 +02:00
Lukas Tönne 45d99b3e11 Use "items" instead of "state items" as UI text for simulation zones. 2023-04-24 11:33:27 +02:00
Lukas Tönne 237619e4f2 Cleanup: dots after comments. 2023-04-24 11:31:10 +02:00
Lukas Tönne 5aef82548f Fix old copy/pasted comment. 2023-04-24 11:29:18 +02:00
Lukas Tönne 680ea82a67 Moved sim zone operators into the geometry_nodes.py file. 2023-04-24 11:27:31 +02:00
Lukas Tönne 7f7fd97fad Merge branch 'geometry-nodes-simulation' into geometry-nodes-simulation-item-ui 2023-04-24 11:14:16 +02:00
Lukas Tönne 0ae64ec056 Cleanup: use early exit for consistency. 2023-04-21 12:00:25 +02:00
Lukas Tönne 6e2e398922 Use C++ span members in NodeGeometrySimulationOutput for cleaner code. 2023-04-21 11:55:38 +02:00
Lukas Tönne 823f401c4d Ensure correct topology cache in the node search function for RNA. 2023-04-21 10:54:17 +02:00
Lukas Tönne 877986ccda Remove unused node search function. 2023-04-21 10:53:19 +02:00
Lukas Tönne 0fd13ae285 Fix typo. 2023-04-21 10:38:34 +02:00
Lukas Tönne 485f0644c0 Use std::to_string to construct simulation state socket identifiers. 2023-04-20 18:07:35 +02:00
Lukas Tönne 30d86535ac Use a filter with node_socket_data_type_items instead of a custom items list. 2023-04-20 17:06:56 +02:00
Lukas Tönne e0d2be408e Fix missing EnumProperty import. 2023-04-20 17:06:22 +02:00
Lukas Tönne 66c5f8cf96 Revert "Replaced `color` property of state items with a static method in RNA."
This reverts commit ef3ed4f652.
2023-04-20 16:31:38 +02:00
Lukas Tönne ef3ed4f652 Replaced `color` property of state items with a static method in RNA. 2023-04-20 16:28:14 +02:00
Lukas Tönne 9a2cdd99a3 Change panel title for state items to "Simulation State". 2023-04-20 16:08:07 +02:00
Lukas Tönne 0db57ca8fb Move the simulation state panel into the "Node" sidebar category. 2023-04-20 16:07:09 +02:00
Lukas Tönne 370b0b06d4 Merge branch 'geometry-nodes-simulation' into geometry-nodes-simulation-item-ui 2023-04-20 15:51:47 +02:00
Lukas Tönne 6e46c1a896 Cleanup: Change to NOD_geometry naming scheme. 2023-04-14 13:57:51 +02:00
Lukas Tönne a3450e664e Merge branch 'geometry-nodes-simulation' into geometry-nodes-simulation-item-ui 2023-04-14 12:45:28 +02:00
Lukas Tönne b3b13f37bf Added versioning code to initialize unique identifiers for sim zones. 2023-04-14 12:38:41 +02:00
Lukas Tönne e920bbede4 Generate unique identifiers for simulation state items.
This helps ensure that socket links get remapped when other properties
like name or type change. The identifier is immutable and should remain
unique over the entire lifetime of the simulation node.
2023-04-14 12:37:26 +02:00
Lukas Tönne 9843e26bf3 Limit the allowed socket types in simulation items to Geometry for now. 2023-04-14 10:14:11 +02:00
Lukas Tönne ee61434a2e RNA function to get the appropriate color for a socket type.
This involves a bad level call, but since another editor function
is already used this way it doesn't make things worse.
2023-04-13 21:03:04 +02:00
Lukas Tönne 687db84aed Fix default item names based on the socket type. 2023-04-13 17:09:41 +02:00
Lukas Tönne 61e3bc88dc Support the simulation zone items panel in both input and output node. 2023-04-13 17:01:12 +02:00
Lukas Tönne fcc72628e6 Fix items access in the python operators. 2023-04-13 15:58:58 +02:00
Lukas Tönne 0829944cc0 Move operators for simulation item buttons into python. 2023-04-13 14:33:56 +02:00
Lukas Tönne 84b5508f9a Fix item move function for simulation state. 2023-04-13 14:04:28 +02:00
Lukas Tönne 03f134f2fa Ensure updates of sim input nodes when items on the sim output change. 2023-04-13 13:45:30 +02:00
Lukas Tönne 205080ca3c Fix incorrect range check when moving simulation state items. 2023-04-13 13:45:00 +02:00
Lukas Tönne b7ddb318b6 Fix incorrect struct type used in RNA API implementation for sim zones. 2023-04-13 13:44:13 +02:00
Lukas Tönne cd608aaa0d Fix property updates for simulation state items. 2023-04-13 11:33:35 +02:00
Lukas Tönne 8db8904822 Panel and operators for manipulating the simulation state items (WIP). 2023-04-12 17:04:42 +02:00
Lukas Tönne 061a5112dd RNA API functions for the simulation output state items. 2023-04-12 13:12:29 +02:00
Lukas Tönne d9dbe5b042 API for manipulating items in the simulation zone output node. 2023-04-11 18:51:53 +02:00