Skip to content

Commit e526c16

Browse files
committed
glcannon - allow 'PREVIEW' as a substitute for 'AXIS' in magic comments
A little more generic for other screens.
1 parent 1e1e990 commit e526c16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/python/rs274/glcanon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __init__(self, colors, geometry, is_foam=0):
132132
self.highlight_line = None
133133

134134
def comment(self, arg):
135-
if arg.startswith("AXIS,"):
135+
if arg.startswith("AXIS,") or arg.startswith("PREVIEW,"):
136136
parts = arg.split(",")
137137
command = parts[1]
138138
if command == "stop": raise KeyboardInterrupt

0 commit comments

Comments
 (0)