F2 error "New Face from edges" #68342

Closed
opened 2019-08-06 23:40:33 +02:00 by Valentin · 6 comments

{F7652263}System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.36

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: blender/blender@f6cb5f5449
Worked: (optional)

Short description of error
there's the Error alert appears when I try to create face in edit mode

Exact steps for others to reproduce the error
when you have only three edges and trying to create New face when only one of them is selected it doesn't allow you, of course, but also Error messages is shown.
See attached file, I marked edges with incorrect behaviour. When you select the left one and press F - it creates weird face. If you select the right edge and press F - you'll will see the error message.

  1. you have three edges connected but without created face between them
  2. select one of them
  3. press F :)
  4. Error

Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender\2.80\scripts\addons\mesh_f2.py", line 590, in invoke
  quad_from_edge(bm, edges_sel[0], context, event)
File "C:\Program Files\Blender Foundation\Blender\2.80\scripts\addons\mesh_f2.py", line 138, in quad_from_edge
  if ref_verts.index(va_1) > ref_verts.index(va_2):

ValueError: <BMVert(0x000002254A8A6A50), index=24> is not in list

location: :-1

{[F7652263](https://archive.blender.org/developer/F7652263/error.blend)}**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.36 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `blender/blender@f6cb5f5449` Worked: (optional) **Short description of error** there's the Error alert appears when I try to create face in edit mode **Exact steps for others to reproduce the error** when you have only three edges and trying to create New face when only one of them is selected it doesn't allow you, of course, but also Error messages is shown. See attached file, I marked edges with incorrect behaviour. When you select the left one and press F - it creates weird face. If you select the right edge and press F - you'll will see the error message. 1. you have three edges connected but without created face between them 2. select one of them 3. press F :) 4. Error Traceback (most recent call last): ``` File "C:\Program Files\Blender Foundation\Blender\2.80\scripts\addons\mesh_f2.py", line 590, in invoke quad_from_edge(bm, edges_sel[0], context, event) File "C:\Program Files\Blender Foundation\Blender\2.80\scripts\addons\mesh_f2.py", line 138, in quad_from_edge if ref_verts.index(va_1) > ref_verts.index(va_2): ``` ValueError: <BMVert(0x000002254A8A6A50), index=24> is not in list location: <unknown location>:-1
Author

Added subscriber: @viralbaal

Added subscriber: @viralbaal
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Can confirm

Can confirm
Philipp Oeser changed title from Error "New Face from edges" to F2 error "New Face from edges" 2019-08-07 15:59:29 +02:00

This issue was referenced by ce63288eaf

This issue was referenced by ce63288eaf7033ec52e4e13a9a80e94b96e55920
Philipp Oeser self-assigned this 2019-08-07 17:53:51 +02:00
Member

Will commit a fix for the error.

The "incorrect" case mentioned here is pretty hard to detect in code [at least for me :)], as there are open edges around the selected edges which could make up a quad that is indeed valid...
Note though that you can guide the operator by moving your mouse close to the edges that should making up the face [operator checks distance].
So in this case: select the "left one", move your mouse to the corner of the triangle you want to be created, hit F and the face will be created just fine.

Will commit a fix for the error. The "incorrect" case mentioned here is pretty hard to detect in code [at least for me :)], as there are open edges around the selected edges which could make up a quad that is indeed valid... Note though that you can guide the operator by moving your mouse close to the edges that should making up the face [operator checks distance]. So in this case: select the "left one", move your mouse to the corner of the triangle you want to be created, hit F and the face will be created just fine.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#68342
No description provided.