Resets simulation cache when frame rate changes, so we don't get inconsistent accumulations when frame rate is changed in the middle of the simulation. Pull Request: https://projects.blender.org/blender/blender/pulls/108004
25 lines
488 B
C
25 lines
488 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct Depsgraph;
|
|
struct Main;
|
|
struct Scene;
|
|
struct Simulation;
|
|
|
|
void *BKE_simulation_add(struct Main *bmain, const char *name);
|
|
|
|
void BKE_simulation_data_update(struct Depsgraph *depsgraph,
|
|
struct Scene *scene,
|
|
struct Simulation *simulation);
|
|
|
|
void BKE_simulation_reset_scene(Scene *scene);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|