Page MenuHome
Paste P900

T61052 snippet
ActivePublic

Authored by Philipp Oeser (lichtwerk) on Jan 31 2019, 3:10 PM.
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 903222cf..efcbb64e 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)