From c9099ecc373051beff2b192d1dcb49da55db4062 Mon Sep 17 00:00:00 2001 From: David Bernard Date: Fri, 28 Aug 2015 07:54:48 +0200 Subject: [PATCH] =?UTF-8?q?quick=20fix=20to=20avoid=20error=20when=20asset?= =?UTF-8?q?s=5Fpath=20doesn=E2=80=99t=20exist=20(Path.resolve=20requires?= =?UTF-8?q?=20existing=20path)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers.py b/helpers.py index dcf716d..a7b9de7 100644 --- a/helpers.py +++ b/helpers.py @@ -223,4 +223,6 @@ def projection_matrix(camd): def blender_path_abs(path): from pathlib import Path - return str(Path(bpy.path.abspath(str(path).replace("//../", "//../../"))).resolve()) + # return str(Path(bpy.path.abspath(str(path).replace("//../", "//../../"))).resolve()) + return bpy.path.abspath(str(path).replace("//../", "//../../")) + # return path