Skip to content

Commit

Permalink
fix(render): use path indexes for diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
beatreichenbach committed Apr 26, 2023
1 parent da8fc72 commit 4c34414
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions realflare/api/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ def diagram(self, project: Project) -> None:
project.render.quality.resolution = project.render.diagram.resolution
project.render.quality.grid_count = project.render.diagram.grid_count
project.render.quality.grid_length = project.render.diagram.grid_length
project.render.debug_ghost = project.render.diagram.debug_ghost
project.render.debug_ghosts = True
path_indexes = (project.render.diagram.debug_ghost,)

intersections = self.intersection_task.run(project.flare, project.render)
intersections = self.intersection_task.run(
project.flare, project.render, path_indexes
)
image = self.diagram_task.run(project.flare.lens, project.render, intersections)
element = RenderElement(RenderElement.Type.DIAGRAM, image)
self._update_element(element)
Expand Down

0 comments on commit 4c34414

Please sign in to comment.