Import of gltf files does not maintain image filenames #73856

Closed
opened 2020-02-15 22:24:53 +01:00 by Scott · 4 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13

Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: 77d23b0bd7
Worked: (optional) 2.81 Has the same behavior

Short description of error
After importing a gltf file. The filepath attribute for the image has a random name with no extension. (Its probably a temp file name create as part of the import process)

Exact steps for others to reproduce the error
Import a gltf file into the default blend.
Save as a blender file in a new directory
Close blender and open the new file by double clicking, or file open.
go to File -> External Data -> Unpack all into files -> Use files in current directory
a textures folder will be created in the new directory
the files in the textures directory will not have the names or extensions that were in the gltf file. Or as displayed in the blend file.

Blender does know the names of the image files as they can be seen in the outliner under blender file-> images. and in the image nodes in the shader editor.

If a blender files is created from scratch and images are packed into it file names appear to be preserved.

The attached zip came from url below. Other GLTF files from this site have the same image filename problem.
https://sketchfab.com/3d-models/geth-normale-trooper-2727eac05b184aee83b8affe7f8fb84f

geth_normale_trooper.zip

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13 **Blender Version** Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: `77d23b0bd7` Worked: (optional) 2.81 Has the same behavior **Short description of error** After importing a gltf file. The filepath attribute for the image has a random name with no extension. (Its probably a temp file name create as part of the import process) **Exact steps for others to reproduce the error** Import a gltf file into the default blend. Save as a blender file in a new directory Close blender and open the new file by double clicking, or file open. go to File -> External Data -> Unpack all into files -> Use files in current directory a textures folder will be created in the new directory the files in the textures directory will not have the names or extensions that were in the gltf file. Or as displayed in the blend file. Blender does know the names of the image files as they can be seen in the outliner under blender file-> images. and in the image nodes in the shader editor. If a blender files is created from scratch and images are packed into it file names appear to be preserved. The attached zip came from url below. Other GLTF files from this site have the same image filename problem. https://sketchfab.com/3d-models/geth-normale-trooper-2727eac05b184aee83b8affe7f8fb84f [geth_normale_trooper.zip](https://archive.blender.org/developer/F8341839/geth_normale_trooper.zip)
Author

Added subscriber: @Scotty918

Added subscriber: @Scotty918

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Richard Antalik self-assigned this 2020-02-17 11:58:59 +01:00

Seems to be fixed in 2.83.

Can't find relevant commit

Seems to be fixed in 2.83. Can't find relevant commit
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#73856
No description provided.