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...
This commit is contained in:
Bastien Montagne 2019-09-19 11:13:54 +02:00
parent 9e4ce4dff8
commit 1ad4915eb5
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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: