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
2015-03-28Cleanup: redundant struct declarationsCampbell Barton
2015-03-25Simplify recent commitCampbell Barton
2015-03-25Fix T44118: Rotated background image disappearsCampbell Barton
Image clipping didn't take rotation into account.
2015-03-23Cleanup: comments, styleCampbell Barton
2015-03-23Use same rgb -> greyscale for BLI_math as imbufCampbell Barton
2015-03-22Fix wrong sizeof() in new ghash hashing helpers code.Bastien Montagne
Spotted by Coverity.
2015-03-21Cleanup: use tabsCampbell Barton
2015-03-20Fix stupid strict flags in math_color_inline.cSergey Sharybin
It was unleashed with recent ghash commit and issue seems to be the same as fixed in 69065b5b.
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-03-19Revert part of recent color-management commitCampbell Barton
This adds back rgb_to_grayscale, not all color is managed or depends on the current loaded blend file's CM options. Noted in comments that this is only to be used outside the CM pipeline.
2015-03-18Use fabsf for floatsCampbell Barton
2015-03-17BLI math vec: add 'abs' functions to get absolute values of a vector.Bastien Montagne
Unseful when handling e.g. scale, sometimes.
2015-03-17Part 2 of D1082 by Troy Sobotka, remove our functions that do lumaAntony Riakiotakis
calculations and use the OCIO one instead.
2015-03-13Initial compilation support with C++11 featureset enabledSergey Sharybin
This commit makes some preliminary fixes and tweaks aimed to make blender compilable with C++11 feature set. This includes: - Build system attribute to enable C++11 featureset. It's for sure default OFF, but easy to enable to have a play around with it and make sure all the stuff is compilable before we go C++11 for real. - Changes in Compositor to use non-named cl_int structure fields. This is because __STRICT_ANSI__ is defined by default by GCC and OpenCL does not use named fields in this case. - Changes to TYPE_CHECK() related on lack of typeof() in C++11 This uses decltype() instead with some trickery to make sure returned type is not a reference. - Changes for auto_ptr in Freestyle This actually conditionally switches between auto_ptr and unique_ptr since auto_ptr is deprecated in C++11. Seems to be not strictly needed but still nice to be ready for such an update anyway/ This all based on changes form depsgraph_refactor branch apart from the weird changes which were made in order to support MinGW compilation. Those parts of change would need to be carefully reviewed again after official move to gcc49 in MinGW. Tested on Linux with GCC-4.7 and Clang-3.5, other platforms are not tested and likely needs some more tweaks. Reviewers: campbellbarton, juicyfruit, mont29, lukastoenne, psy-fi, kjym3 Differential Revision: https://developer.blender.org/D1089
2015-03-09Math Lib: add mid_v3_v3v3v3v3Campbell Barton
2015-03-04Math Lib: redundant axis flip decomposing a planeCampbell Barton
Also add a faster, non-normalized version of the function. (Neither are used currently used).
2015-03-03Windows: Add stacktrace support when unhandled exception occurs.Antony Riakiotakis
We need to register the exception handler slightly differently here, as well as adding DbgHelp as a library, but according to docs it should be supported in recent Windows editions (Win XP included even). We can try it first and revert if there are issues.
2015-03-02Fix dist_signed_squared_to_corner_v3v3v3 with concave cornersCampbell Barton
2015-02-27Fix T43834: Text object looses one char after another by entering/leaving ↵Bastien Montagne
edit mode. Own mistake in refactoring of `BLI_strncpy_wchar_as_utf8()`, if given size was exactly the one needed, we'd lost last char (off-by-one error). Many thanks to plasmasolutions (Thomas Beck) who found the issue and did all the investigation work here!
2015-02-26Fix potential buffer overflow in `BLI_strncpy_wchar_as_utf8()`.Bastien Montagne
2015-02-23Fix interpolation functions ignoring number of components when doing early ↵Sergey Sharybin
output
2015-02-23BLI_utildefines: correct commentCampbell Barton
2015-02-23BLI_utildefines: add pointer offset macroCampbell Barton
Handy since it keeps the type of the original.
2015-02-18Fix Windows build.Bastien Montagne
Mighty M$VC never heard of 'strcasecmp' family of functions, it prefers its own names, as usual...
2015-02-17Ensure BLI_stat() return value is checked.Campbell Barton
also add function attrs on BLI_fileops to ensure they're used correctly.
2015-02-17Fix T43706: Creating a directory in the file browser (by typing it in the ↵Sergey Sharybin
file path) crashes Blender Issue was caused by 2e9105c, free() does nothing if pointer is NULL, but guarded allocator expects you to not free NULL.
2015-02-17assert when BLI_exists is called with NULL pathCampbell Barton
2015-02-16Math Lib: add dist_signed_squared_to_corner_v3v3v3Campbell Barton
Can be used to check if a point is inside the 2-planes defined by a face-corner.
2015-02-15Cleanup: BLI_listdir (direntry): get rid of usage of raw malloc/free here.Bastien Montagne
No reason at all not to use MEM_xxx as everywhere else, especially confusing when members of direntry **are** MEM_-allocated (relname, etc.)!
2015-02-14Refactor array_utils out of BLI_arrayCampbell Barton
BLI_array.h is for resizing array macros, where as array_utils can operate on any arrays.
2015-02-14cleanup: doxy commentsCampbell Barton
2015-02-13Make modifier_unique_name return whether modifier was renamed or notSergey Sharybin
2015-02-12Fix for previous commit - since it's for non-debug unused vars, name it ↵Bastien Montagne
UNUSED_VARS_NDEBUG. This commit was proudly crafted by the Commit Rate Raising Committee!
2015-02-12Add new UNUSED_VARS_DEBUG utils, which is NOP in debug build, but tags given ↵Bastien Montagne
vars as unused in non-debug builds. Helps handling cleanly pure-debug variables.
2015-02-11cleanup: style/indentationCampbell Barton
2015-02-10Remove legacy color transform functions.Troy Sobotka
Differential Revision: https://developer.blender.org/D1095
2015-02-10BLI_linklist: Add a new helper to move an item (identified by its current ↵Bastien Montagne
index) to a new position in the list.
2015-02-08minor Windows include tweakMike Erwin
Needed a minor change to test committing from a new development system.
2015-02-08BoxPack: avoid using static vars (make threadsafe)Campbell Barton
2015-02-06cleanup: styleCampbell Barton
2015-02-06Fix T43578: Beauty Triangulation would hang in infinite loop, due to float ↵Bastien Montagne
rpecision issue. Only recompute if cost is below -FLT_EPSILON, we can get cases where both cases generate very tiny negative costs (see 'Cylinder.004' mesh in .blend attached to report).
2015-02-05BLI_math vectors: add minmax_v3v3_v3_array to get min and max values on each ↵Bastien Montagne
components of an array of 3D vectors.
2015-02-03Revert "Keep mingw specific includes ifdef'd"Campbell Barton
This reverts commit ba8b9ae307010ee5e8e43c6afc4c9d0571c2bf73. Turns out this is needed on other systems, just happened to be indirect included on them.
2015-02-03Keep mingw specific includes ifdef'dCampbell Barton
2015-02-03MinGW64 complains about clock, include time.hAntony Riakiotakis
2015-02-01mathutils: added exponential map to QuaternionSybren A. Stüvel
Added conversion to and from exponential map representation. This representation is useful for interpolation of > 2 quaternions, or in PD controllers. Implementation in C functions quat_to_expmap, quat_normalized_to_expmap, and expmap_to_quat with Python API, unit tests and documentation. Added Quaternion.to_exponential_map() and Quaternion(3-vector) to Python API. Reviewers: campbellbarton Projects: #bf_blender Differential Revision: https://developer.blender.org/D1049
2015-01-31Add PIL_check_seconds_timer_i to avoid castingCampbell Barton
note, win32 casts still casts from double.
2015-01-31Comment for math defines, also add M_PI_4Campbell Barton
2015-01-29Gooseberry request: Dithering support for byte images when painting onAntony Riakiotakis
projection painting (2D will be separate commit).
2015-01-26Cleanup: current/parent paths: add helpers in BLI_path_utils.Bastien Montagne
Also, avoid calling ugly strcmp with '.' or '..', making direct char checks is much cheaper here!