[Bf-extensions-cvs] [d4100298] blender2.7: x3d import: make it work without internet connection
Philipp Oeser
noreply at git.blender.org
Fri Feb 1 10:04:58 CET 2019
Commit: d410029833365916b2d3a1fee25d0e02c26c648a
Author: Philipp Oeser
Date: Fri Feb 1 09:21:22 2019 +0100
Branches: blender2.7
https://developer.blender.org/rBAd410029833365916b2d3a1fee25d0e02c26c648a
x3d import: make it work without internet connection
Fixes T61052
===================================================================
M io_scene_x3d/import_x3d.py
===================================================================
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)
More information about the Bf-extensions-cvs
mailing list