From f283bd6c9664dc12a5cba95b3e2ed750e591869f Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 12 Feb 2019 00:03:15 +0100 Subject: [PATCH] Material: card reader, fix for values containing a = --- src/Mod/Material/importFCMat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Material/importFCMat.py b/src/Mod/Material/importFCMat.py index 769f3057c2..b83e6cd768 100644 --- a/src/Mod/Material/importFCMat.py +++ b/src/Mod/Material/importFCMat.py @@ -109,8 +109,8 @@ def read(filename): # ; is a Commend # # might be a comment too ? # [ is a Section - if not line[0] in ";#[": - k = line.split("=") + if line[0] not in ";#[": + k = line.split("=", 1) # only split once on first occurence, a link could contain a = and thus would be splitted if len(k) == 2: v = k[1].strip() if hasattr(v, "decode"):