Skip to content

Commit

Permalink
Fix bad find-replace reset() in animation_policy
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 704afed commit b5d4628
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions infinigen/core/placement/animation_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from numpy.random import uniform as U
from tqdm import tqdm

import infinigen.assets.utils.mesh
from infinigen.assets.utils.geometry.curve import Curve
from infinigen.core.placement.path_finding import path_finding
from infinigen.core.util import blender as butil
Expand Down Expand Up @@ -603,7 +602,7 @@ def animate_trajectory(
obj.rotation_euler.z = U(0, 2 * np.pi)

if hasattr(policy_func, "reset"):
infinigen.assets.utils.mesh.reset_preset()
policy_func.reset()

keyframe(obj, obj.location, obj.rotation_euler, 0, interp="LINEAR")
try_animate_trajectory_func = (
Expand Down

0 comments on commit b5d4628

Please sign in to comment.