Nodes: Panels integration with blend files and UI #111348

Merged
Lukas Tönne merged 96 commits from LukasTonne/blender:node-panels-final into main 2023-08-30 12:37:28 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 816286daac - Show all commits

View File

@ -748,14 +748,14 @@ int bNodeTreeInterfacePanel::find_valid_insert_position_for_item(
break;
}
if (items[test_pos]->item_type != NODE_INTERFACE_PANEL) {
/* Found valid position, insert after the last socket item */
/* Found valid position, insert after the last socket item. */
LukasTonne marked this conversation as resolved Outdated

Minor: missing dot in comment, also check the comment below.

Minor: missing dot in comment, also check the comment below.
pos = test_pos + 1;
break;
}
}
}
else {
/* Find the closest valid position from the start, no panels at or after #position . */
/* Find the closest valid position from the start, no panels at or after #position. */
for (int test_pos = 0; test_pos <= initial_pos; test_pos++) {
if (test_pos >= items.size()) {
/* Initial position is out of range but valid. */