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-12 13:23:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-12 13:23:10 +0400
commitd5cc77461e4c5b3925e5b6a8c71f94868ba15097 (patch)
tree5983e3c51d2f17349e79c03ea580f1ca2af9b348 /io_import_scene_dxf.py
parentfe1ca5fa5b11d347d6fb0d50724d6e03228840eb (diff)
fix [#32524] Problem Importing DXF files created with Bricscad V12
support for loading DXF's with thumbnails (just skip them)
Diffstat (limited to 'io_import_scene_dxf.py')
-rw-r--r--io_import_scene_dxf.py27
1 files changed, 26 insertions, 1 deletions
diff --git a/io_import_scene_dxf.py b/io_import_scene_dxf.py
index 511891c2..87cdd51e 100644
--- a/io_import_scene_dxf.py
+++ b/io_import_scene_dxf.py
@@ -1843,6 +1843,8 @@ def readDxfFile(fileName):
known = False
elif data == 'OBJECTS':
parseObjects(section, statements, handles)
+ elif data == 'THUMBNAILIMAGE':
+ parseThumbnail(section, statements, handles)
sections[data] = section
elif code == 999:
pass
@@ -2229,7 +2231,30 @@ def parseObjects(data, statements, handles):
return
return
-
+
+#
+# THUMBNAILIMAGE
+# 90
+# 45940
+# 310
+# 28000000B40000005500000001001800000000000000000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+# 310
+# FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+# 310
+# .......
+# 0
+# ENDSEC
+
+def parseThumbnail(section, statements, handles):
+ """ Just skip these """
+ while statements:
+ (code,data) = statements.pop()
+ if code == 0:
+ if data == 'ENDSEC':
+ return
+
+ return
+
#
# buildGeometry(entities):
# addMesh(name, verts, edges, faces):