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-07-21Remove nonnull attribute, NULL arg is valid here.Campbell Barton
2015-07-16Add tessellation data to DerivedMesh (LoopTri)Campbell Barton
This stores loop indices into the loop array giving easier acess to data such as vertex-colors and UV's, removing the need to store an MFace duplicate of custom-data. This doesn't yet move all internal code from MFace to LoopTri just yet. Only applies to: - opengl drawing - sculpting (pbvh) - vertex/weight paint Thanks to @psy-fi for review, fixes and improvements to drawing!
2015-07-15Fix own stupid error in yesterday's refactor of recursive dir creation.Bastien Montagne
Missed adding return value in one place. Thanks a lot to Thomas Szepe for reporting the issue and finding the solution! Question remains: how could MSVC allow such a code to compile in some cases (own win64 + scons buildbot win32 were OK with that it seems!). Crappy compiler, not comming to the rescue of stupid dev...
2015-07-14BLI_path_utils: fix/enhance BLI_filename_make_safe(), add BLI_path_make_safe().Bastien Montagne
BLI_filename_make_safe had several issues: * Would replace all dots ('.'), not a great idea since it would break extensions. * Was not checking for 'control' ASCII chars (though unlikely, better to be safe here). * Win32 only: was not checking for forbidden names (con, aux, ltp0, com0, etc.). New BLI_path_make_safe() simply checks each path's item with BLI_filename_make_safe().
2015-07-14BLI_fileops: Make BLI_dir_create_recursive() return success/error status.Bastien Montagne
Handy to know directly whether a file creation succeeded or not. Also, made a few more changes in this func, and harmonized a bit win32/*nix versions.
2015-07-14Match face tessellation order in edimodeCampbell Barton
add a negated version of axis_dominant_v3_to_m3
2015-07-14Fix for recent optimization commit in endian switchSergey Sharybin
Pre-4.8 GCC had a bug which lead to non-exposed __builtin_bswap16() symbol. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624 for details.
2015-07-14Cleanup: use ascii as suffix (as with utf8)Campbell Barton
2015-07-13Add BLI_math_statistics, where stats tool shall be!Bastien Montagne
For now, only contains some 3x3 matrix covariance computing.
2015-07-13Add BLI_math_solver, where non-linear solvers should be.Bastien Montagne
For now, only has an eigen solver for 3×3 (symmetric) matrix.
2015-07-12Remove redundant string copyCampbell Barton
2015-07-12Missed essential part in previous commit.Bastien Montagne
Or how to epic fail a fix when working on two different systems. Or how to increase your commit rate.
2015-07-12Fix T45375: Cant clear temp fluid cache after closing Blender (Windows).Bastien Montagne
There was two different issues here actually: * Own (very high) stupidity only gave 8 chars to file name (sic). * list dir returns dirpaths without a trailing slahs, but expects them to have it it seems. :|
2015-07-11Use const for direntry stringsCampbell Barton
2015-07-11Error in last commitCampbell Barton
2015-07-11Minor changes for more efficient endian switchingCampbell Barton
2015-07-11BLI_matrix space_transform: Add a 'local-invariant' setter.Bastien Montagne
`BLI_space_transform_from_matrices()` defines a 'global-invariant' transform (same point in global space, two different coordinates in local and target spaces). New `BLI_space_transform_global_from_matrices()` is kind of opposite, it defines a 'local-invariant' transform (two different points in global space, same coordinates in local and target spaces). Useful to 'match' meshes.
2015-07-10BLI_math 'compare' cleanup & enhancements.Bastien Montagne
This commit: * Adds a 'compare_ff' function for absolute 'almost equal' comparison of floats. * Makes 'compare_vxvx' functions use that new 'compare_ff' one. * Adds a 'compare_ff_relative' function for secured ulp-based relative comparison of floats. * Adds matching 'compare_vxvx_relative' functions. * Adds some basic tests for compare_ff_relative. See https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ Note that we could replace our python/mathutils' EXPP_FloatsAreEqual() by BLI's compare_ff_relative (using a very small absolute max_diff), but these do not have exact same behavior... Left a comment there for now, we can do it later if/when we are sure it won't break anything!
2015-07-09Cleanup: quiet warningCampbell Barton
2015-07-02BLI_GHash: add BLI_gset_str_new helpers.Bastien Montagne
2015-06-30Cleanup: move BLI_char_switch into BLI_stringCampbell Barton
2015-06-30Cleanup: use BLI_str prefix for BLI_replacestrNCampbell Barton
2015-06-30Cleanup: move BLI_timestr to BLI_timecodeCampbell Barton
2015-06-28Fix T45216: File Browser shows negative sizes for large files.Bastien Montagne
Simply backport small part of work from asset-experiments here (using double and adding tera-bytes unit), looks like off_t is not always 64bits even on a 64bit OS...
2015-06-27Cleanup: all params of BLI_str partition funcs can be const...Bastien Montagne
2015-06-27Extend `BLI_str_partition_ex`: add possibility to define a right limit to ↵Bastien Montagne
the string. Now you can define `end` pointer as right limit of the string (allows to easily search in substring, especially useful when searching from right).
2015-06-24Correct recent errorCampbell Barton
2015-06-24Improve dist_***_to_corner_v3v3v3 precisionCampbell Barton
Remove offset before calculating distance. Define 'plane3' to BLI_math, since we often don't need the 4th component.
2015-06-23Fix T45123: 2D line intersection failsCampbell Barton
Co-linear lines could detect as intersecting even if they weren't overlapping.
2015-06-23Cleanup: use 2d math funcs for line intersectionCampbell Barton
2015-06-20Threads: Cache result of syscall when querying number of system threadsSergey Sharybin
Number of system threads is quite difficult to change without need of blender restart, so we can cache result of the systcalls (which are not really cheap) in order to be able to call BLI_system_thread_count() without worrying of performance issues in that function. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D1342
2015-06-20Cleanup: checks for unsupported MSVC versionsCampbell Barton
2015-06-19BLI_threads Queue: add `BLI_thread_queue_is_empty()`.Bastien Montagne
Avoids counting the whole queue when we only want to check whether it is empty or not!
2015-06-19BLI_stack: BLI_stack_pop_n_reverseCampbell Barton
Useful to fill an array in the order its added.
2015-06-19BLI_stack: function commentsCampbell Barton
2015-06-18Assert when relative paths are passed to IO opsCampbell Barton
This is typically an error (& hangs a few seconds on win32), best catch early.
2015-06-17Cleanup: styleCampbell Barton
2015-06-16Disable assert for polyfillCampbell Barton
Would fail on some zero-area ngons.
2015-06-16Fix T44701: Buffer overrun reading directoriesCampbell Barton
2015-06-16Win32: make DIR struct opaqueCampbell Barton
2015-06-15Cleanup: quiet assert for zero-length axisCampbell Barton
2015-06-15Cleanup: quiet warningCampbell Barton
2015-06-13Compilation error fixes for older GCC/CLang compilersSergey Sharybin
Avoid data type re-declaration, it's not really working on current FreeBSD's 9 system and CLang-3.0 from OSX. This is not a good idea to do such sort of copy-paste anyway. If someone knows better way of dealing with this please go ahead and correct the code :)
2015-06-12CMake: remove commentCampbell Barton
2015-06-12BLI_linklist, avoid full list search for appendCampbell Barton
For areas that require append, store the last node, Previous behavior would too easily hide poorly performing code. Also avoid (prepend, reverse) where possible.
2015-06-11File Browser Arrow Keys NavigationJulian Eisel
Adds support for selecting/deselecting files in File Browser using the arrow keys. All directions (up, down, left, right) are possible. When to Select, When to Deselect? Standard behaviour is selecting, however if we move into a block of already selected files (meaning 2+ files are selected) we start deselecting Possible Selection Methods Simple selection (arrow-key): All other files are deselected Expand selection (Shift+arrow key): Add to/remove from existing selection ill-Expand selection (Ctrl+Shift+arrow key): Add to/remove from existing selection and fill everything in-between From which file do we start navigating? From each available selection method (Mouse-, Walk-, All-, Border Select), we use the last selected file. If there's no selection at all we use the first (down/right arrow) or last (up/left arrow) file. (Ideally, the view would automatically be set to the new selection, but this behaviour overlaps with an other patch I've been working on, so prefer to do that separately) (Also tweaks color for highlighted file for better feedback) D1297, Review done by @campbellbarton, thx a lot :)
2015-06-11Replace linked-list insert-sort with merge-sortCampbell Barton
Original code from eglib, modified for reuse with multiple linked-list implementations. Adds sort functions: BLI_linklist_sort, BLI_linklist_sort_r
2015-06-11BLI_listbase: match arg order with BLI_qsort_rCampbell Barton
2015-06-06CleanupCampbell Barton
2015-06-05Check ftell return valuesCampbell Barton