Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
b91265ee
Commit
b91265ee
authored
Jun 16, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework excluder logic to only drop X and Y moves
parent
af109a0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pronterface.py
pronterface.py
+3
-2
No files found.
pronterface.py
View file @
b91265ee
...
...
@@ -408,10 +408,11 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self
.
sentlines
.
put_nowait
(
line
)
def
preprintsendcb
(
self
,
gline
):
if
not
self
.
excluder
or
not
self
.
excluder
.
rectangles
:
if
not
gline
.
is_move
or
not
self
.
excluder
or
not
self
.
excluder
.
rectangles
:
return
gline
if
gline
.
x
==
None
and
gline
.
y
==
None
:
return
gline
for
(
x0
,
y0
,
x1
,
y1
)
in
self
.
excluder
.
rectangles
:
if
not
gline
.
is_move
:
continue
if
x0
<=
gline
.
current_x
<=
x1
and
y0
<=
gline
.
current_y
<=
y1
:
if
gline
.
e
!=
None
and
not
gline
.
relative_e
:
return
gcoder
.
Line
(
"G92 E
%.5
f"
%
gline
.
e
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment