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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-02-01 11:21:22 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-02-01 11:54:09 +0300
commitd410029833365916b2d3a1fee25d0e02c26c648a (patch)
tree31db222a7928edce605e080d6b09137d39b2ccba
parent9cc2ad1eaf941d8ed3b5542a3d5cdfccec7ba60b (diff)
x3d import: make it work without internet connection
Fixes T61052
-rw-r--r--io_scene_x3d/import_x3d.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 83dcc83d..8317563d 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -1413,6 +1413,7 @@ def x3d_parse(path):
"""
import xml.dom.minidom
import xml.sax
+ from xml.sax import handler
'''
try: doc = xml.dom.minidom.parse(path)
@@ -1438,6 +1439,8 @@ def x3d_parse(path):
parser = xml.sax.make_parser()
orig_set_content_handler = parser.setContentHandler
+ parser.setFeature(handler.feature_external_ges, False)
+ parser.setFeature(handler.feature_external_pes, False)
parser.setContentHandler = set_content_handler
doc = xml.dom.minidom.parseString(data, parser)