Blender Git Loki

Kaikki Blender Git kommitit.

Page: 5706 / 8462

December 8, 2013, 11:53 (GMT)
Style: use frozen sets
December 8, 2013, 11:20 (GMT)
Cycles: Update stdosl.h to OSL 1.4.0. (includes new aastep functions).
December 8, 2013, 11:13 (GMT)
Code cleanup: UI cleanup for cycles UI code and fix typo in system info.
December 8, 2013, 09:32 (GMT)
Skeleton files for all remaining point cache user types, so we can start
replacing the old point cache entirely.
December 8, 2013, 09:19 (GMT)
Bummer, forgot to test with OSL disabled.
December 8, 2013, 09:11 (GMT)
Correction to previous commit, sorry
December 8, 2013, 09:03 (GMT)
Extend system-info with information about OIIO, OCIO and OSL

Summary:
Version of those libraries might be useful to know.

- OIIO and OCIO is exposed via bpy.app.oiio and bpy.app.ocio.
There're "supported", "version" and "version_string" defined
in those modules.

- OSL is available as _cycles.osl_version and _cycles.osl_version_string.

Reviewers: campbellbarton

Reviewed By: campbellbarton

CC: dingto

Differential Revision: https://developer.blender.org/D79
December 8, 2013, 08:02 (GMT)
Moved object/modifier/sim resets out of the BKE_ptcache_id_reset
function. This is a design cleanup, the point cache methods should only
write to the DNA when retrieving state data. There were already a number
of cases where such resets occured outside of this function (such as
with rigid body worlds or smoke sims).

The BKE_ptcache_object_reset function still exists and includes these
reset calls, but there the cache user data types are accessed directly.
December 8, 2013, 08:02 (GMT)
Added XXX comment about the BAKING flag, left it in for now to not lose
track of the purpose.
December 8, 2013, 08:02 (GMT)
Removed the BAKED flag from point cache state. The cached now has a new
flag LOCK_SETTINGS instead, which should indicate more clearly that it
is about preventing cache modification by disabling user settings
changes.

The cache should not have to care about this setting in the first place.
It becomes increasingly difficult to control changed simulation settings
anyway (scripting!), and the cache should not even try to exert control
over sims this way. Eventually this flag should be a feature of
simulations and modifiers, using it as a 3rd option beside
enabled/disabled and using only existing cached data.
December 8, 2013, 08:02 (GMT)
Removed the SIMULATION_VALID flag entirely. This was only used by the
bake operators.
December 8, 2013, 08:02 (GMT)
Completely removed the "bake" operators for point cache. This feature
will get a complete replacement, removing it altogether makes this much
easier.
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.
December 8, 2013, 08:02 (GMT)
Build the archive filename inside the base Reader/Writer constructor
from info in the PointCache. This way we can replace it more flexibly
with other data streams, packed files, memory buffers etc.
December 8, 2013, 08:02 (GMT)
Make the archive file name construction based on PointCache settings
internal to the path utility function.
December 8, 2013, 08:02 (GMT)
Partial cleanup of the point cache UI panel, using a number of booleans
to store all the stupifying special cases. Not complete and will need
a general overhaul anyway ...
December 8, 2013, 08:02 (GMT)
Removed or disabled remaining BKE_pointcache calls in particle_system.
Only DNA read(!) access to PointCache is allowed (otherwise would have
to wrap all the flag checks etc., this could be done later still).

Particle edit mode uses a lot of badly designed point cache DNA writing,
so for now is disabled (or broken).
December 8, 2013, 08:02 (GMT)
Moved remaining state variables of the PointCache DNA struct into the
PointCacheState struct.
December 8, 2013, 08:02 (GMT)
Unused function parameter.
December 8, 2013, 08:02 (GMT)
Cleanup and restructuring: New 'state' struct in PointCache of type
PointCacheState, which holds all the non-user-defined state variables
for baking and validity. This has its own flags, so the state flags are
conceptually separated from the user-defined options.

The old flags are still in the DNA for backward compatibility mapping,
with an underscore prefix and _DEPRECATED suffix so they are not used
accidentally and name collision is avoided.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021