Revisión: 14376.
[Bf-blender] revisión 14376.
Author: blendix.
Date: 2008-04-10 13:39:20 +0200 (thu, 10 apr 200.
Log message:
---------
Point caché refactoring.
=======================
Caching and baking:
-The point caché is now cleared on dag_object_flush_update (), and not cleared for time dependency Graph updates.
There is now a bake button instead of protect. Alos caché start and end frames were added todo Softbody and particles.
The Cloth autoprotect característica was removed.
The Control + b menú now a los bakes Cloth and particles next todo Softbody and fluidos. Additionally there are now frre bake and free caché menú entries.
The point caché Api has ben changed. There is now a ptcacheid structure for each point caché type that can be filled and then used todo call the point caché functions.
Pointcache structure was added todo DNA and is automátically allocated for each physics type.
Software body now supports bake editing just like Cloth.
Tried todo make the systems deal consistently with time ipo and offsets. Still not sure it all works correct, but todo complicated todo solver completely now.
Library linking:
-Added some more warnings todo prevent editing settings on library linked objects.
Linked objects now read from the caché located next todo the original library file, and never write todo it. This restores old behavior for softbodys. For local simulation the Mesh and not the object should be linked.
Dupligroups and proxies cant create local point caches at the moment, how todo implement that im not sure. We probably ned a proxy point caché for that todo work (ugh).
Physics ui:
-Renamed deflection panel todo collision for consistency and reorganized the buttons. Alos removed some Softbody collision buttons from the Softbody panel that were duplicated in this panel for Cloth.
Tweaked field panel buttons todo not Jump around when changing options.
Tabbing e. Software body collision into the software body panel, it now only shows collision todo make the panel names readable.
I tried todo make enabled/disabling physics more consistent, since all thre system did things diferent. Now the two modifier buttons todo enable the modifier for the viewport and rendering are a los duplicated in the physics panels. Toggling the software body and Cloth buttons now both remove their modifiers.
Fixed modifier error drawing Glitch.
Particles:
-Particles are now recalculated more often than before. Previously it did partial updates based on the changes, but that doesnt work well with dag_object_flush_update ().
Fixed memory leaque loading keyed particle system. Now keys are not written todo file anymore but always created After loading.
Make particle hilos work with autothreads.
Continue physics:
-The timeline play now has a continúe physics option in the playbak menú, which keps the Simulations going without writing them todo the cache.
This doesnt always work that well, some changes are not immediately updated, but this can be improved later. Still it fun todo get a fel for the physics.
Todo:
-Point caché can get out of Sync with and undo and changing a file without saving it.
Change the point caché file format todo estore a versión (so old point caché files can be either converted or at least ignored), and todo do correct Endian conversión.
Menú item and/or buttons for Control + b.
A system(rm.) was changed todo remove () since the former is very Slow for clearing point caches. These system() calls were already giving trouble in a bug in the tracker, but really most use of this system() should be changed and tested.
The software body collision and clot collision panel titles dont mention there point caché settings there to, doing that makes them unreadable with the default panel setu, but may ned todo make the names longer anyway.