Page MenuHome

Edges add script bug
Closed, InvalidPublic

Description

System Information
windows7 64
ASUS ATI Radeon HD6870

Blender Version
Broken: (All)
Worked: (None)

Short description of error
1.open blender, delete cube, add plane(we must have most simple mesh, 4 vertice, 4 edges)
2.select 'Scripting' screen layout, go to console
3.write bpy.context.object.data.edges.add(1) (add one edge)
4.go to edit mode - we will see 4 vertice and 5(!) edges
5.select any vertice or edge, and crtl + L (select linked) - blender will crash

Details

Type
Bug

Event Timeline

Bastien Montagne (mont29) claimed this task.

Thanks for the report, but no bug here, python API is designed to be efficient, not to protect the developer against himself. There are billions of ways of generating a corrupted mesh from python in Blender, it's up to you to do valid things (and you can always also use Mesh.validate() method in case you do not trust your generated geometry for some reasons, e.g. when importing from other formats).