Skip to content

Commit

Permalink
FIX: Loading file in 3D main view and 3D detail view
Browse files Browse the repository at this point in the history
It's a regression in my recent commit.
Used _ for a dummy int variable, and _('localization')  broke.
Added logging where the exception was
silently ignored
  • Loading branch information
volconst committed Jun 7, 2020
1 parent 4882ba9 commit e621728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion printrun/gl/libtatlin/actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def load_data(self, model_data, callback=None):
new_vertices_count = new_vertices_len//coordspervertex
# settings support alpha (transperancy), but it is ignored here
gline_color = self.movement_color(gline)[:buffered_color_len]
for _ in range(new_vertices_count):
for vi in range(new_vertices_count):
colors[color_k:color_k+buffered_color_len] = gline_color
color_k += buffered_color_len

Expand Down
1 change: 1 addition & 0 deletions printrun/pronterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,7 @@ def loadviz(self, gcode = None):
# finalized model from the main visualization
self.gwindow.p.addfile(gcode)
except:
logging.error(traceback.format_exc())
wx.CallAfter(self.gviz.Refresh)

# --------------------------------------------------------------
Expand Down

0 comments on commit e621728

Please sign in to comment.