Nodes: Panel declarations for grouping sockets #108649

Merged
Lukas Tönne merged 27 commits from LukasTonne/blender:node-socket-categories into main 2023-06-14 18:02:46 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 5c8233edb3 - Show all commits

View File

@ -3189,7 +3189,7 @@ static void rna_NodeSocketInterface_category_set(PointerRNA *ptr,
bNodeSocketCategory *category = (bNodeSocketCategory *)value.data;
const size_t index = category - ntree->socket_categories_array;
if (index < 0 || index >= ntree->socket_categories_num) {
if (index >= ntree->socket_categories_num) {
BKE_report(reports, RPT_ERROR, "Category is not in the node tree interface");
return;
}