Geometry Nodes: add Inspection Index to Repeat Zone #112818

Merged
Jacques Lucke merged 7 commits from JacquesLucke/blender:repeat-viewer-iteration into main 2023-09-27 11:09:46 +02:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit fa78335266 - Show all commits

View File

@ -70,7 +70,8 @@ enum class UpdateActiveGeometryNodesViewerResult {
/**
* Checks if the node referenced by the viewer and its entire context is still active, i.e. some
* editor is showing it.
* editor is showing it. If not, the viewer path might be updated in minor ways (like changing the
* repeat zone iteration).
*/
UpdateActiveGeometryNodesViewerResult update_active_geometry_nodes_viewer(const bContext &C,
ViewerPath &viewer_path);

View File

@ -415,6 +415,7 @@ UpdateActiveGeometryNodesViewerResult update_active_geometry_nodes_viewer(const
}
if (!BKE_viewer_path_equal(&viewer_path, &tmp_viewer_path)) {
std::swap(viewer_path, tmp_viewer_path);
/* Make sure the viewed data becomes available. */
DEG_id_tag_update(snode.id, ID_RECALC_GEOMETRY);
return UpdateActiveGeometryNodesViewerResult::Updated;
}