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-05-16Remove strict header, gives issues with gcc5xCampbell Barton
2016-05-16Cleanup: use const argsCampbell Barton
2016-05-16CustomData: Support for >2gig layersCampbell Barton
2016-05-13Correct assertsCampbell Barton
2016-05-13Fix compilation with strict compiler flagsSergey Sharybin
Some const qualifier was discarding.
2016-05-13Cleanup: rna naming, indentationCampbell Barton
2016-05-13Fix T48416: Impossible to copy a linked object from a file to another one ↵Bastien Montagne
mantaining the linked library. When writing temp blenbuffer file, libraries of linked datablocks where not tagged correctly, which means they were not put in the temp Main used to write the buffer, resulting in implicit localization of linked data.
2016-05-13Fix T48416: Impossible to append from another file without localizing also ↵Bastien Montagne
all indirectly linked data. Previous to 2.77, this used to be default behavior, was changed in rB591f4549c958b. However, in most append cases, you do want a full localization of your data, so this new behavior is kept by default, but there is now an option in append operator to only localize the 'first level' of data (i.e. datablocks from linked library itself, and not those from other 'sub-libraries').
2016-05-13Armature meshdeform evaluation: parallelize computation of bbones deform ↵Bastien Montagne
matrices. On big and complex rigs like blendrig or koro, it can give up to ~10% more FPS in best cases. Hard to tackle all cases in tests though, so please report any unexpected slowdown in armature animation playback!
2016-05-13Cleanup: fix inconsitency in dynamicPaint_outputLayerExists()Bastien Montagne
Dyna WPaint indeed only uses first output layer, but better be consistent in those cases...
2016-05-13Dynapaint: cleanup of BKE code.Bastien Montagne
Line lengths, monolined 'if' statements, int -> bool, etc. Also, replaced some internal cooked stuff by BLI helpers (most notably, the 'is inside UV triangle' code in `dynamicPaint_createUVSurface()`), and some other minor optimizations.
2016-05-11Cleanup: unused win32 headersCampbell Barton
2016-05-11Correct check for tree being in BVH cacheCampbell Barton
2016-05-11Remove pointer typedef from BVHCacheCampbell Barton
Used ** arguments unnecessarily, also replace BLI_linklist_apply with while loop.
2016-05-11Fix incorrect FLT_MIN useCampbell Barton
2016-05-11Transform Volume rewrite/refactorGermano Cavalcante
Take advantage of the efficiency provided by the snap_context. Also fixes errors: - volume snap fails based on view angle (T48394). - multiple instances of dupli-objects break volume calculation.
2016-05-11Fix for inline documentation of FOREACH_NODETREE.Lukas Tönne
Was missing id macro variable.
2016-05-10Depsgraph: A bit of experiment with skipping where_is_bone if channels is ↵Sergey Sharybin
taged as done This is what old dependency graph was doing and apparently this avoids some updates, however it's not really clear why those nodes are considering done. Maybe just because of the way how relations are working. But needs a closer investigation.
2016-05-10Avoid per-constraint-target call of strlenSergey Sharybin
It's enough to do one single comparison to see if the string is empty or not.
2016-05-10Optimize action constraint by avoid memory allocationSergey Sharybin
2016-05-09Cleanup: header, styleCampbell Barton
2016-05-09Cleanup and refactor our atomic library.Bastien Montagne
This commit: * Removes most of all dirty internal details from public atomi_ops.h file, and move them into /intern private subdir. * Removes unused 'architectures' (__apple__ and jemalloc). * Split each implementation into its own file. * Makes use of C99's limits.h system header to determine pointer and int size, instead of using fix hardcoded list of architectures. * Introduces new 'faked' atomics ops for floats. Note that we may add a lot more real and 'faked' atomic operations over integers and floats (multiplication, division, bitshift, bitwise booleans, etc.), as needs arise. Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1982
2016-05-08Cleanup: warningsCampbell Barton
2016-05-08D1886: GPencil - Add smooth iterations parameter to get better qualityAntonio Vazquez
After some test, a new iteration parameter has been added in order to apply repetitive smoothing to the stroke. By default 1 iteration is applied, but can used any number between 1 and 3. The repetition uses different levels of intensity from 100% of the defined smooth factor for the first loop, 50% for the second and 25% for the third. We use in each loop a smaller value in order to avoid deform too much the stroke.
2016-05-08D1705: Fix Grease Pencil Fill for Concave ShapesAntonio Vazquez
Improve filling for concave shapes using a triangulation of the stroke. The triangulation information is saved in an internal cache and only is recalculated if the stroke changes. The triangulation is not saved in .blend file. Reviewers: aligorith Maniphest Tasks: T47102 Differential Revision: https://developer.blender.org/D1705
2016-05-08Fix T48373: Crash when using dynamic paint with brush material.Bastien Montagne
`dynamicPaint_doMaterialTex` was called from inside an omp parallel section with brush->dm itself, and not the local dm copy. Generating looptri data is not thread safe at all...
2016-05-06Fix T48262: Crash when trying to render a scene without camera.Bastien Montagne
2016-05-06Correct in-range assert (zero is valid)Campbell Barton
2016-05-06DerivedMesh: don't allocate a new material array each drawCampbell Barton
2016-05-06Cloth: Fix shrinking to properly respond to animated min/max and weight.Alexander Gavrilov
Enable dynamic restlen recomputation based on sew flag and update the shrink factor math within it to call the new utility function.
2016-05-06Cloth: Change ClothVertex::xrest to actually store the rest position.Alexander Gavrilov
Originally the value was only needed when building the springs, so a pointer to the input data was somewhat ok. However, recalculating spring length dynamically requires keeping the actual value around.
2016-05-06Part of D1903: Dynamic base mesh for cloth simulationLuca Rood
A function that recalculates cloth spring lengths.
2016-05-06Cloth: Ignore zero-restlen sewing springs in average length computation.Alexander Gavrilov
The average length is used to adjust self-collision and stiffness to match mesh density, and in either case considering the always zero restlen sewing springs doesn't actually make much sense. The struct_springs variable is also used for other things like total spring count, so a new one needed for the true struct springs.
2016-05-06Cloth: Use Geometrical Mean for averaging cloth shrink factor.Alexander Gavrilov
This comes out of considering a one-dimensional transition in weight on a rectangular cloth grid. At the transition face loop, one side of each rectangular face would be scaled by k1, and the opposite one by k2, thus turning the rectangle into a trapezoid. Averaging would be used to choose the scale factor for the remaining two sides. If Geometrical Mean, i.e. sqrt(k1*k2) is used, it so happens that the diagonals of the trapezoid also end up scaled by sqrt(k1*k2) compared to the original rectangle. This means that the same scale factor is correct for both structural and shear springs, which is not the case with simple average.
2016-05-06Cloth: Fix the shrink feature to be controlled by the sewing spring flag.Alexander Gavrilov
Previously it was all over the place: without a vertex group it was always enabled, and with it it depended on the Self Collision option due to a likely editing mistake. Now it should be in sync with what disables the fields in the UI. The verts->shrink_factor field is changed to just cache the vertex weight, with the shrink_min/shrink_max interpolation done later. This is because cloth_apply_vgroup only runs if there are vertex groups, and thus the factor may not update after property changes. In addition, bending springs are now also affected by the shrink factor to avoid visible distortion in object shape at high shrink.
2016-05-06Force Fields: Fix Texture with both Use Coordinates and 2D enabled.Alexander Gavrilov
From description, Use Coordinates evaluates the texture using target coordinates in the local space of the force field object. 2D is supposed to ignore the Z coordinate. Thus one would assume that if both are enabled, the force field effect would move with the force field object, and Z would be 0. However, instead first the 2D option projects points onto a plane passing through the global zero and orthogonal to the local Z, and only then the resulting point is transformed into local space. Z is not locked at 0, so procedural textures like Spherical Blend don't work as expected. To fix this, apply local transform first, and then just clear Z if 2D.
2016-05-06Cleanup: warningsCampbell Barton
Values set but not used
2016-05-06Multi-thread generated image creationSergey Sharybin
Gives about 2x speedup on laptop when creating new hires generated image, regardless of it's type (color, color grid, uv grid).
2016-05-05Missed last commitCampbell Barton
2016-05-05bvhutils: remove bitmap countingCampbell Barton
All callers pass in valid number
2016-05-05Cleanup: rename getepsilon -> get_epsilonCampbell Barton
2016-05-05Add asserts to check bvhutils args are correctCampbell Barton
Would have prevented previous error going unnoticed.
2016-05-05Fix crash adding byte color grid imagesSergey Sharybin
2016-05-05Transform/Snap: EditMesh/BKE_bvhutils API improvementsGermano Cavalcante
Separate the creation of trees from EditMesh from the creation of trees from DerivedMesh. This was meant to simplify the API, but didn't work out so well. `bvhtree_from_mesh_*` actually is working as `bvhtree_from_derivedmesh_*`. This is inconsistent with the trees created from EditMesh. Since for create them does not use the DerivedMesh. In such cases the dm is being used only to cache the tree in the struct DerivedMesh. What is immediately released once bvhtree is being used in functions that change(tag) the DM cleaning the cache. - Use a filter function so users of SnapObjectContext can define how edit-mesh elements are handled. - Remove em_evil. - bvhtree of EditMesh is now really cached in the snap functions. - Code becomes organized and easier to maintain. This is an important patch for future improvements in snapping functions.
2016-05-05Optimize Blank and Color Grid generated imagesSergey Sharybin
Avoid unnecessary pixels linearization gives nice speedup.
2016-05-03Cleanup: use offset macroCampbell Barton
2016-05-03Cleanup: use const for units APICampbell Barton
Also make return args explicit.
2016-05-01Fix T48325: Data transfer modifier vertex group selector doesn't work with ↵Bastien Montagne
freestyle data. Freestyle edge/face marks are (afaik) our only actual customdata bitflags... Original work kinda assumed we had no such things. :P
2016-04-30Fix T48118: Vertex Groups not masking particle hair emission correctlyBastien Montagne
Own regression from rB019ce363b01bba0af, not totally sure why removing the heading zero value in element_sum broke binary search distribution in random branch, but... New code makes thing sooo much simpler, by simply getting rid of all zero-weight items in element_sum (at the cost of adding a temporary extra index mapping array), that way neither random nor 'even ordered' distribution code has to wory anymore about skipping zero-weighted items!
2016-04-29Fix (unreported) bad 'NULL freeing' with placeholder images.Bastien Montagne
Looks like code expects some initialized Image data after all, so do it for placeholders as well (using default generated UV grid).