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-05-24Merge branch 'blender-v2.93-release'Germano Cavalcante
2021-05-24Fix (unreported): Automatic transform contraint not being disabledGermano Cavalcante
It does not make sense to maintain automatic constraint selection when you manually set the constraint.
2021-05-24Cleanup: Rename transform enum itemsGermano Cavalcante
Make them more descriptive.
2021-05-20Fix T87947: Trasnform: Keyboard input uses view orientationGermano Cavalcante
When activated in modal, `translate`, `resize`, `rotate`, `shear` and `edge_rotate_normal` use a different orientation than the set in scene. This orientation needed to match since some of these modes can be switched during operation. The default orientation for these modes was `V3D_ORIENT_VIEW`. And this changed when finishing the `translate` and `resize` to `V3D_ORIENT_GLOBAL`. But this could cause inconsistencies when inputting values from the keyboard. The solution now is to change the orientation when you change the mode. --- Note: Although the user can expect the value entered to reflect the orientation set in the scene, it would require a lot of changes and would not be really useful.
2021-05-20Cleanup: Use enum to indicate the current orientationGermano Cavalcante
Improves readability.
2021-05-12Cleanup: use our own code style for doxy-gen comment blocksCampbell Barton
2021-05-12Fix T87947: Trasnform: Keyboard input uses view orientationGermano Cavalcante
When activated in modal, `translate`, `resize`, `rotate`, `shear` and `edge_rotate_normal` use a different orientation than the set in scene. This orientation needed to match since some of these modes can be switched during operation. The default orientation for these modes was `V3D_ORIENT_VIEW`. And this changed when finishing the `translate` and `resize` to `V3D_ORIENT_GLOBAL`. But this could cause inconsistencies when inputting values from the keyboard. The solution now is to change the orientation when you change the mode. --- Note: Although the user can expect the value entered to reflect the orientation set in the scene, it would require a lot of changes and would not be really useful.
2021-05-12Cleanup: Use enum to indicate the current orientationGermano Cavalcante
Improves readability.
2021-04-28Cleanup: Fix inconcistent array lengths in function declarationsHans Goudey
In some cases functions were defined with arguments of different array lengths in headers vs. implementations. This commit fixes some of the cases I ran into, but probably not all of them.
2021-02-09Transform: Expose the hardcoded Precision KeyGermano Cavalcante
As shown on the T85383, attempts are made to edit the precision mode key. But that key was hardcoded. That key now appears among the custom modal keymap items.
2021-02-08Cleanup: Unify, move and rename transform flagsGermano Cavalcante
Flags unified: T_CURSOR -> CTX_CURSOR T_TEXTURE -> CTX_TEXTURE Flags moved: T_CAMERA -> CTX_CAMERA T_POSE -> CTX_POSE_BONE T_OBJECT -> CTX_OBJECT T_TEXTURE -> CTX_TEXTURE_SPACE Flag renamed: CTX_EDGE -> CTX_EDGE_DATA
2021-02-05Cleanup: correct spelling in commentsCampbell Barton
2021-01-04Cleanup: redundant call to WM_modalkeymap_findCampbell Barton
2020-12-28Fix T84200: Rotating a paintcurve [all paintmodes] doesn’t work correctlyGermano Cavalcante
The transform code did not provide a 2d context to be used in 3d space. The solution is to set all matrices for the screen space in these cases. This commit also removes the dial3d drawing in these cases. It was not correct anyway.
2020-12-07Fix T83307: Some modal keys of transform operators don't correspond to the ↵Germano Cavalcante
expected effect The transform modes `shrinkfatten` and `seq_slide` have a special way of handling events. They use modal events in a different way than expected. Therefore, this commit adds special event handles for these modes and removes the keymodal tips from the status bar. These effects are already described in the header anyway.
2020-12-04Transform: Don't use Automatic Constraint Plane in 2D editorsGermano Cavalcante
Technically it shouldn't have any effect on these editors. The key tips in the header can be misleading. The effect it previously had was not intended.
2020-12-04Cleanup: Deduplicate constraint event codeGermano Cavalcante
2020-12-04Fix T83177: Industry Compatible keymap: MMB-dragging to transform engages ↵Germano Cavalcante
axis-constraining on release With rBc0677b662f4b, we try to track all modal events in order to detect the one corresponding to the release. But modifier keys can mask the modal event and thus confirm realease ends up being skipped. This resulted in the T83387. With this commit we now read the actual key drop value in the modal event. This fixes T83387
2020-12-04Revert "Fix T83177: Industry Compatible keymap: MMB-dragging to transform ↵Germano Cavalcante
engages axis-constraining on release" This reverts commit c0677b662f4b13429c0738b99ace85403385ff38.
2020-11-30Fix T83177: Industry Compatible keymap: MMB-dragging to transform engages ↵Germano Cavalcante
axis-constraining on release Release confirm did not consider modal keymap events.
2020-11-26Transform: Improve event detection for AutoConstrainGermano Cavalcante
The event "value" is not really required since this operation works as a toogle. This change cleans and simplifies the code.
2020-11-26Fix T83020: Transform: AutoConstraint being confirmed without releasing the MMBGermano Cavalcante
The transform modifiers are confirmed by releasing any button. Thus, the operation can be falsely confirmed if the button that launched the operation is released after the modifier has been activated. Previously the events that confirmed the modifiers were hardcoded. An option to fix this would be to add custom confirmation keyitens for specific modifiers. But this can be a bit confusing and would make the modal keymap even bigger. So the solution here is to skip the button that launched the operation when confirming the modifier.
2020-11-06Cleanup: use ELEM macroCampbell Barton
2020-11-05Merge branch 'blender-v2.91-release'Robert Guetzkow
2020-11-05Fix T82423: Replace duplicate name in keymapRobert Guetzkow
The two entries `TFM_MODAL_AUTOCONSTRAINT` and `TFM_MODAL_AUTOCONSTRAINTPLANE` had the same name displayed in the UI. The latter is now includes "plane" in it's name. Reviewed By: mano-wii Differential Revision: https://developer.blender.org/D9474
2020-11-02Fix T77819: Snap Incremental does not match grid in all casesGermano Cavalcante
The behavior of the incremental snap did not take into account the relative dimensions of the window, which resulted in a different behavior if the area height was greater than the width.
2020-10-24UI: Capitalization CorrectionsYevgeny Makarov
Approximately 141 changes of capitalization to conform to MLA title style. Differential Revision: https://developer.blender.org/D8392 Reviewed by Julian Eisel
2020-10-10Cleanup: use C comments for descriptive textCampbell Barton
Follow our code style guide by using C-comments for text descriptions.
2020-10-08Cleanup: Move transform_orientations functions to separate headerGermano Cavalcante
Improves the organization and identification of the API.
2020-10-08Cleanup: Simplify use of 'Snapping Gears'Germano Cavalcante
This commit removes `t->snap[0]` and `t->snap_spatial[0]`. They were not actually being used, and could add overhead for transformation without snap.
2020-09-30Cleanup: convert gforge task ID's to phabricator formatValentin
Cleanup old tracker task format to the new. e.g: [#34039] to T34039 Ref D8718
2020-09-25Fix constrain plane not being set in tranform codeGermano Cavalcante
Error introduced in rB388b9162469650c
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-23Missed in last commitGermano Cavalcante
It is necessary to confirm the constrian.
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-03Cleanup: Shorten the name of the Auto Constraint modal keymapGermano Cavalcante
It was taking up too much space in the status bar.
2020-09-03Revert "Fix T59358: Wrong status bar keymap for release confirms and right ↵Germano Cavalcante
click select." This reverts commit 17905e89a72dcd816efb51b7403e6c01bc3e71e8. Fix T80429: Transform Tools cannot be cancelled rB17905e89 better filtered the key items that should appear in the status bar. But it is very restrictive since canceling is still possible in other cases. # Conflicts: # source/blender/editors/transform/transform.c
2020-09-01Transform: remove MOD_CONSTRAINT_PLANEGermano Cavalcante
It conflicts with MOD_PRECISION and was not really working properly.
2020-09-01Fix constrain plane masking shift eventGermano Cavalcante
This prevented transformation with a precision modifier.
2020-09-01Transform: Move some hardcoded keyitems to keymap_data in pythonGermano Cavalcante
Keymaps must be customized by the user. But this is not the case for hardcoded keymaps. Also the repetition of hardcoded and user-defined keyitems may induce the user to think they have made a mistake or it is a bug. Differential Revision: https://developer.blender.org/D6454
2020-08-18Cleanup: GPUState: remove double GPU_blend callsClé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-18Cleanup: GPUState: Replace blend func separate by enumClément Foucault
2020-07-03Cleanup: Editors/Transform, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/transform` module. No functional changes.
2020-07-01Transform: generalized custom-data correction supportGermano Cavalcante
Support custom-data correction based on surrounding geometry for all transformation modes of the mesh transform operators. The is the same logic used in Vert and Edge Slide. In order not to change the current default behavior, this property does not affect Vert and Edge Slide modes.
2020-06-27Fix T78259: Proportional editing does not work in particle editingGermano Cavalcante
And better identify what is bool and what is flag in the proportional edit properties.
2020-06-26Fix T78304: Scaling without a constraint axis shows wrong parameters in ↵Germano Cavalcante
Adjust Last operator panel Caused by {rB600fd1c6f0ed}
2020-06-23Fix T78045: CTL-ALT-S does nothing in pose mode and crashes when called from ↵Germano Cavalcante
the menu
2020-06-16Fix T61777: Proportional editing doesn't work with multi edit-modeAlan Troth
2020-06-15Cleanup: Rearrange Vert and Edge slide functionsGermano Cavalcante
And make `trans_mesh_customdata_correction` a more generic utility.