Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
correct parsing of control points
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
GUI/xasyFile.py
There are no files selected for viewing
|
|
@@ -211,7 +211,7 @@ def parsePathExpression(expr): |
|
|
for a in range(len(nodes)): |
|
|
if nodes[a] != "cycle": |
|
|
nodes[a] = eval(nodes[a]) |
|
|
controls = [eval(a.replace("controls", "").split("and")) for a in tokens if a.startswith("controls")] |
|
|
controls = [[eval(b) for b in a.replace("controls", "").split("and")] for a in tokens if a.startswith("controls")] |
|
|
result.initFromControls(nodes, controls) |
|
|
else: |
|
|
#parse a path without control points |
|
|
|