F2 addon crash #41871

Closed
opened 2014-09-19 16:29:05 +02:00 by Mauro Fabio · 10 comments

System Information
MacBook Pro, OSX 10.9.4, NVIDIA GeForce GT 650M 1024 MB

Blender Version
Broken: 2.71.6 f2c8209

Short description of error
The F2-Addon produces the following error if there is a material slot with no material assigned to it on the edited mesh.

  File "/Users/phalaris/Blender_Development/blender-build/install/darwin/blender.app/Contents/Resources/2.71/scripts/addons/mesh_f2.py", line 358, in invoke
    quad_from_vertex(bm, sel[0], context, event)
  File "/Users/phalaris/Blender_Development/blender-build/install/darwin/blender.app/Contents/Resources/2.71/scripts/addons/mesh_f2.py", line 279, in quad_from_vertex
    uv_layer = get_uv_layer(ob, bm, mat_index)
  File "/Users/phalaris/Blender_Development/blender-build/install/darwin/blender.app/Contents/Resources/2.71/scripts/addons/mesh_f2.py", line 53, in get_uv_layer
    slot = mat.texture_slots[mat.active_texture_index]
AttributeError: 'NoneType' object has no attribute 'texture_slots'

location: <unknown location>:-1

Exact steps for others to reproduce the error
Create a cube - delete the material slot - add a new one but do not assign a material to it - try to use F2-Addon in Edit-mode

**System Information** MacBook Pro, OSX 10.9.4, NVIDIA GeForce GT 650M 1024 MB **Blender Version** Broken: 2.71.6 f2c8209 **Short description of error** The F2-Addon produces the following error if there is a material slot with no material assigned to it on the edited mesh. ``` File "/Users/phalaris/Blender_Development/blender-build/install/darwin/blender.app/Contents/Resources/2.71/scripts/addons/mesh_f2.py", line 358, in invoke quad_from_vertex(bm, sel[0], context, event) File "/Users/phalaris/Blender_Development/blender-build/install/darwin/blender.app/Contents/Resources/2.71/scripts/addons/mesh_f2.py", line 279, in quad_from_vertex uv_layer = get_uv_layer(ob, bm, mat_index) File "/Users/phalaris/Blender_Development/blender-build/install/darwin/blender.app/Contents/Resources/2.71/scripts/addons/mesh_f2.py", line 53, in get_uv_layer slot = mat.texture_slots[mat.active_texture_index] AttributeError: 'NoneType' object has no attribute 'texture_slots' location: <unknown location>:-1 ``` **Exact steps for others to reproduce the error** Create a cube - delete the material slot - add a new one but do not assign a material to it - try to use F2-Addon in Edit-mode
Author

Changed status to: 'Open'

Changed status to: 'Open'
Bart Crouch was assigned by Mauro Fabio 2014-09-19 16:29:05 +02:00
Author

Added subscriber: @MauroPfister

Added subscriber: @MauroPfister
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

I can confirm this, patch attached{F114152}

I can confirm this, patch attached{[F114152](https://archive.blender.org/developer/F114152/T41871.patch)}

Added subscriber: @Sergey

Added subscriber: @Sergey

@lichtwerk, the patch seems good. Do you mind committing it to the addons repo?

@lichtwerk, the patch seems good. Do you mind committing it to the addons repo?

This issue was referenced by 36a8b39da3

This issue was referenced by 36a8b39da392fa06f59af2cea29fe0ee36fc24f4
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Closed by commit 36a8b39da3.

Closed by commit 36a8b39da3.
Member

OKi, I commited 36a8b39da3
(hope this went through OK? - havent had an 'official commit in ages [especially none since switch to git...])

OKi, I commited 36a8b39da392fa06f59af2cea29fe0ee36fc24f4 (hope this went through OK? - havent had an 'official commit in ages [especially none since switch to git...])
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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#41871
No description provided.