X3D/VRML2 Import failing on files that have Shape nodes with missing coord/coordIndex sections #87766
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#87766
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Fedora WS 33
Graphics card: Nvidia Geforce GTX 1080 Ti, Nvidia Geforce GTX 980 Ti
Blender Version
Broken: 2.92 and earlier
Short description of error
X3D/VRML2 import fails on the supplied file (plate.wrl). Other VRML viewers/importers handle the file just fine.
The VRML2 file contains a few Shape nodes with geometry IndexedFaceSet blocks that are missing a coord and coordIndex Section (beginning at line 1062) . This leads to a failure on import as the importer expects the geometry block to have a coord section.
line 1893 in the importMesh_IndexedFaceSet function in import_x3d.py
assumes it always gets a valid spec but getChildBySpec can return NoneType. So there need to be checks in place and it needs to be handled up the chain.
I have created a pull request on the github.com mirror of the blender addons that adds these checks and ignores the empty Shape nodes for now: https://github.com/blender/blender-addons/pull/7
Error itself:
Exact steps for others to reproduce the error
File >> Import >> X3D Extensible 3D (.x3d/.wrl)
Select supplied file (plate.wrl) >> Import X3d/VRML2
plate.wrl
Added subscriber: @Nidus
Changed status from 'Needs Triage' to: 'Confirmed'