use update() rather then update_tag(), needed for making edge data.
This commit is contained in:
@@ -506,7 +506,7 @@ class MakeDupliFace(bpy.types.Operator):
|
|||||||
|
|
||||||
mesh.vertices.foreach_set("co", face_verts)
|
mesh.vertices.foreach_set("co", face_verts)
|
||||||
mesh.faces.foreach_set("vertices_raw", faces)
|
mesh.faces.foreach_set("vertices_raw", faces)
|
||||||
mesh.update_tag() # generates edge data
|
mesh.update() # generates edge data
|
||||||
|
|
||||||
# pick an object to use
|
# pick an object to use
|
||||||
obj = objects[0]
|
obj = objects[0]
|
||||||
|
@@ -77,7 +77,7 @@ class AddBox(bpy.types.Operator):
|
|||||||
|
|
||||||
mesh.vertices.foreach_set("co", verts_loc)
|
mesh.vertices.foreach_set("co", verts_loc)
|
||||||
mesh.faces.foreach_set("vertices_raw", faces)
|
mesh.faces.foreach_set("vertices_raw", faces)
|
||||||
mesh.update_tag()
|
mesh.update()
|
||||||
|
|
||||||
# add the mesh as an object into the scene with this utility module
|
# add the mesh as an object into the scene with this utility module
|
||||||
import add_object_utils
|
import add_object_utils
|
||||||
|
Reference in New Issue
Block a user