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
2013-07-10no need to copy mat4x4 -> 3x3 in mat4_to_scaleCampbell Barton
2013-07-09Partial revert of rev58110Sergey Sharybin
There's one thing we didn't foresee from the beginning, which is apparently TLS is only available in OSX starting from version 10.7, and we still do support of 10.6. After recent Brecht's changes about locked viewport while initializing BI render this TLS is not needed in trunk anymore. So reverting this chunk of base iteration to use static variable. But leaving all the other static variables warped into context still, it should help a bit in the future refactor. Real fix would be to have some kind of graph context evaluation structure which would be passing to update routines (which will solve threaded mballs update) and making depsgraph responsible for getting a motherball. But this is all for GSoC project.
2013-07-09Fixed more threading issues with metaballsSergey Sharybin
This time issue was caused by static variables used in BKE_scene_base_iter_next function. Change is not so much ultimate actually, but didn't find more clear solution for now. So the changes are: - Wrap almost all the static variables into own context- like structure, which is owned by the callee function and getting passed to the iteration function. - Recursion detection wasn't possible with such approach, so recursion detection still uses static in_next_object variable, but which is now stored in thread local storage (TLS, or thread variable if this names are more clear for you). This makes code thread-safe, but for sure final solution shall be completely different. Ideally, dependency graph shall be possible to answer on question "which object is a motherball for this metaball". This will avoid iterating via all the bases, objects and duplis just to get needed motherball. Further, metaball evaluation ideally will use the same kind of depsgraph filtering, which will get result for question like "which objects belongs to this group of metaballs". But this ideal things are to be solved in Joshua's and mind GSoC projects. Tested on linux (gcc and clang) and windows (msvc2008), hopefully no compilation error will happen. Thanks to Brecht for reviewing the change and getting feedback for other possible ways we've dicussed!
2013-07-09fix [#36066] crash when Tab out text objectCampbell Barton
the way Curve.len is used at the moment is really stupid, calculate string size on save for now, but should really store the length in bytes and total number of characters.
2013-07-08Fix #35960, #36044: blender internal viewport rendering crash while editing ↵Brecht Van Lommel
data. Now the viewport rendering thread will lock the main thread while it is exporting objects to render data. This is not ideal if you have big scenes that might block the UI, but Cycles does the same, and it's fairly quick because the same evaluated mesh can be used as for viewport drawing. It's the only way to get things stable until the thread safe dependency graph is here. This adds a mechanism to the job system for jobs to lock the main thread, using a new 'ticket mutex lock' which is a mutex lock that gives priority to the first thread that tries to lock the mutex. Still to solve: undo/redo crashes.
2013-07-05fix [#35987] bevel gives nan verticesCampbell Barton
The line intersection function bevel uses could give nan intersections.
2013-07-02remove nan copyrights from code added since blender become opensource (copy ↵Campbell Barton
paste errors), also remove BKE_script.h
2013-06-28fix for out of bounds read in BLI_path_relCampbell Barton
2013-06-27- remove edge collapse loop operator (now replaced by dissolve).Campbell Barton
- fix missing null pointer check from own recent changes. - add asserts if BLI path functions are given wrong id's
2013-06-26remove unused callbackCampbell Barton
2013-06-26correct typos in comments.Campbell Barton
2013-06-25Fix #35824: finding missing files not working correct for filepaths with specialBrecht Van Lommel
characters on Windows. Replaced some uses of stat() by BLI_stat() to properly handle such filepaths.
2013-06-24remove own optimization in scanfill, in rare cases it caused problems, ↵Campbell Barton
reported as [#35861]
2013-06-23remove vec_rot_to_mat3(), replace with axis_angle_normalized_to_mat3()Campbell Barton
2013-06-23Make edgehash and ghash use the same limit for expanding buckets, r26206 ↵Campbell Barton
changed ghash. double checked and r26206 does indeed give a speedup, so change for edgehash too.
2013-06-23reduce sign conversion comparisons for smallhash and tweak warnings elsewhere.Campbell Barton
2013-06-23build fix for old gccs (after rev.57620)Dalai Felinto
enabling the new pragmas only when gcc >= 4.6 gcc 4.2.1 here (OSX)
2013-06-21Code cleanup: fix some vs2012 compiler warningsBrecht Van Lommel
2013-06-20reduce sign comparisons for ghash and add more strict warnings for gcc.Campbell Barton
2013-06-20move sort from vert/edge/face into mesh menu only (sorting isn't such a ↵Campbell Barton
common operation). correct own recently added assert.
2013-06-19correct for own regressions when refactoring select-path, was using heap ↵Campbell Barton
popmin incorrectly.
2013-06-18Fix for own mistake in r57555 :-(Jürgen Herrmann
Add include to autoexec.c instead of BLI_path_util.h Thanks Bastien Montagne for the hint.
2013-06-18Compile fix for r57554 missing include "BLI_string.h" in BLI_path_util.hJürgen Herrmann
2013-06-17fix for editmesh transform connected,Campbell Barton
the distance checks could get into a feedback loop so that the result depended on the order of verts/edges. now you can randomize vert/edge/faces and get exactly the same results. also made some internal improvements, - used fixed sized arrays (no need to realloc). - use vertex tag flags rather then a visit-hash. - remove 'tots' array that did nothing (not sure why it was added).
2013-06-16add BLI_strcpy_rlen, replace strcat, which was used in misleading way.Campbell Barton
2013-06-14utility function for calculating smooth groups from sharp edges: ↵Campbell Barton
BKE_mesh_calc_smoothgroups
2013-06-13Fix #35634: weight paint did not do z-buffer culling anymore on Windows ↵Brecht Van Lommel
after recent change to size of bool.
2013-06-10code cleanup: use boolean for intersection functions.Campbell Barton
2013-06-07text rendering: shadow offset was causing text to clip, now check for ↵Campbell Barton
clipping without the shadow since not-drawing characters because of subtle effect is rather annoying.
2013-06-06style cleanupCampbell Barton
2013-06-03add asserts when scanfilling or triangulating with zero length normal.Campbell Barton
2013-05-30remove null checks for list functions, all hard asserts so we would have ↵Campbell Barton
noticed problems already.
2013-05-30UI: support 3 digit hex colors like HTML, e.g. #123 becomes #112233.Brecht Van Lommel
Patch #35359 by Forest Ka.
2013-05-30remove redundant includes from cmake and scons.Campbell Barton
2013-05-30remove duplicate sys-types headers.Campbell Barton
also change define checks in BLI_sys_types.h (was warning a lot in linux about unused defines).
2013-05-29Addition to r57094 by Campbell:Jürgen Herrmann
VS 2010 and 2012 have stdint.h so we should use them for consistency instead of defining the inttypes ourselves. Added if condition for for stdint.h include for >= VS 2010 P.S.: Compiled and tested on VS2008-2012 and MinGW with scons and CMake ;)
2013-05-29Make sure bool will always have the same size in C and C++Sergey Sharybin
There were an issues with data structures defined in headers and being used by both C and C++ on systems with stdbool unavailable. This happened because bool in this case will be defined as unsigned int, which is 4 bytes. But C++'s bool is only 1 byte and this lead to alignment issues. Now bool is always 1 byte, also made sure there's no situation like bool foo = BitField & BitFlag, which could give overflow issues. Use (BitField & BitFlag) != 0 instead. Fixes #35553: Compositor broken (Backdrop & Preview)
2013-05-28add BLI_sys_types.hCampbell Barton
2013-05-28move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)Campbell Barton
remove MEM_sys_types.h which was a duplicate.
2013-05-28reorder includes for winCampbell Barton
2013-05-28optimize mirror merging, remove array reallocation, replace with fixed size ↵Campbell Barton
arrays.
2013-05-27fix error in own recent commit, also other minor changes.Campbell Barton
2013-05-26BLI_math rename functions:Campbell Barton
- mult_m4_m4m4 -> mul_m4_m4m4 - mult_m3_m3m4 -> mul_m3_m3m4 these temporary names were used to avoid problems when argument order was switched.
2013-05-26bmesh: replace BLI_array reallocs with alloca, also don't check all faces ↵Campbell Barton
for connecting verts.
2013-05-26code cleanup: quiet pedantic warning in array macro.Campbell Barton
2013-05-25use math functions rather then macros for bicubic interpolation.Campbell Barton
2013-05-23Support for bridge tool subdivisions, smoothing and shape along the profile.Campbell Barton
also added the underlying subdivision as a standalone operator in the edge menu, named: subdivide edge-ring. http://www.graphicall.org/ftp/ideasman42/bridge_subd.png
2013-05-21code cleanup: remove callbacks only added to wrap MEM_freeNCampbell Barton
2013-05-20code cleanup: scons - binreloc include was copied all over the place for no ↵Campbell Barton
reason, -pthread too.
2013-05-20code cleanup: split scons includes onto multiple lines, reduce chance of ↵Campbell Barton
include conflicts later on.