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:
parent
9e4ce4dff8
commit
1ad4915eb5
|
@ -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",
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue