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
039d7626
Commit
039d7626
authored
Jul 30, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Propagate layers change to Light model in gcview
parent
50547623
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
actors.py
printrun/gl/libtatlin/actors.py
+7
-1
No files found.
printrun/gl/libtatlin/actors.py
View file @
039d7626
...
@@ -517,9 +517,14 @@ class GcodeModelLight(Model):
...
@@ -517,9 +517,14 @@ class GcodeModelLight(Model):
prev_pos
=
(
0
,
0
,
0
)
prev_pos
=
(
0
,
0
,
0
)
for
layer_idx
,
layer
in
enumerate
(
model_data
.
all_layers
):
for
layer_idx
,
layer
in
enumerate
(
model_data
.
all_layers
):
has_movement
=
False
for
gline
in
layer
:
for
gline
in
layer
:
if
not
gline
.
is_move
:
if
not
gline
.
is_move
:
continue
continue
if
gline
.
x
is
not
None
\
or
gline
.
y
is
not
None
\
or
gline
.
z
is
not
None
:
has_movement
=
True
vertex_list
.
append
(
prev_pos
)
vertex_list
.
append
(
prev_pos
)
current_pos
=
(
gline
.
current_x
,
gline
.
current_y
,
gline
.
current_z
)
current_pos
=
(
gline
.
current_x
,
gline
.
current_y
,
gline
.
current_z
)
vertex_list
.
append
(
current_pos
)
vertex_list
.
append
(
current_pos
)
...
@@ -530,6 +535,7 @@ class GcodeModelLight(Model):
...
@@ -530,6 +535,7 @@ class GcodeModelLight(Model):
prev_pos
=
current_pos
prev_pos
=
current_pos
gline
.
gcview_end_vertex
=
len
(
vertex_list
)
gline
.
gcview_end_vertex
=
len
(
vertex_list
)
if
has_movement
:
self
.
layer_stops
.
append
(
len
(
vertex_list
))
self
.
layer_stops
.
append
(
len
(
vertex_list
))
if
callback
:
if
callback
:
...
...
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