From c68d521c55b7dc5b8642c488f1d7cb3c0a4eb42c Mon Sep 17 00:00:00 2001 From: Yahia Date: Fri, 16 Dec 2022 17:58:11 +0200 Subject: [PATCH] Fix ImageTexture image path --- __init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 4d66ef4..f4f7ae0 100644 --- a/__init__.py +++ b/__init__.py @@ -39,8 +39,11 @@ def main(operator, context): if node_active.image.filepath == "": operator.report({'ERROR'}, "Please add an image") return + + texImage = node_active.image + texImagePath = bpy.path.abspath(texImage.filepath, library= texImage.library) #Copy the image from ImageTexture to plugin input folder - shutil.copy2(node_active.image.filepath, absolute_path("input")) + shutil.copy2(texImagePath, absolute_path("input")) import site site.addsitedir(absolute_path('.python_dependencies'))