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
2019-08-05Cleanup: use unsigned char for theme colorsCampbell Barton
Nearly all byte-color functions use 'uchar' causing casts when then colors were passed in. Declare as uchar to remove the need for casts.
2019-07-18Fix T61117: Selecting an armature doesn't select the boneCampbell Barton
Regression from 2.7x caused by 28dfc47cf0b06
2019-07-12Fix T66773: Active edit-bone isn't updatingCampbell Barton
2019-07-12Cleanup: use `_orig` as a suffixCampbell Barton
2019-07-12UI: increase contrast for active boneCampbell Barton
Follow up for T66747 fix, active color didn't contrast enough.
2019-05-30Fix T64510 Armature: Empty Not Visible as Bone custom shapeClément Foucault
2019-05-14DRW: Refactor: Use DRWCall to accumulate per instance attributesClément Foucault
This is a big change that cleanup a lot of confusing code. - The instancing/batching data buffer distribution in draw_instance_data.c. - The selection & drawing code in draw_manager_exec.c - Prety much every non-meshes object drawing (object_mode.c). Most of the changes are just renaming but there still a chance a typo might have sneek through. The Batching/Instancing Shading groups are replace by DRWCallBuffers. This is cleaner and conceptually more in line with what a DRWShadingGroup should be. There is still some little confusion in draw_common.c where some function takes shgroup as input and some don't.
2019-05-09DepsGraph: Multi ViewLayer SelectionJeroen Bakker
When using multiple viewlayers and switching between them the selection gets buggy. The reason for this is that the select_id is updated based on the index in the viewlayer. This makes the select_id not unique as objects might be shared or not shared at all. This fix will update the select_id on all objects in main. This will be triggered in all the selection operators. Reviewed By: sergey, brecht Maniphest Tasks: T55617 Differential Revision: https://developer.blender.org/D4824
2019-05-09Fix Crash with armature using custom shapesClément Foucault
2019-05-01Cleanup: comments (long lines) in drawCampbell Barton
2019-04-26Cleanup: ArmatureClément Foucault
2019-04-26Armature: Speedup by removing unecessary checkClément Foucault
drw_batch_cache_generate_requested() is only needed when the geom needs to be created. Went from 37fps to 47fps with artificial testcase (lots of bones with one custom shape). Baseline 2.79 is 24fps. Also fix the drw_shgroup_bone_custom_wire.
2019-04-26Fix T62880 Severe FPS drop with multiple bone shapesClément Foucault
Fix instancing batches not being reused by custom bone shapes. Drawing thoses is now faster than 2.79 (40fps instead of 30fps)
2019-04-23Cleanup: rename the curveInX etc bbone DNA fields to curve_in_x etc.Alexander Gavrilov
2019-04-23B-Bones: split the Scale In/Out properties into X and Y values.Alexander Gavrilov
As far as I can tell, there is no technical reason why the B-Bone segment thickness scaling can't be separated into two axes. The only downside is the increase in complexity of the B-Bone settings, but this is inevitable due to the increase in flexibility. Updating the file is somewhat complicated though, because F-Curves and drivers have to be duplicated and updated to the new names. Reviewers: campbellbarton Subscribers: icappiello, jpbouza Differential Revision: https://developer.blender.org/D4716
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-16Cleanup: trailing commasCampbell Barton
2019-04-13Fix T37500: implement Bendy bone segment deformation interpolation.Alexander Gavrilov
Previously B-Bone deformation mapped every vertex to just one B-Bone segment. This results in abrupt transformation differences between the sides of each threshold plane, reducing the quality of B-Bone deformation and making the use of shape keys impractical. This commit replaces this approach with a linear blend between the two closest segment transformations, effectively representing the B-Bone as two weight-blended plain bones for each vertex. In order to distribute the interpolation more evenly along the bone, segment matrices for deformation are now computed at points between the segments and at the ends of the B-Bone. The computation also uses the true tangents of the Bezier curve for the orientation. The nodes at the end of the bone require some special handling to deal with zero-length Bezier handles caused by a zero ease value. The Copy Transforms constraint now also smoothly interpolates rotation and scaling along the bone shape when enabled. The initial version of the patch was submitted by @Sam200. Differential Revision: https://developer.blender.org/D4635
2019-04-09Cleanup: styleCampbell Barton
2019-04-04Cleanup: styleCampbell Barton
2019-03-28Fix T60421: Bone heads are hidden when non-connected parent is hiddenSebastian Parborg
The root point of a bone is now always drawn unless it is connected to an other bone. Reviewed By: Clément Foucault Differential Revision: http://developer.blender.org/D4194
2019-03-27Cleanup: style, use braces for drawCampbell Barton
2019-03-16DRW: support clipping for armature bone axesCampbell Barton
Also minor changes to make empty axis match armature axis.
2019-03-16DRW: support clipping for envelope armature draw typeCampbell Barton
2019-03-16DRW: support clipping for relationship linesCampbell Barton
2019-03-05DRW: support clipping for bone vertsCampbell Barton
2019-02-28Cleanup: styleCampbell Barton
2019-02-27Armature: Force Transparent bone in wireframe display type/modeClément Foucault
This makes the bones transparent when the object or the viewport display type is Wireframe. This is in order to make things consistent. In object mode all bones are fully transparent to not create more visual noise if the scene is complex. Another small addition is that the Bounding Box draw mode now works as expected on armatures.
2019-02-19DNA: rename select_color -> select_idCampbell Barton
The term color is misleading, it's an integer id that happens to be written to a color in some cases, then converted back to an integer.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-10Cleanup: use shorter name for shader configCampbell Barton
The struct name is descriptive, this isn't going to be confused with other variables.
2019-02-08DRW: support clipping for stick & wire bonesCampbell Barton
2019-02-07DRW: support clipping for octahedral & box bonesCampbell Barton
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: blank lines over doxy headersCampbell Barton
2019-01-26Cleanup: draw manager headersCampbell Barton
2019-01-24Cleanup: add missing braces to draw managerCampbell Barton
2019-01-23Cleanup: add BEGIN/END to GPL headersCampbell Barton
2019-01-15Cleanup: rename BASE_FROMDUPLI -> BASE_FROM_DUPLICampbell Barton
Matches `BASE_FROM_SET`.
2019-01-15Fix T60504: Armature wire draw type hidden when unselectedCampbell Barton
2018-12-18DRW: Cleanup / Renaming of mesh batch cache functionsClément Foucault
THis is in order to avoid the jungle of names being different at each step of the API. Also removes some unused functions.
2018-12-18Fix crash with armature custom bone in wireframe modeClément Foucault
2018-12-18Armature: temp workaround for crash caused by custom bone drawingClément Foucault
2018-12-02Merge branch 'master' into blender2.8Campbell Barton
2018-11-23Depsgraph: add a new operation node for computing B-Bone segments.Alexander Gavrilov
Computing the shape of a B-Bone is a quite expensive operation, and there are multiple constraints that can access this information in a variety of useful ways. This means computing the shape once per bone and saving it is good for performance. Since the shape may depend on the position of up to two other bones, often in a "cyclic" manner, this computation has to be a separate node with its own dependencies. Reviewers: sergey Differential Revision: https://developer.blender.org/D3975
2018-11-05Cleanup: use boolCampbell Barton
2018-10-17Fix armature bones spline ik lines offsetDalai Felinto
2018-10-17Fix armature bones ik lines offsetDalai Felinto
2018-10-05Add a new B-Bone Custom Handle type that uses the handle bone direction.Alexander Gavrilov
Both original handle types are based on location, and Absolute uses it in a weird way: the Start handle uses the head, while End uses the tail. This makes controlling the shape of the B-Bone via control bone rotation really non-intuitive, especially if trying to add a single control for the tangent in the middle of a B-Bone chain. To remedy this, add a new custom handle type that uses the orientation of the control bone, while completely ignoring location. It is even possible to control both ends of one B-Bone with the same handle bone, resulting in an S shape. Reviewers: brecht Differential Revision: https://developer.blender.org/D3769