Skip to content

Commit

Permalink
Core Editor: Graph cycle detection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadelessFox committed Mar 18, 2024
1 parent 002d8e7 commit c0cdc47
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,15 @@ private static void buildGraph(@NotNull RTTICoreFile file, @NotNull RTTIObject s
buildGraph(file, source, element, graph);
}
} else if (object instanceof RTTIReference.Internal ref) {
final RTTIObject target;
try {
final RTTIObject target = ref.follow(file).object();
graph.addVertex(target);
graph.addEdge(source, target);
target = ref.follow(file).object();
} catch (Exception e) {
log.warn("Can't find referenced local object: {}", RTTIUtils.uuidToString(ref.uuid()), e);
return;
}
graph.addVertex(target);
graph.addEdge(source, target);
}
}

Expand Down

0 comments on commit c0cdc47

Please sign in to comment.