fix getenv resolution

1.6.6

- fix: inverted scene resolution from project environnement
gpv2
Pullusb 2021-09-20 12:21:04 +02:00
parent a9ed3f7e79
commit 884ee2a695
2 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,9 @@
# Changelog
1.6.6
- fix: inverted scene resolution from project environnement
1.6.5
- feat: check canvas alignement of the Gp object compare to chosen draw axis

View File

@ -15,7 +15,7 @@ bl_info = {
"name": "GP toolbox",
"description": "Set of tools for Grease Pencil in animation production",
"author": "Samuel Bernou, Christophe Seux",
"version": (1, 6, 5),
"version": (1, 6, 6),
"blender": (2, 91, 0),
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
"warning": "",
@ -486,11 +486,11 @@ def set_env_properties():
fps = os.getenv('FPS')
prefs.fps = int(fps) if fps else prefs.fps
render_height = os.getenv('RENDER_HEIGHT')
prefs.render_res_x = int(render_height) if render_height else prefs.render_res_x
render_width = os.getenv('RENDER_WIDTH')
prefs.render_res_y = int(render_width) if render_width else prefs.render_res_y
prefs.render_res_x = int(render_width) if render_width else prefs.render_res_x
render_height = os.getenv('RENDER_HEIGHT')
prefs.render_res_y = int(render_height) if render_height else prefs.render_res_y
palettes = os.getenv('PALETTES')
if prefs.use_env_palettes: