Cleanup: simplify debugging

This makes it easy to set breakpoints where false is returned.
This commit is contained in:
Jacques Lucke 2022-08-31 13:55:21 +02:00
parent 81d82427b5
commit d3f07998ed
1 changed files with 4 additions and 1 deletions

View File

@ -172,7 +172,10 @@ inline bool topology_cache_is_available(const bNodeTree &tree)
if (tree.runtime->allow_use_dirty_topology_cache.load() > 0) {
return true;
}
return !tree.runtime->topology_cache_is_dirty;
if (tree.runtime->topology_cache_is_dirty) {
return false;
}
return true;
}
inline bool topology_cache_is_available(const bNode &node)