diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-09-19 12:13:54 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-09-19 12:13:54 +0300 |
commit | 1ad4915eb52e0175c50d0fba635dd666161aad2e (patch) | |
tree | a19c0c7ec67a15e23523d27827bb91e9937e1c57 | |
parent | 9e4ce4dff8b336402fdc0b20c7c1181650e97f61 (diff) |
X3D Import: Fix some geometry-types importers functions.
Based on D5822 by Tomas Antecky (@ta), but no reason to keep that unused
parameter since those mesh geometry importer functions are all always
only called with two parameters...
-rw-r--r-- | io_scene_x3d/__init__.py | 2 | ||||
-rw-r--r-- | io_scene_x3d/import_x3d.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_x3d/__init__.py b/io_scene_x3d/__init__.py index e02cdc3b..4aec9750 100644 --- a/io_scene_x3d/__init__.py +++ b/io_scene_x3d/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "Web3D X3D/VRML2 format", "author": "Campbell Barton, Bart, Bastien Montagne, Seva Alekseyev", - "version": (2, 2, 3), + "version": (2, 2, 4), "blender": (2, 81, 6), "location": "File > Import-Export", "description": "Import-Export X3D, Import VRML2", diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 9c1ceae8..ffd1a3e0 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -2375,7 +2375,7 @@ def importMesh_LineSet(geom, ancestry): return bpycurve -def importMesh_IndexedLineSet(geom, ancestry, _): +def importMesh_IndexedLineSet(geom, ancestry): # VRML not x3d # coord = geom.getChildByName('coord') # 'Coordinate' coord = geom.getChildBySpec('Coordinate') # works for x3d and vrml @@ -2419,7 +2419,7 @@ def importMesh_IndexedLineSet(geom, ancestry, _): return bpycurve -def importMesh_PointSet(geom, ancestry, _): +def importMesh_PointSet(geom, ancestry): # VRML not x3d coord = geom.getChildBySpec('Coordinate') # works for x3d and vrml if coord: |