fix wrl files with pixel image textures not importing correctly #4

Merged
Cedric Steiert merged 2 commits from Bujus_Krachus/io_scene_x3d:fix-wrl-import-image-texture into main 2024-08-06 17:23:53 +02:00

2 Commits

Author SHA1 Message Date
BujusKrachus
05d0cb8b7f Merge branch 'main' into fix-wrl-import-image-texture 2024-08-06 17:23:11 +02:00
d128be98b3 fix wrl files with pixel image textures not importing correctly
this fix for blender/blender-addons#85269 contains three parts for wrl pixel image textures:
- use newer api specification, like suggested in a comment on the issue
- read hex color values across multiple lines/fields, instead of trusting int values being present in single line (the file from issue had hex values, multiline instead of int values singleline)
- ignoring pixel image textures with no pixel data (idk why these would even exist, but the attached file had those)
Now the file from the issue imports and displays correctly.
2024-07-20 03:22:09 +02:00