Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/python/rs274/glcanon.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def __init__(self, s=None, lp=None, g=None):
self.max_file_size = temp * 1024 * 1024

self.disable_cone_scaling = self.inifile.getbool("DISPLAY", "DISABLE_CONE_SCALING", fallback=False)
self.tool_min_dia = self.inifile.getreal("DISPLAY", "GCODE_VIEW_TOOL_MIN_DIA", fallback=0.0)
self.view_tool_min_dia = self.inifile.getreal("DISPLAY", "GCODE_VIEW_TOOL_MIN_DIA", fallback=0.0)

except:
# Probably started in an editor so no INI
Expand Down Expand Up @@ -1498,7 +1498,7 @@ def redraw(self):
glBlendFunc(GL_ONE, GL_CONSTANT_ALPHA)

current_tool = self.get_current_tool()
if current_tool is None or current_tool.diameter < self.view_tool_min_dia:
if current_tool is None or current_tool.diameter <= self.view_tool_min_dia:
if self.canon and not self.disable_cone_scaling:
g = self.canon

Expand Down
Loading