Skip to content
Snippets Groups Projects
Commit 151e9f3c authored by Campbell Barton's avatar Campbell Barton
Browse files

update for change in blender api

parent c6519481
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ import chunk
import bpy
import mathutils
from mathutils.geometry import PolyFill
from mathutils.geometry import tesselate_polygon
class _obj_layer(object):
......@@ -1140,7 +1140,7 @@ def build_objects(object_layers, object_surfs, object_tags, object_name, add_sub
v_locs= []
for vi in range(len(ng)):
v_locs.append(mathutils.Vector(layer_data.pnts[ngons[ng_key][vi]]))
tris= PolyFill([v_locs])
tris= tesselate_polygon([v_locs])
me.faces.add(len(tris))
for tri in tris:
face= me.faces[face_offset]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment