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
2c6bfc23
Commit
2c6bfc23
authored
Aug 02, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if gcview_end_vertex is not None in set_current_line
parent
ff4aaf4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gcview.py
printrun/gcview.py
+4
-2
No files found.
printrun/gcview.py
View file @
2c6bfc23
...
@@ -278,7 +278,8 @@ class GcodeViewMainWrapper(object):
...
@@ -278,7 +278,8 @@ class GcodeViewMainWrapper(object):
return
getattr
(
self
.
glpanel
,
name
)
return
getattr
(
self
.
glpanel
,
name
)
def
set_current_gline
(
self
,
gline
):
def
set_current_gline
(
self
,
gline
):
if
gline
.
is_move
and
self
.
model
and
self
.
model
.
loaded
:
if
gline
.
is_move
and
gline
.
gcview_end_vertex
is
not
None
\
and
self
.
model
and
self
.
model
.
loaded
:
self
.
model
.
printed_until
=
gline
.
gcview_end_vertex
self
.
model
.
printed_until
=
gline
.
gcview_end_vertex
if
not
self
.
refresh_timer
.
IsRunning
():
if
not
self
.
refresh_timer
.
IsRunning
():
self
.
refresh_timer
.
Start
()
self
.
refresh_timer
.
Start
()
...
@@ -349,7 +350,8 @@ class GcodeViewFrame(GvizBaseFrame):
...
@@ -349,7 +350,8 @@ class GcodeViewFrame(GvizBaseFrame):
wx
.
CallAfter
(
self
.
Refresh
)
wx
.
CallAfter
(
self
.
Refresh
)
def
set_current_gline
(
self
,
gline
):
def
set_current_gline
(
self
,
gline
):
if
gline
.
is_move
and
self
.
model
and
self
.
model
.
loaded
:
if
gline
.
is_move
and
gline
.
gcview_end_vertex
is
not
None
\
and
self
.
model
and
self
.
model
.
loaded
:
self
.
model
.
printed_until
=
gline
.
gcview_end_vertex
self
.
model
.
printed_until
=
gline
.
gcview_end_vertex
if
not
self
.
refresh_timer
.
IsRunning
():
if
not
self
.
refresh_timer
.
IsRunning
():
self
.
refresh_timer
.
Start
()
self
.
refresh_timer
.
Start
()
...
...
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