From a91861ab43f3b845696a44c8104e61cd68cc46f3 Mon Sep 17 00:00:00 2001 From: Aspirata <102383379+Aspirata@users.noreply.github.com> Date: Wed, 9 Oct 2024 21:06:34 +0700 Subject: [PATCH] Fixed one error --- MiBlend_Source/Resource_Packs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MiBlend_Source/Resource_Packs.py b/MiBlend_Source/Resource_Packs.py index 3febbd32..64818b0c 100644 --- a/MiBlend_Source/Resource_Packs.py +++ b/MiBlend_Source/Resource_Packs.py @@ -254,6 +254,9 @@ def update_texture(new_image_path, image_texture, texture_node=None, colorspace= def animate_texture(texture_node, new_image_texture_path, ITexture_Animator, Current_node_tree, image_path=None): Texture_Animator = None auvf_node = None + if new_image_texture_path == "" and texture_node is None: + return + if new_image_texture_path != "": image_texture = bpy.data.images.get(os.path.basename(new_image_texture_path)) else: