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
2020-04-30Fix orientation change in RedoGermano Cavalcante
Some transform redo operations require contraint to be enabled. Issue introduced in rBc57e4418bb85.
2020-04-30Fix T76260: Inverted rotation in non-3d viewsGermano Cavalcante
Issue introduced in rBc57e4418bb85.
2020-04-29Fix crash with Orbit Around SelectionGermano Cavalcante
Missing check of `NULL` `op` introduced in rBc57e4418bb85.
2020-04-29Transform Orientation RefactorGermano Cavalcante
- Use `t->spacemtx` as the orientation matrix instead `t->orient_matrix`. - Unify constraint behavior between modal and non-modal. - Simplify code to remove old workarounds and rearrange struct members. This fix T66142 since the actual `orient_type` (in the case `V3D_ORIENT_NORMAL`) is used during Redo instead of always using `V3D_ORIENT_CUSTOM_MATRIX`). Differential Revision: https://developer.blender.org/D7469
2020-04-29Merge branch 'blender-v2.83-release'Philipp Oeser
2020-04-29Fix T75810: Child bone frozen when both Auto IK and X-Axis mirror arePhilipp Oeser
used Caused by {rBa6a9a12e8f32} Other relevant commits: rBb8ca806b7798e2f8dd6effca8f0d081b3cd8c23f rBde530a95dc7b482dc22c933b9b8b2a98c79b5663 The issue is caused by some leftover BONE_TRANSFORM_MIRROR flags on a bone from previous runs (file in the report had the flag still on forearm.R). With these false leftover flags still set, `pose_grab_with_ik()` cannot work correctly. Culprit commit above removed the early clearing of this flag on all bones, this should be restored [this happened in `count_set_pose_transflags()`]. This should only be done in the beginning of the transform process, so now still clear the flags early in 'createTransPose()' [but dont restore this in 'count_set_pose_transflags()' -- this will be called from special_aftertrans_update again, so placing the clearance here only complicates things (autokeyframe_pose() still needs to work as well)...] Maniphest Tasks: T75810 Differential Revision: https://developer.blender.org/D7527
2020-04-28Cleanup: Use more descriptive names for functionsGermano Cavalcante
count_set_pose_transflags --> transform_convert_pose_transflags_update count_bone_select --> armature_bone_transflags_update_recursive Also don't mix `BONE_TRANSFORM_MIRROR` with `BONE_TRANSFORM` in transflag. (This was a mess introduced in rBde530a95dc7b).
2020-04-27Merge remote-tracking branch 'origin/blender-v2.83-release'Ray Molenkamp
2020-04-27cleanup: Remove unused variableRay Molenkamp
2020-04-27Merge branch 'blender-v2.83-release'Germano Cavalcante
2020-04-27Fix T75398: Redo with Shift R always uses the previous pivot centerGermano Cavalcante
Overwriting the pivot center was an attempt to fix T71455. The solution now is to save the direction in the "mirror" property.
2020-04-27Cleanup: Use common utility to get direction for TIME_EXTENDGermano Cavalcante
2020-04-20Merge branch 'blender-v2.83-release'Bastien Montagne
2020-04-20Fix T75922: Removing custom orientation doesn't update gizmoCampbell Barton
2020-04-15Operator: Add 'use_automerge_and_split' option for TranslateGermano Cavalcante
2020-04-15Cleanup: unused variable, spellingCampbell Barton
2020-04-15Fix unreported Auto IK crash when using targetless IK.Sebastian Parborg
Needed to use a temporary pchan iterator to make sure that we keep track of the selected bone.
2020-04-15Fix T75649: Using "Auto IK" on FK controls with Rigify will crash Blender.Sebastian Parborg
Fixed a coding mistake when adding temp IK chains with Auto-IK. We need to use the data from the new temporary constraint.
2020-04-14Cleanup: spellingCampbell Barton
2020-04-10Fix T67232: Multiples targetless IKs in a chain gives weird behaviour (known ↵Sebastian Parborg
as FakeIK for FK posing) The issue was that the deps graph relation builder assumed that all bones that had a IK constraint on them would be evaluated. However for targetless IK bones, only the active bone would receive updates and the others would be skipped (as those would be treated as if the IK constraint was disabled). I didn't see an easy way to solve this from the depsgraph side of things. Instead I came up with a solution that I feel is quite strait forward and reflects what is actually supposed to happen under the hood. Now all targetless IK constraints are treated as disabled and will not be added to any relations in the depsgraph. Instead, a temporary IK constraint will be created when the bone in question is transformed. This is basically activating "Auto IK" for the bone while transforming. Reviewed By: Sergey, Brecht Differential Revision: http://developer.blender.org/D7378
2020-04-10Fix T74657: Grease Pencil Proportional Editing does not work forPhilipp Oeser
'Individual Origins' Note gpencil doesnt do anything fancy like meshes in editmesh_islands_info_calc(), but it looks like there is actually no harm in allowing proportional editing with individual origins & gpencil editmode. Maniphest Tasks: T74657 Differential Revision: https://developer.blender.org/D7351
2020-04-07Fix T73598: Pose options - Auto IK. Bones move on releaseSebastian Parborg
The issue was that the code tried to use the bones transformation matrix as a rotation matrix. This works fine as long as the scale is 1. Now we simply make sure that we only get a pure rotation matrix when extracting it for the bone's transformation matrix.
2020-04-07Fix T60069: repeated extrusion uses wrong axismano-wii
2020-04-05Cleanup: macro hygiene, parenthesize argumentsCampbell Barton
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Including "BLI_listbase.h" for LISTBASE_FOREACH macroDalai Felinto
These headers are not needed right away, but will be in the upcoming commit.
2020-04-03Cleanup: Animation, move AnimData API to `anim_data.c`/`BKE_anim_data.h`Sybren A. Stüvel
The `BKE_animsys.h` and `anim_sys.c` files already had a an "AnimData API" section. The code in that section has now been split off, and placed into `BKE_anim_data.h` and `anim_data.c`. All files that used to include `BKE_animsys.h` have been adjusted to only include the animation headers they need (sometimes none). No functional changes.
2020-04-03Fix T74495: Shrink/Fatten gives strange results with Individual OriginsGermano Cavalcante
The island `axismtx` is only necessary in some transform modes. In the case of `Shrink/Fatten`, the calculated `axismtx` brings an undesirable result. This commit rearrange the struct `TransIslandData` in order to calculate and reference only the arrays that will be used for each transform mode. Differential Revision: https://developer.blender.org/D7305
2020-04-03Cleanup: Rename ScrArea variables from sa to areaJulian Eisel
Follow up of b2ee1770d4c3 and 10c2254d412d, part of T74432. Now the area and region naming conventions should be less confusing. Mostly a careful batch rename but had to do few smaller fixes. Also ran clang-format on affected files.
2020-04-03Cleanup: split ED_mesh_mirror_*_table into multiple functionsCampbell Barton
Spatial & topology mirror table each used a single function taking a char as an identifier. Split these into begin/end/lookup functions.
2020-04-03Cleanup: split `BKE_anim.h` and `anim.c` into smaller piecesSybren A. Stüvel
The files are now split up into the following sections: - `BKE_anim_path.h` and `anim_path.c` for path/curve functions. - `BKE_anim_visualization.h` and `anim_visualizationanim_path.c` for animation visualization (mostly motion paths). - `BKE_duplilist.h` for DupliList function declarations. These were already implemented in `object_dupli.c`, so they were rather out of place being declared in `BKE_anim.h` in the first place. No functional changes.
2020-04-03Cleanup: use abbreviated names for unsigned types in editorsCampbell Barton
2020-03-30Fix T75142: No autokeying with pose mode X-MirrorSybren A. Stüvel
This was caused by the removal of some `BONE_TRANSFORM_MIRROR` flag handling in rBde530a95dc7b482dc22c933b9b8b2a98c79b5663. I simply restored those lines that caused this issue.
2020-03-30Cleanup: reduce code indentation in autokeyframe_pose()Sybren A. Stüvel
This makes the code a bit simpler to follow, by replacing `if (x) { all the code here }` with `if (!x) { continue; }` and un-indenting the remaining code, and by returning early. No functional changes.
2020-03-27Cleanup: rename WM_modalkeymap API names, matching WM_keymapCampbell Barton
Rename: - WM_modalkeymap_add to WM_modalkeymap_ensure - WM_modalkeymap_get to WM_modalkeymap_find
2020-03-26Fix crashes from various missing checks in operator poll functionsCampbell Barton
Issues exposed by 'bl_run_operators.py' utility.
2020-03-25Fix T74846: UV gizmo swaps X/YCampbell Barton
2020-03-25Cleanup: use 'r_' prefix for output argumentsCampbell Barton
Also pass some args as 'const'.
2020-03-25Cleanup: update doxy sectionsCampbell Barton
2020-03-23Revert "COW: Edit Mesh: Do not copy the looptris pointer"Germano Cavalcante
The looptri is repeated in the linked Meshes but the pointer is only referenced in the evaluated ones. This reverts commit 64982e213f014123d1b0406cf9ae893910a6a3d3.
2020-03-23COW: Edit Mesh: Do not copy the looptris pointerGermano Cavalcante
No functional changes. Differential Revision: https://developer.blender.org/D7173
2020-03-20GPencil: Fix unreported slow transform with proportional editionAntonio Vazquez
Now a hash is used to avoid double update of the same stroke. The old method was not correct with proportional edition.
2020-03-19GPencil: Cleanup - Split BKE_gpencil.h geometry functions into ↵Antonio Vazquez
BKE_gpencil_geom.h This split prepare the code for future geometry functions.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-19UI: add view aligned gizmo colorCampbell Barton
Was hard coded to white making white backgrounds impractical. D7162 by @billreynish with edits.
2020-03-19Cleanup: shadow warningCampbell Barton
2020-03-18Cleanup: Resolve HKEY conflictRay Molenkamp
Both the MS headers and blender headers define the HKEY which gives all kind of inclusion order issues. This diff renames all *KEY constants to EVT_*KEY to resolve this conflict. Reviewed By: brecht , dfelinto Differential Revision: http://developer.blender.org/D7164
2020-03-18Fix T74876: Crash when snapping to facesGermano Cavalcante
The crash occurs after operators change the amount of editmesh looptris. The looptris of the evaluated object's editmesh are not updated.
2020-03-18Cleanup: Rename variablesGermano Cavalcante
2020-03-17Cleanup: rename 'centre' to 'center' in View3DCampbell Barton