Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-19Writefile: move file flags to BlendFileWriteParamsCampbell Barton
This removes G_FILE_HISTORY, G_FILE_SAVE_COPY & G_FILE_USERPREFS. Using file-flags made logic harder to follow since it's not so clear which flags are expected to be in G.fileflags & which are meant to be set and passed as arguments, these are shared between read & write functions too. Add BlendFileWriteParams so options which don't need to be stored aren't mixed up with flags that are stored for reuse.
2020-06-18Python API: path mapping options for library writing functionCampbell Barton
When "Relative Remap" option was added, the intention was only to remap paths that were already relative. However it remapped all paths. This was reported as T62612 and fixed recently, however some Python script authors depended on the old behavior. For users, it's reasonable to use the existing operators to make paths absolute/relative. For scripts however it's useful to be able to write out individual data-blocks with the ability to make all paths relative. Now `bpy.data.libraries.write()` takes a path_remap argument which can be `NONE/RELATIVE/RELATIVE_ALL/ABSOLUTE` allowing the script author to choose how paths are handled when writing out data-blocks. Addresses T77768.
2020-06-18Cleanup: redundant parenthesisCampbell Barton
2020-06-16Refactor: move .blend read/write of mesh deform modifier to MOD_meshdeform.cJacques Lucke
2020-06-16Cleanup: remove unnecessary indirection for .blend read/write of curvemappingJacques Lucke
2020-06-16Refactor: Move curvemapping .blend read/write to blenkernelJacques Lucke
This is necessary so that it can be accessed from `blendWrite` and `blendRead` callbacks from modifiers.
2020-06-15Refactor: use new blenloader api for laplacian deform modifierJacques Lucke
2020-06-15Blenloader: call blendRead and blendWrite of modifiers when availableJacques Lucke
This is part of T76372.
2020-06-15Fix (unreported) critical mistake in Collection liblink code in readfile.c.Bastien Montagne
Prelimenary step to fix T77460. Not sure how or when that thing was done, but since that call walks around collections relationships, it's an utterly critical violation of liblinking principles (code here should never, ever 'get outside' of its own ID scope). This was wroking so far only because code called through this function (`BKE_collection_parent_relations_rebuild`) was only following parents pointers (in `BKE_collection_find_cycle()`), which would be either valid or non-existent. But next commit is going to change that to also check collection's objects instancing of other collections.
2020-06-12Cloth: implement support for a hydrostatic pressure gradient.Alexander Gavrilov
When a fluid is put under influence of gravity or acceleration, it forms an internal pressure gradient, which causes observable effects like buoyancy. Since now cloth has support for simulating pressure changes caused by fluid compression or expansion, it makes sense to also support the effects of gravity. This is intended for better simulation of objects filled or surrounded by fluids, especially when constrained by collisions or pinned vertices, and should result in more realistic shapes. Obviously, this doesn't actually simulate fluid dynamics; instead it is assumed that the fluid immediately adapts to changes in the shape or acceleration of the object without friction or turbulence, and instantly reaches a new static equilibrium. Differential Revision: https://developer.blender.org/D6442
2020-06-12Cleanup: minor changes to deform functionsCampbell Barton
- Use 'float (*)[3]' to avoid casts. - Remove unnecessary float[3] copy in gpencil_deform_verts. - Use MEM_SAFE_FREE - Use const arguments.
2020-06-10Blenloader: Don't just crash when a struct name is not knownJacques Lucke
Related to T77524. This brings back the old way of handling corrupted data.
2020-06-10Fix T77524: Don't try to write storage of node with undefined nodeJacques Lucke
This cannot work, because the storagename is the empty string.
2020-06-09Cleanup: Move pointcache dna to separate fileJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D7965
2020-06-08Simulations: initial simulation state and cacheJacques Lucke
The current particle state is stored in a `CustomData` instance and the cache is stored in `PointCache`. The current state exists on the copy-on-write copies of the simulation, while the cache only exists in the original data block. This patch implements a temporary trivial particle simulation that does not use the node system yet. It is used for testing and will be replaced soon. `PointCache` still has some limitations that need to be overcome using separate refactorings. For example, we need to be able to store the number of particles in the point cache. Also we need to change which attributes are stored for a particle system more dynamically than is currently possible afaik. Reviewers: brecht Differential Revision: https://developer.blender.org/D7836
2020-06-07Refactor: use new api for some remaining functions in writefileJacques Lucke
2020-06-07Cleanup: remove unused functionsJacques Lucke
2020-06-07Refactor: use new api in remaining direct linking codeJacques Lucke
2020-06-07Refactor: use new api for direct linking pointcache and particle systemJacques Lucke
2020-06-07Refactor: use new api for direct linking customdataJacques Lucke
2020-06-07Refactor: use new api for direct linking packedfile and dvertsJacques Lucke
2020-06-07Refactor: use new api to check if endian switch is requiredJacques Lucke
2020-06-07Cleanup: remove unused test_pointer_array functionJacques Lucke
2020-06-07Refactor: use new api for direct linking movie clip dataJacques Lucke
2020-06-07Refactor: use new api for direct linking id propertiesJacques Lucke
2020-06-07Refactor: use new api to simplify IDP_DirectLinkGroup_OrFreeJacques Lucke
2020-06-07Refactor: use new api for direct linking bones, view layer and userdefJacques Lucke
2020-06-07Refactor: use new api for direct_link_id_commonJacques Lucke
2020-06-07Refactor: use new api for direct linking preview imageJacques Lucke
2020-06-07Refactor: use new api for direct linking curvemapping and its callersJacques Lucke
2020-06-07Refactor: use new api for direct linking gpencil modifiers and shaderfxsJacques Lucke
2020-06-07Refactor: use new api for direct linking modifiersJacques Lucke
2020-06-07Refactor: use new api for direct linking keying sets, node sockets and poseJacques Lucke
2020-06-07Refactor: use new api for direct linking animdataJacques Lucke
2020-06-06Fix T77456: Broken vertex paint undo on high-poly objects.Bastien Montagne
This is a critical fix that should also be backported to 2.83.1 Fairly stupid bug in fact, code detecting changes across undo steps was assuming that each BHEAD (a block of data in blendfiles) would not be larger than one memory chunk... Which is the case in alsmost every situation, besides some super-heavy geometries, and other similar things (images would also be affected e.g.).
2020-06-06Refactor: use new api for direct linking paint curve, cachefile and workspaceJacques Lucke
2020-06-06Refactor: use new api for direct linking particlesettings, movieclip, mask, ↵Jacques Lucke
linestyle and palette
2020-06-06Refactor: use new api for direct linking armature, action, nodetree and brushJacques Lucke
2020-06-06Refactor: use new api for direct linking lattice, world, camera, speaker, ↵Jacques Lucke
sound, lightprobe and collection
2020-06-06Refactor: use new api for direct linking light, vfong, text, ipo and keyJacques Lucke
2020-06-06Refactor: use new api for direct linking mball, material, texture and imageJacques Lucke
2020-06-06Refactor: use new api for direct linking mesh and curveJacques Lucke
2020-06-06Refactor: use new api for direct linking scene and objectJacques Lucke
2020-06-06Refactor: use new api for direct linking hair, pointcloud, volume and simulationJacques Lucke
2020-06-06Refactor: use new api for direct linking screen and gpencilJacques Lucke
2020-06-06Refactor: use new api in direct_link_windowmanagerJacques Lucke
2020-06-06Blenloader: simplify list reading apiJacques Lucke
2020-06-05Refactor: use new api for remaining direct data writingJacques Lucke
2020-06-05Blenloader: new write_struct_at_address api functionsJacques Lucke
2020-06-05Refactor: use new api for write_movieclip and write_keyingsetsJacques Lucke