PLY Import bug #70724

Closed
opened 2019-10-11 06:44:35 +02:00 by Andrew Petersen · 3 comments

System Information
Operating system: Windows 10, Ubuntu 16.04 LTS

Blender Version
Broken: 2.8 master
Worked: none

Short description of error

Adding a custom property of a string type is currently broken in (tested) python versions > 3.5.X. I believe the error occurs at line 67 in import_ply.py ( https://developer.blender.org/diffusion/BA/browse/master/io_mesh_ply/import_ply.py$67 ) . A sliced object becomes an , which is then compared to the string '"' . I think this always returns False. In python 2.7.X this comparison works as they are interpreted as string objects.

Exact steps for others to reproduce the error
Load any PLY file with a custom string property. An example is attached. fails.ply

**System Information** Operating system: Windows 10, Ubuntu 16.04 LTS **Blender Version** Broken: 2.8 master Worked: none **Short description of error** Adding a custom property of a string type is currently broken in (tested) python versions > 3.5.X. I believe the error occurs at line 67 in import_ply.py ( https://developer.blender.org/diffusion/BA/browse/master/io_mesh_ply/import_ply.py$67 ) . A sliced <bytes> object becomes an <int>, which is then compared to the string '"' . I think this always returns False. In python 2.7.X this comparison works as they are interpreted as string objects. **Exact steps for others to reproduce the error** Load any PLY file with a custom string property. An example is attached. [fails.ply](https://archive.blender.org/developer/F7804685/fails.ply)

Added subscriber: @apetersen

Added subscriber: @apetersen

This issue was referenced by cb5cba3da0

This issue was referenced by cb5cba3da0b11eff19780fc314e1465be398ec36

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Campbell Barton self-assigned this 2019-10-11 07:26:03 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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-addons#70724
No description provided.