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
2018-06-29Cleanup: trailing newlinesCampbell Barton
2018-06-17Cleanup: trailing space for blenloaderCampbell Barton
2018-06-17Cleanup: BLI path extension APICampbell Barton
Use BLI_path_extension_* prefix.
2018-06-15Cycles: change Ambient Occlusion shader to output colors.Lukas Stockner
This means the shader can now be used for procedural texturing. New settings on the node are Samples, Inside, Local Only and Distance. Original patch by Lukas with further changes by Brecht. Differential Revision: https://developer.blender.org/D3479
2018-06-15WM: 2.8 screen compatibilityCampbell Barton
Without these minor changes loading files from 2.8 will crash. Manually applied edits from 26786a2b87a08
2018-06-13Cleanup: get rid of last G.main in BMesh code.Bastien Montagne
2018-06-12Cleanup: moar removal of G.main in BKE area...Bastien Montagne
2018-06-05Cleanup: use new accessors to blendfile path (Main.name).Bastien Montagne
2018-06-03Cleanup: remove blockscale & handlerCampbell Barton
Replace with link_flag, currently unused, needed for dynamic space types which is planned.
2018-06-01Cleanup: trailing whitespace (comment blocks)Campbell Barton
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-05-31Cleanup: get rid of last G.main usages in BKE library code.Bastien Montagne
2018-05-09Fix broken 'check/validate libs' code with indirect libs.Bastien Montagne
Readcode always set relative paths of indirectly linked libs relative to *current* .blend file, not to the library using it. But BKE_library_filepath_set was then setting them relative to their parent library, breaking checking code (and saved files even :((( ).
2018-05-08Cleanup: quiet -Warray-bounds warningCampbell Barton
2018-04-20Fix usage of lib filepath in previous own commit...Bastien Montagne
2018-04-20Add debug tool to check validity of current file *before* saving.Bastien Montagne
It is hidden behind the --debug-io flag for now. Idea is to try to catch broken libraries state in current Main before we actually write the file on disk, should help catching and understanding what happens in Spring corruption cases.
2018-04-19Port particle instance modifier changes from Gooseberry branchSergey Sharybin
The work is mainly from Lukas Toenne, with some modifications from myself. Includes following obvious changes: - Particle system selection is now name-based, with lookup menu. - Lots of new options to control varieties. Changes comparing to the Gooseberry branch: - Default values and versioning code ensures same behavior as the old modifier. - Custom data layers are coming from vertex color, the modifier does not create arbitrary layers now. The hope is to keep data more manageable, and maybe make it easier to select in the shader later on. This means, values are quantized to 256 values, but it should be enough to get varieties in practice. Reviewers: brecht, campbellbarton Reviewed By: brecht Subscribers: eyecandy Differential Revision: https://developer.blender.org/D3157
2018-04-19Cleanup: styleCampbell Barton
2018-04-16Cleanup: indentationCampbell Barton
2018-04-16Cleanup: indentationCampbell Barton
2018-04-14Cleanup: rename WriteData struct members.Campbell Barton
Relationship between tot/count/buf wasn't clear. Also use doxy sections.
2018-04-14Undo: refactor memfile writingCampbell Barton
- Move static undo variable into 'WriteData', 'memfile_chunk_add' used arguments in a confusing way, sometimes to set/clear static var. - Replace checks for 'wd->current' with 'wd->use_memfile' move memfile vars into 'wd->mem' struct.
2018-04-09Added support for the WEBM/VP9 video codecSybren A. Stüvel
WEBM is the codec name, and VP9 is the encoder (the older encoder "VP8" is less efficient than VP9). WEBM/VP9 and h.264 both have options to control the file size versus compression time (e.g. fast but big, or slow and small, for the same output quality). Since WEBM/VP9 only has three choices, I've chosen to map those to 3 of the 9 possible choices of h.264: - BEST → SLOWER - GOOD → MEDIUM - REALTIME → SUPERFAST The VERYSLOW and ULTRAFAST options give very little extra benefit. Reviewed by: @Severin
2018-04-05Undo: split text undo steps out of the data-blockCampbell Barton
This moves undo storage into a separate struct which is passed in from the undo system.
2018-04-04Tweak ID->tag reset on file load (no visible change expected!).Bastien Montagne
Issue was, *some* IDs (like infamous nodetrees from materials etc.) would not go through the 'main' read_libblock() func, so their tags were never reset. So now, we ensure direct_link_id() always clear the tags, and move setting them in read_libblock() after the call to direct_link_id(). Needed for depsgraph, but general healthier fix actually.
2018-04-04Depsgraph: Only bind ID-data and indices to depsgraph callbacksSergey Sharybin
This is a part of copy-on-write sanitization, to avoid all the checks which were attempting to keep sub-data pointers intact. Point is: ID pointers never change for CoW datablocks, but nested data pointers might change when updating existing copy. Solution: Only bind ID data pointers and index of sub-data. This will make CoW datablock 7update function was easier in 2.8. In master we were only using pose channel pointers in callbacks, this is exactly what this commit addresses. A linear lookup array is created on pose evaluation init and is thrown away afterwards. One thing we might consider doing is to keep indexed array of poses, similar to chanhash. Reviewers: campbellbarton Reviewed By: campbellbarton Subscribers: dfelinto Differential Revision: https://developer.blender.org/D3124
2018-04-01Resolve unsigned comparison error w/ MSVCCampbell Barton
2018-03-31Undo: unified undo system w/ linear historyCampbell Barton
- Use a single undo history for all operations. - UndoType's are registered and poll the context to check if they should be used when performing an undo push. - Mode switching is used to ensure the state is correct before undo data is restored. - Some undo types accumulate changes (image & text editing) others store the state multiple times (with de-duplication). This is supported by checking UndoStack.mode `ACCUMULATE` / `STORE`. - Each undo step stores ID datablocks they use with utilities to help manage restoring correct ID's. Needed since global undo is now mixed with other modes undo. - Currently performs each undo step when going up/down history Previously this wasn't done, making history fail in some cases. This can be optimized to skip some combinations of undo steps. grease-pencil is an exception which has not been updated since it integrates undo into the draw-session. See D3113
2018-03-27Cleanup: global undo (minor changes to internals)Campbell Barton
- Get memory usage from MemFile instead of MEM API avoids possible invalid when threads alloc memory. - Use size_t instead of uint and uintptr_t to store size. - Rename UndoElem.str -> filename - Rename MemFileChunk.ident -> is_identical
2018-03-23Cleanup: stray tabsCampbell Barton
Tabs in middle of code (mostly for no reason / by accident).
2018-03-20Fix T54019: copying and linking bugs with custom ID pointer properties.Bogdan Nagirniak
2018-03-12Fix T54296: Cycles viewport render stuck on constant re-renderSergey Sharybin
Need Clear ID recalc flag on load. Otherwise it's possible to have some IDs considered always updated by Cycles, when they were saved in a tagged-for-update state. Thanks Bastien for feedback and review!
2018-02-24Smoke: expose empty space clipping property to the UI.Kévin Dietrich
This is used to determine which voxels are to be considered empty space. Previously it was hardcoded for converting dense grids to OpenVDB grids to reduce disk space usage. This value is also useful for rendering engines to know, i.e. to optimize ray marching.
2018-02-16Fix part II of T53977: Severe problem with multiple instances of a library ↵Bastien Montagne
(save and reload). Once 'losing lib' issue is fixed (in previous commit), we have new issue that this could lead to several copies of the same linked data-block in .blend file. Which is not good. At all. So had to add a GHash-based check in libraries reading code to ensure we only load a same ID from a same lib once.
2018-02-16Fix part I of T53977: Severe problem with multiple instances of a library ↵Bastien Montagne
(save and reload). The issue was that when a same lib was found several times in loaded .blend, we'd only keep the first occurence. But since Blender expects next data-blocks to belong to last found library, we could actually be adding data-blocks assigned to copies of the duplicated lib to another, totally unrelated lib. Those data-blocks were then obviously not found when actually loading libs content, and lost. Note that this only fix one part of the issue, current code can generate several copies of same linked data-block now, will fix in another commit.
2018-02-15Cleanup: use '_len' instead of '_size' w/ BLI APICampbell Barton
- When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts.
2018-02-15Simple hair children: Initial implementation of twist controlSergey Sharybin
It allows to have children hair to be twisted around parent curve, which is quite an essential feature when creating hair braids. There are currently two controls: - Number of turns around parent children. - Influence curve, which allows to modify "twistness" along the strand.
2018-02-07Cleanup: add _types.h suffix to DNA headersCampbell Barton
2018-02-01Cleanup: pass userdef to write_userdef, const argsCampbell Barton
2018-01-29Cleanup: rename user preference flagsCampbell Barton
USER_ZBUF_ORBIT -> USER_DEPTH_NAVIGATE The name didn't make sense since it's used for all view navigation. Also rename USER_ZBUF_CURSOR -> USER_DEPTH_CURSOR since zbuf is an internal detail.
2018-01-26Fix part of T53080: all material previews re-rendering after undo.Brecht Van Lommel
This reverts commit dc2617130b2e1d7d2b9892fbd7c6e7b60caafb66, which disabled writing of previews for undo. While this uses some memory, re-rendering all previews is very expensive, especially if for example you have lots of materials using high-res image textures.
2018-01-25UI: change tool-tips to be stored in the screenCampbell Barton
Move timer and tip out of button code, now the only requests a tooltip, passing a creation callback to run. Needed for manipulators in 2.8, also helps de-duplicate logic - since we never want multiple tool-tips showing at once.
2018-01-19Cleanup: typosCampbell Barton
2018-01-18Fix T53808: VSE doesn't show scene strip markersCampbell Barton
2018-01-18Fix weight particle brush versioningCampbell Barton
2018-01-18Fix buffer overflow vulnerability in curve, font, particles code.Brecht Van Lommel
Solves these security issues from T52924: CVE-2017-12102 CVE-2017-12103 CVE-2017-12104 While the specific overflow issue may be fixed, loading the repro .blend files may still crash because they are incomplete and corrupt. The way they crash may be impossible to exploit, but this is difficult to prove. Differential Revision: https://developer.blender.org/D3002
2018-01-18Fix buffer overflow vulnerabilities in mesh code.Brecht Van Lommel
Solves these security issues from T52924: CVE-2017-12081 CVE-2017-12082 CVE-2017-12086 CVE-2017-12099 CVE-2017-12100 CVE-2017-12101 CVE-2017-12105 While the specific overflow issue may be fixed, loading the repro .blend files may still crash because they are incomplete and corrupt. The way they crash may be impossible to exploit, but this is difficult to prove. Differential Revision: https://developer.blender.org/D3002
2018-01-17Fix buffer overflow vulernability in thumbnail file reading.Brecht Van Lommel
Fixes CVE-2017-2908 from T52924. Differential Revision: https://developer.blender.org/D3001
2018-01-17Correct simple deform versioning from D2989Campbell Barton
2018-01-16Cleanup: Avoid ifdefs in multiple placesSergey Sharybin
Define a helper macro. Makes code read easier.
2018-01-16readfile: ensure blend header follows the specCampbell Barton