Skip to content

Commit

Permalink
Fix issue creating temp files and saving on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
benrugg committed Oct 28, 2023
1 parent cbb8fb6 commit 1766f67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "AI Render - Stable Diffusion in Blender",
"description": "Create amazing images using Stable Diffusion AI",
"author": "Ben Rugg",
"version": (0, 10, 0),
"version": (0, 10, 1),
"blender": (3, 0, 0),
"location": "Render Properties > AI Render",
"warning": "",
Expand Down
3 changes: 2 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import os
import shutil
import math
import platform
import time
import tempfile
from . import config
Expand All @@ -39,7 +40,7 @@
example_dimensions = [512, 640, 768, 896, 960, 1024, 1280, 1344, 1600, 1920, 2048]
file_formats = {"JPEG": "jpg", "BMP": "bmp", "IRIS": "rgb", "PNG": "png", "JPEG2000": "jp2", "TARGA": "tga", "TARGA_RAW": "tga", "CINEON": "cin", "DPX": "dpx", "OPEN_EXR_MULTILAYER": "exr", "OPEN_EXR": "exr", "HDR": "hdr", "TIFF": "tif", "WEBP": "webp"}

max_filename_length = 230
max_filename_length = 128 if platform.system() == "Windows" else 230


def get_addon_preferences(context=None):
Expand Down

0 comments on commit 1766f67

Please sign in to comment.