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-03-04fix [#34490] Copy and paste floating point number fields losses precisionCampbell Barton
- copy now gets up to 6 decimal places - copy and UI float button editing now strip zeros: 1.000 -> 1.0
2013-03-03code cleanup: ~400 duplicate lines for AO form factor math.Campbell Barton
2013-03-03enable triangulation with collada, disable BLI_STATIC_ASSERT for C++.Campbell Barton
2013-02-27Fix various warnings with clang build, and adjust cmake clang warnings flagsBrecht Van Lommel
to include a few more that gcc is using too.
2013-02-22patch [#34103] - listbase.patch, insertlinkbefore.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) notes from tracker: use bool for return type from BLI_remlink_safe, necessitating including BLI_utildefines.h in BLI_listbase.h get rid of duplicate BLI_insertlink, use BLI_insertlinkafter instead. A few places which were using BLI_insertlinkafter (actually BLI_insertlink), when it would be simpler to use BLI_insertlinkbefore instead.
2013-02-21style cleanup: 'sizeof foo' --> 'sizeof(foo)', add check in style checking ↵Campbell Barton
script.
2013-02-21code cleanup: rename ScanFillVert.h --> edge_tot, SF_VERT_UNKNOWN --> ↵Campbell Barton
SF_VERT_AVAILABLE
2013-02-19set unicode conversion errors as UNLIKELYCampbell Barton
2013-02-19step over unicode characters with autocomplete (correctly this time).Campbell Barton
2013-02-19internal: increase error threshold for normalize assert since normals ↵Campbell Barton
converted from shorts are not always exactly unit length.
2013-02-19make asserts that check for unit length vectors into a macro.Campbell Barton
this was really not nice logic to try to fit into an assert.
2013-02-19fix for [#34283] wasn't working in my tests (attached to original report),Campbell Barton
made bone roll get compatible angle values with the original roll.
2013-02-18fix [#34279] Python console: Selected region is not highlighted when using ↵Campbell Barton
white background color
2013-02-17Bug fix #34281Ton Roosendaal
The RNA path interpretor code was using a function to get the portion between quotes, this function was not even checking if there *are* quotes at all! Causing bad memory allocs or crashes.
2013-02-17BLI_mempool totalloc was being used un-initialized, normally this would ↵Campbell Barton
cause bugs but turns out its not used, ifdef'd it out but keep in the struct in BLI_mempool for now.
2013-02-15skip fix from r54579 when holes aren't used (keeps bmesh ngon filling fast)Campbell Barton
2013-02-15Bug fix #34177Ton Roosendaal
Blender's triangulator has been rescued :) This commit fixes errors with concave holes inside polygons. Simple explanation: Blender "ScanFill" works by sorting vertices from top-left to bottom-right, and connecting these vertices with a sorted list of edges they have. The inner loop then goes over every vertex, its edges, and tries to make triangles by checking vertices that are next in the list. - if the triangle has points inside: it creates an edge to this vertex, and continues - else: add new triangle. Very simple, fast and efficient. But it needed one more check for the first step: it should check every vertex inside the triangle, and pick the best vertex for an edge based on forming the sharpest angle with the tested edge. That solves the case for concave holes. Blender ScanFill was coded 20 years ago, and is an own invention. I wanted a triangulator that just fills any collection of polygons, including with holes. No idea if this was ever published in a paper!
2013-02-15add debug check for mempool double free (or misuse of BLI_MEMPOOL_ALLOW_ITER),Campbell Barton
some reports in the tracker show errors on bmesh iteration which could be caused by this.
2013-02-15style cleanupCampbell Barton
2013-02-14Fix "Origin to Center of Mass" not working well with ngonsSergej Reich
Now we do simple triangulation and calculate signed area of triangles to account for concave polygons. This only works correct for planar polygons but gives better results overall.
2013-02-14Divide by 3 instead of multiplying by variations of 0.333Sergej Reich
Fixes small precision problems.
2013-02-14modify own changes to is_quad_convex_v3() to allow quads with a co-linear ↵Campbell Barton
side to be considered convex (as it did in last release). this is needed so zero area faces be dealt with by beauty fill.
2013-02-14misc changesCampbell Barton
- update man page for new additions since last release. - note that --start-console argument is windows only. - correct own assertion in own recent commit.
2013-02-14fix for double clicking in the text editor not working usefully (double ↵Campbell Barton
clicking a pair chars would select 3 - one to the left).
2013-02-13make is_quad_convex_v3() more strict, check if normal is OK before using as ↵Campbell Barton
a rotation axis. make is_quad_convex_v2,3() check for ISECT_LINE_LINE_CROSS intersection (that the lines actually cross each other).
2013-02-12code cleanup: some style edits, also allow mul_v2_m2v2() to have the same ↵Campbell Barton
value as in-out, since this is a convention for existing matrix functions.
2013-02-12Old bug fix: Uv smart stitch failed to detect angle if islands wereAntony Riakiotakis
rotated close to 180 degrees and there were edges both below and above the 180 degree threshhold. Separating and averaging the negative and positive angles seems to solve the issue making the tool a bit more robust ;)
2013-02-11style cleanup: also some typosCampbell Barton
2013-02-10style cleanupCampbell Barton
2013-02-10correct arg order in header for isect_point_tri_v2(), Made for confusing ↵Campbell Barton
calltips.
2013-02-09fix for is_quad_convex_v3(), getting the dominant axis wasn't accurate ↵Campbell Barton
enough in some cases and would make beauty fill fail. now rotate the coords before calculation.
2013-02-09code cleanup: use const for matrix functions vector args.Campbell Barton
2013-02-08Cleanup: happily remove no-more-used PY_TRANSLATE RNA prop flag, and related ↵Bastien Montagne
code (just realized that flag value was wrong, probably own typo in a previous commit :/ ). That "trick" was nice when introduced, but it became kind of a pita since we added translation contexts...
2013-02-06add more path debug prints when PATH_DEBUG is defined.Campbell Barton
2013-02-03remove paranoid null check from BLI_ghash_lookup(), was the only ghash ↵Campbell Barton
function with a null check, callers better check the ghash exists first.
2013-02-03add dist_to_line_v3() for completeness, (had dist_to_line_v2 already)Campbell Barton
2013-02-02style cleanupCampbell Barton
2013-01-31Fix UI translation partly missing in scons builds (reported by Leon Cheung ↵Bastien Montagne
and Gabriel Gazzán on ML, and lockal on IRC, thanks). The problem is that, when HAVE__BOOL is not defined (as it is the case in scons currently), BLI_utildefines.h defines bool as a standard type. Was using signed char, which makes eg "bool foo = 1024" be false (overflow)! Especially nasty when using bitflags (think we have been lucky to not have worse bugs because of that)! So changed fallback bool type to unsigned int.
2013-01-31style cleanupCampbell Barton
2013-01-31add BLI_mempool_as_arrayN utility function for getting the mempool as a new ↵Campbell Barton
array (utility function currently unused).
2013-01-30correction to r54188, also don't attempt to triangulate triangles.Campbell Barton
2013-01-29skip calculating the normal for each face when triangulating, all callers ↵Campbell Barton
make sure its valid. also remove some commented code (more then one generation of bmesh old).
2013-01-29fix for fix, ugh!, vertex slide with concave/convex ngons & normal flipping ↵Campbell Barton
should now work properly in all cases. ... somehow I managed to make test-cases that worked in previous commits but failed in other cases.
2013-01-25Fix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac.Brecht Van Lommel
2013-01-25header cleanup, include BLI before BKE, also use bool for ntreeShaderExecTreeCampbell Barton
2013-01-25Do not redefine math functions for floats if compiler complies with C99 or ↵Sv. Lockal
POSIX.1-2001 This is useful for gcc which does not define sqrtf/powf/... functions with preprocessor and therefore always used sqrt/pow/... Float functions are generally 20-50% faster than their equivalents for double type.
2013-01-24Added some code which helps troubleshooting issues caused bySergey Sharybin
non-threadsafe usage of guarded allocator. Also added small chunk of code to check consistency of begin/end threaded malloc. All this additional checks are commented and wouldn't affect on builds, however found them helpful to troubleshoot issues so decided to commit it to SVN.
2013-01-23Fix normalize_m4_m4 not working correct by not copying the entire matrix,Brecht Van Lommel
caused issue in blender internal with recent fix.
2013-01-23math: Add functions to decompose transformation matricesSergej Reich
mat4_decompose() is similar to mat4_to_loc_rot_size() but returns rotation as quaternion. mat4_to_loc_quat() just returns location and rotation without size.
2013-01-21add an influence slider to mesh cache.Campbell Barton