Lukas Tönne LukasTonne
Lukas Tönne pushed to hide-panels-when-empty at LukasTonne/blender 2023-09-26 16:50:05 +02:00
21a5a9c872 Made free functions for updating node item visibility and location.
Lukas Tönne pushed to socket_subpanels at LukasTonne/blender 2023-09-26 16:19:52 +02:00
994bb1328a Add back include.
Lukas Tönne pushed to socket_subpanels at LukasTonne/blender 2023-09-26 16:18:47 +02:00
590561e9b8 Undo unwanted formatting changes.
Lukas Tönne pushed to socket_subpanels at LukasTonne/blender 2023-09-26 16:11:18 +02:00
af067e0ec0 Merge branch 'main' into socket_subpanels
5361a0e213 Removed commented code from poll.
7dbe689b63 Vulkan: Use Point Shaders When Drawing Points
769b26f7b5 Removed unnecessary newline.
80f3f58251 Removed commented code.
Compare 30 commits »
Lukas Tönne commented on pull request blender/blender#108565 2023-09-26 15:57:29 +02:00
Subpanels for node group sockets

I think you could change the two new MOD_nodes_ functions into panel type callbacks

Thanks @HooglyBoogly this works beautifully, no more dependency on modifiers.

Lukas Tönne pushed to socket_subpanels at LukasTonne/blender 2023-09-26 15:55:01 +02:00
b288c2ccae Use panel type callbacks of the parent for child panel generation.
Lukas Tönne commented on pull request blender/blender#112860 2023-09-26 14:36:58 +02:00
Cleanup: Nodes: Simplify drawing function

Changed it to free functions with a state argument that contains all the iterator variables. Not necessarily less code but maybe slightly easier to understand?

Lukas Tönne pushed to recursive-panel-drawing at LukasTonne/blender 2023-09-26 14:35:27 +02:00
21a5a9c872 Made free functions for updating node item visibility and location.
Lukas Tönne commented on pull request blender/blender#108565 2023-09-26 11:42:19 +02:00
Subpanels for node group sockets

Examples of breaking cases:

  • Moving a panel up or down uses the old open/closed state at that position: expand_flag is index-based, panel identifiers are ignored. After moving "Panel BBB"…
Lukas Tönne pushed to socket_subpanels at LukasTonne/blender 2023-09-26 10:08:11 +02:00
d7852e4df5 Merge branch 'main' into socket_subpanels
3514d6ed52 Cleanup: Make format
d1fbc69e03 Cleanup: Move logic out of loops, remove unnecessary ui sublayouts
0cb01332f1 Cleanup: Consistency between asset-extended menu UI templates
34a1b5bdbd Fix: Node tools shortcuts don't display in menus
Compare 426 commits »
Lukas Tönne commented on pull request blender/blender#112860 2023-09-26 08:23:39 +02:00
Cleanup: Nodes: Simplify drawing function

Reason it's a std::function:

  1. Needs a "forward declaration" to be able to do recursion.
  2. Accesses a bunch of state variables that need to be carried along, either as a function argument or…
Lukas Tönne pushed to hide-panels-when-empty at LukasTonne/blender 2023-09-25 18:03:09 +02:00
78922b7bb4 Fix panel finalization, only do this once (misplaced brackets).
0f36037e85 Fix panel iteration, don't consume item before checking loop condition.
68d35d5f4b Renamed function and added comment.
Compare 3 commits »
Lukas Tönne pushed to recursive-panel-drawing at LukasTonne/blender 2023-09-25 18:01:19 +02:00
78922b7bb4 Fix panel finalization, only do this once (misplaced brackets).
0f36037e85 Fix panel iteration, don't consume item before checking loop condition.
Compare 2 commits »
Lukas Tönne commented on pull request blender/blender#112860 2023-09-25 16:52:52 +02:00
Cleanup: Nodes: Simplify drawing function

This is in preparation for solving #112588 which would add some more complexity to the drawing code.

Lukas Tönne created pull request blender/blender#112860 2023-09-25 16:52:00 +02:00
Nodes: Simplified drawing function.
Lukas Tönne pushed to recursive-panel-drawing at LukasTonne/blender 2023-09-25 16:49:30 +02:00
68d35d5f4b Renamed function and added comment.
Lukas Tönne pushed to recursive-panel-drawing at LukasTonne/blender 2023-09-25 16:46:53 +02:00
Lukas Tönne created branch recursive-panel-drawing in LukasTonne/blender 2023-09-25 16:46:53 +02:00
Lukas Tönne created branch hide-panels-when-empty in LukasTonne/blender 2023-09-25 16:46:29 +02:00
Lukas Tönne pushed to hide-panels-when-empty at LukasTonne/blender 2023-09-25 16:46:29 +02:00
537b398dfe Node drawing simplification: Use a recursive function for panel drawing.
2abd026cfe Anim: remove the deprecated use_inherit_scale bone property.
8362563949 UI: show recently selected items at the top of searches
676a03cf1e Cleanup: Make format
e38ff7c06d Cleanup: use C++ comments for disabled code
Compare 10 commits »