Blender Git Loki

Git Commits -> Revision bea5cec

Revision bea5cec by Lukas Toenne (alembic_pointcache)
December 8, 2013, 08:02 (GMT)
Marked the PTC_STATE_SIMULATION_VALID flag as deprecated. This is only
used by the bake operator, but keeping track of the sync state of cache
data vs. simulation settings needs to be radically simplified.

The API should provide a way of detecting whether a valid simulation
state can be obtained for a certain frame.

/* check if a frame can be read from the cache (no data is modified) */
PTCReadSampleResult PTC_test_sample(struct PTCReader *reader, float frame);
/* try to obtain a cache sample and write to DNA data */
PTCReadSampleResult PTC_read_sample(struct PTCReader *reader, float frame);

Beyond that the cache should be oblivious of the simulation state. When
settings or dependencies are changed which invalidate the simulation
cache state this should invalidate all cache samples (or possible a
certain frame range), but the cache itself should not need to keep track
of the simulation as a whole.

Commit Details:

Full Hash: bea5cec25eaff415a46d72f4a437b62cf9118e7a
Parent Commit: b69a448
Lines Changed: +9, -11

4 Modified Paths:

/source/blender/blenkernel/intern/pointcache.c (+6, -6) (Diff)
/source/blender/blenloader/intern/readfile.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_pointcache_types.h (+1, -1) (Diff)
/source/blender/pointcache/PTC_api.cpp (+0, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021