[Bf-extensions-cvs] [8b45ab40] master: Fix T50396, contrib addon to read pdf inverted some files.

Howard Trickey noreply at git.blender.org
Tue May 30 15:49:19 CEST 2017


Commit: 8b45ab40276f41aaa1da30317ec646fb5015af0e
Author: Howard Trickey
Date:   Tue May 30 09:46:24 2017 -0400
Branches: master
https://developer.blender.org/rBAC8b45ab40276f41aaa1da30317ec646fb5015af0e

Fix T50396, contrib addon to read pdf inverted some files.

Code was looking for %%EndSetup and mistakenly started 9 characters
in for parsing if not found (causing skip of first transformation
matrix setting in the example file).

===================================================================

M	io_vector/vecfile.py

===================================================================

diff --git a/io_vector/vecfile.py b/io_vector/vecfile.py
index c7eb328e..808a84e3 100644
--- a/io_vector/vecfile.py
+++ b/io_vector/vecfile.py
@@ -192,9 +192,10 @@ def TokenizeAIEPS(s):
     """
 
     i = s.find("%%EndSetup")
-    i += 10
     if i == -1:
-        return (False, "couldn't find illustration part of file")
+        i = 0
+    else:
+        i += 10
     ans = []
     while i < len(s):
         c = s[i]



More information about the Bf-extensions-cvs mailing list