solve() in reshape() instead of init()
This commit is contained in:
parent
f9d9d9ebfb
commit
1f98204b4a
@ -90,8 +90,6 @@ class SketchWidget:
|
|||||||
|
|
||||||
gldrawable.gl_end()
|
gldrawable.gl_end()
|
||||||
|
|
||||||
self.solve()
|
|
||||||
|
|
||||||
def reshape(self, glarea, event):
|
def reshape(self, glarea, event):
|
||||||
# get GLContext and GLDrawable
|
# get GLContext and GLDrawable
|
||||||
glcontext = glarea.get_gl_context()
|
glcontext = glarea.get_gl_context()
|
||||||
@ -113,6 +111,7 @@ class SketchWidget:
|
|||||||
|
|
||||||
gldrawable.gl_end()
|
gldrawable.gl_end()
|
||||||
|
|
||||||
|
self.solve()
|
||||||
self.update_snap_ptrefs()
|
self.update_snap_ptrefs()
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user