mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-12 01:08:32 +03:00
ReignEngine: Set loop frame range for particle effects
Without this, update_motion cannot calculate current_frame correctly when the effect is used with RE_MOTION_STATE_LOOP state.
This commit is contained in:
+2
-2
@@ -741,8 +741,8 @@ void particle_effect_calc_frame_range(struct particle_effect *effect, struct mot
|
||||
if (end_frame < obj_end)
|
||||
end_frame = obj_end;
|
||||
}
|
||||
motion->frame_begin = begin_frame;
|
||||
motion->frame_end = end_frame;
|
||||
motion->frame_begin = motion->loop_frame_begin = begin_frame;
|
||||
motion->frame_end = motion->loop_frame_end = end_frame;
|
||||
}
|
||||
|
||||
static void update_camera_quake(struct RE_instance *inst, struct particle_object *po)
|
||||
|
||||
Reference in New Issue
Block a user