Skip to content

Commit

Permalink
Fix import in chopped_trees
Browse files Browse the repository at this point in the history
  • Loading branch information
araistrick authored and pvl-bot committed Jul 12, 2024
1 parent c94e5a6 commit 704afed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infinigen/assets/scatters/chopped_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
)
from infinigen.core.placement.instance_scatter import scatter_instances
from infinigen.core.util import blender as butil
from infinigen.core.util import math as mutil
from infinigen.core.util.math import randomspacing, rotate_match_directions

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -65,7 +66,7 @@ def chop_object(obj, n, cutter_size, max_tilt=15, thickness=0.03):

def cutter(t):
butil.select_none()
z = butil.lerp(bbox[:, -1].min(), bbox[:, -1].max(), t)
z = mutil.lerp(bbox[:, -1].min(), bbox[:, -1].max(), t)
loc = (*bbox[:, :-1].mean(axis=0), z)
bpy.ops.mesh.primitive_plane_add(size=cutter_size, location=loc)
cut = bpy.context.active_object
Expand Down

0 comments on commit 704afed

Please sign in to comment.