From 884ee2a69519ad6f69bf217bdaefeadfb255df74 Mon Sep 17 00:00:00 2001 From: Pullusb Date: Mon, 20 Sep 2021 12:21:04 +0200 Subject: [PATCH] fix getenv resolution 1.6.6 - fix: inverted scene resolution from project environnement --- CHANGELOG.md | 4 ++++ __init__.py | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d20aba0..eac1ca4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/__init__.py b/__init__.py index 48bab4b..03b6c1e 100755 --- a/__init__.py +++ b/__init__.py @@ -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: