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
2021-01-31Fix error in recent commitGermano Cavalcante
Unused argument in rB216ebe0b7392d6
2021-01-31Revert "Cleanup: remove unused argument"Germano Cavalcante
This reverts commit 780857f8e8139613711cba041f5f0af9799804ec. The `axismtx` argument was supposed to be used.
2021-01-31Cleanup: use doxygen for transform_constraintsCampbell Barton
2021-01-31Cleanup: remove unused argumentCampbell Barton
2021-01-30Fix T83092: Direction of rotation with View orientation changed in 2.91Germano Cavalcante
This solution replaces {rBf9e994d0f463}. That commit created an inverted orientation matrix but the 'Align to Transform Orientation' operator doesn't work well with inverted matrices. This new solution makes the rotate operator use the negative vector of the axis.
2021-01-20Fix T81429: move tool's axis constraints not drawn completely when using ↵Germano Cavalcante
local orientation In fact, the drawing was that of the local contraint axis (which is summarized so as not to fill the screen with too much information). Use the local contraint axis only when more than one object is selected.
2021-01-20Revert "Transform: Use orientation of active object with Auto Constraint"Germano Cavalcante
This reverts commit 54f248fa87afd4836fb7154056cd0e8d920401f1. And fixes T84259. Apparently the ideal behavior was the previous one.
2020-12-04Cleanup: Deduplicate constraint event codeGermano Cavalcante
2020-11-06Cleanup: clang-formatCampbell Barton
2020-11-04Transform: Disable snap to plane-face intersectionGermano Cavalcante
This feature was added in D5608. But in practice this confuses more than it helps. This fixes T82386.
2020-10-08Fix T81529: Can't move with constraint to a zero-size local axisGermano Cavalcante
To fix the problem, it was necessary to create a fallback for the zero-sized axis in local orientation. This also affects the gizmos.
2020-10-08Cleanup: Move transform_orientations functions to separate headerGermano Cavalcante
Improves the organization and identification of the API.
2020-10-06Fix T81465: Snapping to edge center doesn't work as expected when using axis ↵Germano Cavalcante
locking The result was being affected by the view alignment correction. Regression introduced in rB4eda60c2d82d
2020-10-05Transform: Use orientation of active object with Auto ConstraintGermano Cavalcante
Fix T81429. This was an intentional change in rBc75a665c442e as it maintains the same behavior as the constraint with or without modifier. But from the user's PoV, it is better to keep the old behavior. This makes drawing and behavior more intuitive.
2020-09-25Fix T80937: Changing the contrain axis does not return to the scene orientationGermano Cavalcante
This was the behavior in old versions of blender. During a transformation operation, when pressing a contrain key, the chosen orientation is that of the scene. If you press the same key, the orientation changes to Global or Local. However, if you choose another contrain axis with the orientation changed, the orientation does not return to the set for the scene. It remains Global or Local. Now when changing a contrain axis, no matter what the current orientation is, it always returns to the scene orientation.
2020-09-23Fix T81069: Can't lock axis with move anymore, using Shift+MMBGermano Cavalcante
This fixes and reverts commit c7287ffaec59cecd4b63b4bb2ea1aaf44f09f704 Due to hardcodded keys, the modifier for auto contrain plane did not work with custom keymaps and was in conflict with other keyitems. Its usability is also confusing since it cannot be used without `MOD_PRECISION` But instead of removing it, it is better to make this modifier compatible with custom keymaps and keep the conflict.
2020-09-14Cleanup: remove unused functionJacques Lucke
The last usage was removed in {rB4eda60c2d82de0d7f7ded8ddf1036aea040e9c0d}.
2020-09-12Fix T80677: Absolute grid snapping doesn't work with constraintsGermano Cavalcante
Regression introduced in rB546b900194f0
2020-09-09Cleanup: reduce variable scopeJacques Lucke
2020-09-03Fix assert when cleaning constraints in the transform toolGermano Cavalcante
When enabled, the modal key item "Clear Constraint" did not reset the default orientation. This does not bring changes in the user's point of view.
2020-09-01Transform: remove MOD_CONSTRAINT_PLANEGermano Cavalcante
It conflicts with MOD_PRECISION and was not really working properly.
2020-08-31Cleanup/Refactor: Split the snap to increments codeGermano Cavalcante
Now we have a better distinction of what is snap to grid and what is snap to increments. The code also allows the implementation of mixed snap for these modes.
2020-08-20GPUState: Use explicit depth test enumClément Foucault
2020-08-18GPUState: GPU_blend final API renamingClément Foucault
We now use GPU_blend for enabling / disabling blending and explicitly set the blend equation.
2020-08-07Cleanup: pass arrays const where possibleCampbell Barton
2020-07-29Fix T78826: Move constraint is not fully disabledGermano Cavalcante
Caused by rB45f17e10ec50
2020-07-01Revert "Fix alignment test when snap to edge while in constraint"Germano Cavalcante
This reverts commit e16972389e728eeaf5043bb3cbd85fb7312a6463.
2020-07-01Fix alignment test when snap to edge while in constraintGermano Cavalcante
2020-06-30Fix T76480 UI: Proportional Editing Color too Shallow on 2.9aClément Foucault
This changes the drawing by drawing 2 circles with different intensity to avoid any readability issues. This removes the need for Logic OP which is implementation dependent.
2020-06-22Fix constraint alignment check on snap axis to planeGermano Cavalcante
2020-06-22Transform: Full snapping support for Vert SlideGermano Cavalcante
Now all options for "snap to" affect the Vert Slide mode. Reviewed By: campbellbarton Maniphest Tasks: T66426 Differential Revision: https://developer.blender.org/D3440
2020-06-18Transform: Snap to the intersection between constraint and geometryGermano Cavalcante
This commit changes the behavior of 4 snapping combinations: **1. While constraining to a plane, snap to an edge element:** The snap is made at the intersection between the edge direction and the constraint plane. **2. While constraining to a plane, snap to a face element:** The snap is made to the nearest point between the snap point and the line that intersects the face plane with the constraint plane. **3. While constraining to an axis, snap to an edge/line element:** The snap is made to the nearest point on the axis to the edge/line. **4. While constraining to an axis, snap to a face element:** The snap is made at the intersection of the axis and the plane defined by the face. To avoid unpredictable jumps outside view boundaries, an alignment check is made for each of these snapping combinations. Resolve/fix T66422 Differential Revision: https://developer.blender.org/D5608
2020-06-16Cleanup: unused headers, spellingCampbell Barton
2020-06-01Fix T77194: Force global orientation on select constraint (Shift MMB) not ↵Germano Cavalcante
working This feature was a hack to prevent mmb select to print the orientation from menu in pre 2.80 versions. Removing this feature as it is no longer an issue.
2020-05-30Fix T77183: Axis moves with object when constraint movement and using local ↵Germano Cavalcante
transform
2020-05-22Cleanup: Deduplicate codeGermano Cavalcante
2020-05-22Fix redo with local orientationGermano Cavalcante
2020-05-22Fix unused parameter `ftext`Germano Cavalcante
2020-05-22Transform: refactoring - unify constraint and default orientationGermano Cavalcante
2020-05-20Transform: Don't negate the z axis of the View orientationGermano Cavalcante
This was so because of the rotate transformation mode but it can make other modes confusing and add unnecessary complexity.
2020-05-20Fix T73148: Incorrect Repeat Last for transforms with Individual Origins and ↵Germano Cavalcante
Normal orientation `pvec` was confusing and was adding steps that are apparently unnecessary. So the code has been redone so as not to use this pvec.
2020-05-11Fix T76630: Crash when changing transform value with Custom OrientationGermano Cavalcante
2020-05-01Transform: Allow orientation change with custom matrix in modalGermano Cavalcante
2020-05-01Revert "Improve proportional edit drawing"Germano Cavalcante
Accident! This reverts commit ae049a6c6ac545b2c9eadf759f40ad864f436ff1.
2020-05-01Fix T76254: 'Normal' Transformation Orientation using GlobalGermano Cavalcante
Issue introduced in rBc57e4418bb85.
2020-05-01Improve proportional edit drawingGermano Cavalcante
(This is a simplified version of D4786) The advantage of highlighting the points would be to indicate more clearly what is affected by the proportional edit. The default circle is not so informative and sometimes it is even off screen so the user loses the quick identification of the influence. (See T75482) The disadvantage of this design is that the points could end up hiding the mesh. The original patch added the option `draw_proportional_gradient`, but I prefer to avoid adding more options and more information to the interface. I'm not sure if the advantages outweigh the disadvantages. {F8504097} Reviewers: #user_interface, #modeling Subscribers:
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-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-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.