Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/spreadsheet_context.cc
| Show First 20 Lines • Show All 483 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| int valid_count = 0; | int valid_count = 0; | ||||
| for (const int i : IndexRange(tree_path.size() - 1)) { | for (const int i : IndexRange(tree_path.size() - 1)) { | ||||
| if (node_context_path[i]->type != SPREADSHEET_CONTEXT_NODE) { | if (node_context_path[i]->type != SPREADSHEET_CONTEXT_NODE) { | ||||
| break; | break; | ||||
| } | } | ||||
| SpreadsheetContextNode *node_context = (SpreadsheetContextNode *)node_context_path[i]; | SpreadsheetContextNode *node_context = (SpreadsheetContextNode *)node_context_path[i]; | ||||
| if (!STREQ(node_context->node_name, tree_path[i]->node_name)) { | if (!STREQ(node_context->node_name, tree_path[i + 1]->node_name)) { | ||||
| break; | break; | ||||
| } | } | ||||
| valid_count++; | valid_count++; | ||||
| } | } | ||||
| if (valid_count != tree_path.size() - 1) { | if (valid_count != tree_path.size() - 1) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| SpreadsheetContext *last_context = node_context_path.last(); | SpreadsheetContext *last_context = node_context_path.last(); | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||