Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pyMKcam
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
pyMKcam
Commits
3ccab5bf
Commit
3ccab5bf
authored
Nov 06, 2012
by
Lars Kruse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't break on zoom in/out even if no objects are visible
parent
2f733bad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
OpenGLWindow.py
pycam/Plugins/OpenGLWindow.py
+2
-0
No files found.
pycam/Plugins/OpenGLWindow.py
View file @
3ccab5bf
...
...
@@ -951,6 +951,8 @@ class Camera(object):
def
shift_view
(
self
,
x_dist
=
0
,
y_dist
=
0
):
obj_dim
=
[]
low
,
high
=
self
.
_get_low_high_dims
()
if
None
in
low
or
None
in
high
:
return
for
index
in
range
(
3
):
obj_dim
.
append
(
high
[
index
]
-
low
[
index
])
max_dim
=
max
(
obj_dim
)
...
...
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