add margin to view fitting view-all/local-view (wasn't obvious with the models I was testing with).

This commit is contained in:
Campbell Barton
2012-11-30 06:55:36 +00:00
parent ef08e31134
commit ad2b41bc4b
4 changed files with 8 additions and 12 deletions

View File

@@ -9,6 +9,6 @@ filename = "my_script.py"
filepath = os.path.join(os.path.dirname(bpy.data.filepath), filename)
global_namespace = {"__file__": filepath, "__name__": "__main__"}
file_handle = open(filepath, 'rb')
exec(compile(file_handle.read(), filepath, 'exec'), global_namespace)
file_handle.close()
file = open(filepath, 'rb')
exec(compile(file.read(), filepath, 'exec'), global_namespace)
file.close()