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
a01a2b28
Commit
a01a2b28
authored
Mar 30, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't force 3D viewer to be square
(and fix viewport scaling for non square viewers)
parent
6ece0b1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
panel.py
printrun/gl/panel.py
+1
-1
viz.py
printrun/gui/viz.py
+1
-1
No files found.
printrun/gl/panel.py
View file @
a01a2b28
...
...
@@ -185,7 +185,7 @@ class wxGLPanel(wx.Panel):
glLoadIdentity
()
self
.
setup_lights
()
if
self
.
orthographic
:
ratio
=
factor
*
float
(
m
in
(
self
.
width
,
self
.
height
))
/
self
.
dist
ratio
=
factor
*
float
(
m
ax
(
self
.
width
,
self
.
height
))
/
self
.
dist
self
.
zoom_factor
=
1.0
glScalef
(
ratio
,
ratio
,
1
)
...
...
printrun/gui/viz.py
View file @
a01a2b28
...
...
@@ -85,4 +85,4 @@ class VizPane(wx.BoxSizer):
bgcolor
=
root
.
settings
.
bgcolor
)
root
.
gwindow
.
Bind
(
wx
.
EVT_CLOSE
,
lambda
x
:
root
.
gwindow
.
Hide
())
if
not
isinstance
(
root
.
gviz
,
NoViz
):
self
.
Add
(
root
.
gviz
.
widget
,
1
,
flag
=
wx
.
SHAPE
D
|
wx
.
ALIGN_CENTER_HORIZONTAL
)
self
.
Add
(
root
.
gviz
.
widget
,
1
,
flag
=
wx
.
EXPAN
D
|
wx
.
ALIGN_CENTER_HORIZONTAL
)
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