From 4a4d72b410e5baa94d6eae96396c9d33b1b1137a Mon Sep 17 00:00:00 2001 From: Pullusb Date: Wed, 23 Jun 2021 16:46:30 +0200 Subject: [PATCH] fix env load --- __init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/__init__.py b/__init__.py index 57d4e1f..cd28475 100755 --- a/__init__.py +++ b/__init__.py @@ -350,10 +350,10 @@ class GPTB_prefs(bpy.types.AddonPreferences): row.prop(self, 'render_res_x', text='Width') row.prop(self, 'render_res_y', text='Height') - ## Palette - box.label(text='Project folders:') - subbox = box.box() + subbox.label(text='Project folders:') + + ## Palette subbox.prop(self, 'use_env_palettes', text='Use Palettes Environnement Path') subbox.prop(self, 'palette_path') @@ -492,13 +492,13 @@ def set_env_properties(): prefs = get_addon_prefs() fps = os.getenv('FPS') - prefs.fps = fps if fps else prefs.fps + prefs.fps = int(fps) if fps else prefs.fps render_height = os.getenv('RENDER_HEIGHT') - prefs.render_res_x = render_height if render_height else prefs.render_res_x + 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 = render_width if render_width else prefs.render_res_y + prefs.render_res_y = int(render_width) if render_width else prefs.render_res_y palettes = os.getenv('PALETTES') if prefs.use_env_palettes: