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
2016-12-13Fix strict warnings on WindowsSergey Sharybin
2016-08-13Add DNA_struct_find (useful for version patching)Julian Eisel
2016-08-06Basic Alembic supportKévin Dietrich
All in all, this patch adds an Alembic importer, an Alembic exporter, and a new CacheFile data block which, for now, wraps around an Alembic archive. This data block is made available through a new modifier ("Mesh Sequence Cache") as well as a new constraint ("Transform Cache") to somewhat properly support respectively geometric and transformation data streaming from alembic caches. A more in-depth documentation is to be found on the wiki, as well as a guide to compile alembic: https://wiki.blender.org/index.php/ User:Kevindietrich/AlembicBasicIo. Many thanks to everyone involved in this little project, and huge shout out to "cgstrive" for the thorough testings with Maya, 3ds Max, Houdini and Realflow as well as @fjuhec, @jensverwiebe and @jasperge for the custom builds and compile fixes. Reviewers: sergey, campbellbarton, mont29 Reviewed By: sergey, campbellbarton, mont29 Differential Revision: https://developer.blender.org/D2060
2016-07-21Cleanup: warningsCampbell Barton
2016-07-21Cleanup: use const, move comments to enumCampbell Barton
2016-07-14CMake: per-target CFLAG & CXXFLAG supportCampbell Barton
Applying cflags globally can be problematic especially with extern, intern libs. Now flags from target named will be used when defined, allowing for developers to define flags for modules they maintain. Convention is CMAKE_CFLAGS_${UPPERCASE_TARGET_NAME}, (CXXFLAGS for C++). eg: CMAKE_CFLAGS_BF_BLENDER, CMAKE_CFLAGS_MAKESDNA, CMAKE_CXXFLAGS_CYCLES_KERNEL On Linux run `make help` for full list of names, MSVC shows these in the solution.
2016-07-14Use BLI_endian_switch in dna_genfileCampbell Barton
2016-07-12writefile: reuse SDNA between writesCampbell Barton
Avoids decoding the SDNA string every undo step.
2016-07-12readfile: report SDNA decoding errors on file readCampbell Barton
This was printed to the stdout, however the error case wasn't checked or well supported. Also, errors decoding SDNA would sometimes call exit(1).
2016-07-12writefile: remove SDNA last-hit, optimize DNA reconstructCampbell Barton
- Move last-hit index out of SDNA struct (allows for access by multiple threads). - Replace O(n^2) search with hash lookup in DNA reconstruction.
2016-07-06writefile: avoid adding SDNA to every undo stepCampbell Barton
Since SDNA was allocated for each undo step, the new address meant it was considered different and included again. Add an option not to duplicate the DNA string when calling DNA_sdna_from_data, as well as avoiding a redundant copy, it writes the same address each time.
2016-06-28writefile: replace most struct lookups /w constantsCampbell Barton
Removes many hash lookups per file-save and undo-step.
2016-06-22readfile: use BLI_endian_switchCampbell Barton
Replace inline endian switching
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-05-09Fix makesdna not checking alignment for a non-native platformSergey Sharybin
This was causing alignment issues which were only visible on a platform of particular bitness, so it was easy to break stuff for 32bit when working on 64bit platform and vice versa.
2016-01-16Cleanup: use enum constant for DNA comparisonCampbell Barton
2016-01-15DNA: partial revert of long removalCampbell Barton
924c626 broke loading on systems with different endian. We could support reading values from SDNA, it isn't really worth the extra hassle. Long support is still removed, just keep enum values the same.
2016-01-14Cleanup: use const qualifier in makesdnaCampbell Barton
2016-01-11DNA: remove 'long' typeCampbell Barton
Turns out even in files this was used, it was only for runtime members that are now ignored.
2016-01-11DNA: print errors to stderrCampbell Barton
Wasn't showing error output in some cases. Also reduce variable scope in calculate_structlen
2016-01-09DNA: remove endian switching long checksCampbell Barton
This wasn't correct, and long was only ever used in cases we can now ignore.
2016-01-09Byte swap doubles on file readCampbell Barton
2016-01-04Remove SCons building systemSergey Sharybin
While SCons building system was serving us really good for ages it's no longer having much attention by the developers and started to become quite a difficult task to maintain. What's even worse -- there started to be quite serious divergence between SCons and CMake which was only accumulating over the releases now. The fact that none of the active developers are really using SCons and that our main studio is also using CMake spotting bugs in the SCons builds became quite a difficult task and we aren't always spotting them in time. Meanwhile CMake became really mature building system which is available on every platform we support and arguably it's also easier and more robust to use. This commit includes: - Removal of actual SCons building system - Removal of SCons git submodule - Removal of documentation which is stored in the sources and covers SCons - Tweaks to the buildbot master to stop using SCons submodule (this change requires deploying to the server) - Tweaks to the install dependencies script to skip installing or mentioning SCons building system - Tweaks to various helper scripts to avoid mention of SCons folders/files as well Reviewers: mont29, dingto, dfelinto, lukastoenne, lukasstockner97, brecht, Severin, merwin, aligorith, psy-fi, campbellbarton, juicyfruit Reviewed By: campbellbarton, juicyfruit Differential Revision: https://developer.blender.org/D1680
2015-09-02CMake: use generator expressionsCampbell Barton
2015-08-27DNA/IO: struct ghash lookup didn't set 'lastfind'Campbell Barton
Internal inconsistency: lastfind was being checked on every DNA_struct_find_nr call, but never set. Gives minor speedup reading files.
2015-07-31Docs: doxy correctionsCampbell Barton
2015-06-05Check ftell return valuesCampbell Barton
2015-05-17CMake: correct file listingCampbell Barton
2015-05-11GHash: avoid redundant castsCampbell Barton
2015-03-19GHash - code reorganization, performance enhancements, add a few missing ↵Bastien Montagne
utils to API. This patch is the root of the GHash rework, all other diff will be based on it: Reduce average load from 3.0 to 0.75 ---------------------------------- This is the big performance booster part, e.g. makes tracing a dyntopo stroke between 25% and 30% faster. Not much to say about it, aside that it obviously increase memory footprint (about 25% - 30% too). Add optional shrinking ---------------------------------- I.e. ghashes/gsets can now shrink their buckets array when you remove enough entries. This remains optional and OFF by default. Add code to use masking instead of modulo ---------------------------------- Buckets indices are obtained from hashes by “reducing” the hash value into the valid bucket range. This can be done either by bit-masking, or using modulo operation. The former is quicker, but requires real hashes, while the later is slower (average 10% impact on ghash operations) but can also be used as a 'fake' hashing on raw values, like e.g. indices. In Blender currently not all ghash usages actually hash their keys, so we stick to modulo for now (masking is ifdef’ed out), we may however investigate the benefits of switching to masking with systematic very basic hashing later… Add various missing API helpers ---------------------------------- I.e. a way to deep-copy a ghash/gset, and a way to (re-)reserve entries (i.e. manually grow or shrink the ghash after its creation). Various code refactoring ---------------------------------- * Get rid of the 'hack' regarding ghash size when used as gset (it’s simpler and safer to have two structs defined here, and cast pointers as needed). * Various re-shuffle and factorization in low-level internal code. * Some work on hashing helpers, introducing some murmur2a-based hashing too. Thanks a bunch to Campbell for the extensive review work. :) Reviewers: sergey, campbellbarton Subscribers: psy-fi, lukastoenne Projects: #bf_blender Maniphest Tasks: T43766 Differential Revision: https://developer.blender.org/D1178
2015-02-12Viewport compositing - first codeAntony Riakiotakis
This commit introduces a few ready made effects for the 3D viewport and OpenGL rendering. Included effects are Depth of Field, accessible from camera view and screen space ambient occlusion. Those effects can be turned on and tweaked from the shading panel in the 3D viewport. Off screen rendering will use the settings of the current camera. WIP documentation can be found here: http://wiki.blender.org/index.php/User:Psy-Fi/Framebuffer_Post-processing
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-11-20SCons: Proper solution for local symbols mapSergey Sharybin
Configuration used to override the link flags, it better restore them once the configuration is done.
2014-11-20SCons: Remove duplicate PLATFORM_LINKFLAGS from makesdna and makesrnaSergey Sharybin
Hopefully it'll fix "anonymous version tag cannot be combined with other version" compilation error.
2014-10-29Cleanup: warnings, typosCampbell Barton
2014-06-06Code cleanup: remove redundant void*->int->bool cast on NULL pointerCampbell Barton
2014-05-01Code cleanup: replace long long with int64_t & doxy formatting.Campbell Barton
2014-04-29Code cleanup: don't use unnecessary .exe extension in scons, simplify code.Lawrence D'Oliveiro
Reviewed By: brecht Differential Revision: https://developer.blender.org/D236
2014-04-26Code cleanup: use 'const' for arrays (blenloader, gpu, imbuf, makesdna, ↵Campbell Barton
modifiers, nodes)
2014-03-15Code cleanup: use r_ prefix for return argsCampbell Barton
2014-02-14Code cleanup: duplicate headersCampbell Barton
2014-01-20Fix for incorrect use of DNA_struct_find_nrCampbell Barton
Patch T38290 by ldo (Lawrence D'Oliveiro)
2013-12-26correction to last commitCampbell Barton
2013-12-26Correct alloc string and comment in makesdnaCampbell Barton
2013-12-23Make makesdna capable of detecting 32bit alignment issues on 64bit platformSergey Sharybin
Summary: Just some extra comparison between native and 32bit structure length was needed. Reviewers: brecht, campbellbarton Reviewed By: brecht Differential Revision: http://developer.blender.org/D131
2013-12-15Minor optimization for strlen and memcpy calls for reading blend filesSv. Lockal
Summary: This commit removes ~10000 strlen calls and ~100000 memcpy calls in blender (profiled with blender --background), ~10000 memcpy calls in makesdna. There is no need to create null-terminated strings for atoi, because it converts only the initial portion of the string anyway. Also it was noticed that DNA_elem_array_size and arraysize functions work only with full strings, so there is no point to calculate strlen. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: http://developer.blender.org/D105
2013-12-04Compiler Warnings: disallow 'long' in DNA, its not reliably 64bit (gcc only)Campbell Barton
2013-10-10Lock-free memory allocatorSergey Sharybin
Release builds will now use lock-free allocator by default without any internal locks happening. MemHead is also reduces to as minimum as it's possible. It still need to be size_t stored in a MemHead in order to make us keep track on memory we're requesting from the system, not memory which system is allocating. This is probably also faster than using a malloc's usable size function. Lock-free guarded allocator will say you whether all the blocks were freed, but wouldn't give you a list of unfreed blocks list. To have such a list use a --debug or --debug-memory command line arguments. Debug builds does have the same behavior as release builds. This is so tools like valgrind are not screwed up by guarded allocator as they're currently are. -- svn merge -r59941:59942 -r60072:60073 -r60093:60094 \ -r60095:60096 ^/branches/soc-2013-depsgraph_mt
2013-09-20code cleanup: quiet rna warnings, remove remove_strict_flags() for cmake/rna.Campbell Barton
also set_source_files_properties() wasn't working for rna_*_gen.c files, set dna.c and generated data files with generated property too.
2013-09-01Move GCC attributes into a centraized definesSergey Sharybin
Instead of having ifdef __GNUC__ all over the headers to use special compiler's hints use a special file where all things like this are concentrated. Makes code easier to follow and allows to manage special attributes in more efficient way. Thanks Campbell for review!