chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change how the matrixes are applied on SVG objects. Fix a minor bug when the renderin...
[cura.git]
/
Cura
/
gui
/
util
/
openglGui.py
diff --git
a/Cura/gui/util/openglGui.py
b/Cura/gui/util/openglGui.py
index 3d105179dcdf431c79311b8b0252d44c6466cecf..bab767e3235ba62e5e1d2846f8d70f05e33df86c 100644
(file)
--- a/
Cura/gui/util/openglGui.py
+++ b/
Cura/gui/util/openglGui.py
@@
-230,6
+230,8
@@
class glGuiPanel(glcanvas.GLCanvas):
glFlush()
if version.isDevVersion():
renderTime = time.time() - renderStartTime
+ if renderTime == 0:
+ renderTime = 0.001
glLoadIdentity()
glTranslate(10, self.GetSize().GetHeight() - 30, -1)
glColor4f(0.2,0.2,0.2,0.5)