OBJ import - load_material_image - map_options not parsed correctly #52945
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#52945
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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 and graphics card
Win 8.1 - GeForce GTX 765M
Blender Version
Broken: 2.79 - #5bd8ac9
Worked: (optional)
Short description of error
This part seems to be broken. Doesn't yield a valid map
Possible fix:
Furthermore:
map_options (float) values are prefixed with 'bytes' : eg b'0.2'.
When a float value needs to be set, the value needs to be decoded from utf8.
eg: something like float(b'0.2'.decode('utf8'))
Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
zzz.mtl
Import attached OBJ file with bump maps and observe that the "-bm" map_option isn't set correctly on "blender_material.texture_slots- [x].normal_factor".
zzz.obj
Changed status to: 'Open'
Added subscriber: @timknip
proposed.patch
Here's a somewhat ugly solution.
Simpler: so the problems were:
curr_token
still had items after the loop, these items were not added tomap_options
.bump_map- [x]
was not cast to float.better.patch
Added subscribers: @mont29, @ideasman42, @Sergey
@ideasman42 or @mont29, mind having a look here? Thanks!
@timknip thanks a lot for report and investigation, last patch makes total sense indeed, will commit.
This issue was referenced by
1f868b2e5d
This issue was referenced by
e8f09a8e0b
Changed status from 'Open' to: 'Resolved'