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
f6a4c42c
Commit
f6a4c42c
authored
Mar 31, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore alpha in glColor calls for heavy model
parent
fc091f78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
actors.py
printrun/gl/libtatlin/actors.py
+3
-3
No files found.
printrun/gl/libtatlin/actors.py
View file @
f6a4c42c
...
@@ -619,7 +619,7 @@ class GcodeModel(Model):
...
@@ -619,7 +619,7 @@ class GcodeModel(Model):
glDisableClientState
(
GL_COLOR_ARRAY
)
glDisableClientState
(
GL_COLOR_ARRAY
)
glColor
4f
(
*
self
.
color_printed
)
glColor
3f
(
*
self
.
color_printed
[:
-
1
]
)
# Draw printed stuff until end or end_prev_layer
# Draw printed stuff until end or end_prev_layer
cur_end
=
min
(
self
.
printed_until
,
end
)
cur_end
=
min
(
self
.
printed_until
,
end
)
...
@@ -642,12 +642,12 @@ class GcodeModel(Model):
...
@@ -642,12 +642,12 @@ class GcodeModel(Model):
if
layer_selected
:
if
layer_selected
:
glDisableClientState
(
GL_COLOR_ARRAY
)
glDisableClientState
(
GL_COLOR_ARRAY
)
glColor
4f
(
*
self
.
color_current_printed
)
glColor
3f
(
*
self
.
color_current_printed
[:
-
1
]
)
if
cur_end
>
end_prev_layer
:
if
cur_end
>
end_prev_layer
:
self
.
_draw_elements
(
end_prev_layer
+
1
,
cur_end
)
self
.
_draw_elements
(
end_prev_layer
+
1
,
cur_end
)
glColor
4f
(
*
self
.
color_current
)
glColor
3f
(
*
self
.
color_current
[:
-
1
]
)
if
end
>
cur_end
:
if
end
>
cur_end
:
self
.
_draw_elements
(
cur_end
+
1
,
end
)
self
.
_draw_elements
(
cur_end
+
1
,
end
)
...
...
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