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
20bff89b
Commit
20bff89b
authored
Apr 02, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly delete VBOs in light gcode model
parent
a6b9c72d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
actors.py
printrun/gl/libtatlin/actors.py
+5
-0
No files found.
printrun/gl/libtatlin/actors.py
View file @
20bff89b
...
...
@@ -716,6 +716,7 @@ class GcodeModelLight(Model):
color_current
=
(
0
,
0.9
,
1.0
,
0.8
)
color_current_printed
=
(
0.1
,
0.4
,
0
,
0.8
)
buffers_created
=
False
use_vbos
=
True
loaded
=
False
...
...
@@ -834,8 +835,12 @@ class GcodeModelLight(Model):
with
self
.
lock
:
self
.
layers_loaded
=
self
.
max_layers
self
.
initialized
=
True
if
self
.
buffers_created
:
self
.
vertex_buffer
.
delete
()
self
.
vertex_color_buffer
.
delete
()
self
.
vertex_buffer
=
numpy2vbo
(
self
.
vertices
,
use_vbos
=
self
.
use_vbos
)
self
.
vertex_color_buffer
=
numpy2vbo
(
self
.
colors
,
use_vbos
=
self
.
use_vbos
)
# each pair of vertices shares the color
self
.
buffers_created
=
True
def
display
(
self
,
mode_2d
=
False
):
with
self
.
lock
:
...
...
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