[Bf-extensions-cvs] [c2c5392e] master: svg (official) addon: cleanup: Simpified a code path

jim man noreply at git.blender.org
Thu Jul 29 14:22:42 CEST 2021


Commit: c2c5392e004bb8bafea84d8d69df31ef9f03d46f
Author: jim man
Date:   Thu Jul 29 14:22:11 2021 +0200
Branches: master
https://developer.blender.org/rBAc2c5392e004bb8bafea84d8d69df31ef9f03d46f

svg (official) addon: cleanup: Simpified a code path

Simpified a code path

The last return was never reached

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D11964

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

M	io_curve_svg/import_svg.py

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

diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index b98aacbb..ac9a2260 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -83,10 +83,7 @@ def SVGParseCoord(coord, size):
 
     if unit == '%':
         return float(size) / 100.0 * val
-    else:
-        return val * units[unit]
-
-    return val
+    return val * units[unit]
 
 
 def SVGRectFromNode(node, context):



More information about the Bf-extensions-cvs mailing list