[Bf-extensions-cvs] [1ad4915e] master: X3D Import: Fix some geometry-types importers functions.

Bastien Montagne noreply at git.blender.org
Thu Sep 19 11:17:37 CEST 2019


Commit: 1ad4915eb52e0175c50d0fba635dd666161aad2e
Author: Bastien Montagne
Date:   Thu Sep 19 11:13:54 2019 +0200
Branches: master
https://developer.blender.org/rBA1ad4915eb52e0175c50d0fba635dd666161aad2e

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...

===================================================================

M	io_scene_x3d/__init__.py
M	io_scene_x3d/import_x3d.py

===================================================================

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:



More information about the Bf-extensions-cvs mailing list