Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-09-21 02:15:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-21 02:15:06 +0400
commitf9d25a262e78c7b021f349fcaf3a1e0af57e239b (patch)
treef217510f8456a38240b38314462f75363a547339 /io_scene_x3d
parente659d2f24045ee3a6aafe07e294595d4f2787847 (diff)
fix [#32612] VRML import does not handle spaces in url's correctly
patch by Alan Hudson
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/import_x3d.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index a874ab90..78b8efb8 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -22,6 +22,7 @@ DEBUG = False
# This should work without a blender at all
import os
+import shlex
def imageConvertCompat(path):
@@ -1173,7 +1174,8 @@ class vrmlNode(object):
else:
value += '\n' + l
- value_all = value.split()
+ # use shlex so we get '"a b" "b v"' --> '"a b"', '"b v"'
+ value_all = shlex.split(value, posix=False)
def iskey(k):
if k[0] != '"' and k[0].isalpha() and k.upper() not in {'TRUE', 'FALSE'}: