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-02-04Merge branch 'blender-v2.92-release'Germano Cavalcante
2021-02-04Fix for 3D view transform: flipped rotation direction for numeric inputGermano Cavalcante
The rotation direction was flipped recently. This meant that rotation on a single axis gave negative results compared with previous Blender releases. This partially reverts a9b53daf23ba8b6cb4c930e06154ffd35522b00d. Differential Revision: https://developer.blender.org/D10299
2021-02-04Cleanup: pass keymap items as const where possibleCampbell Barton
2021-02-04Cleanup: replace '_imp' function suffix with '_impl'Campbell Barton
Use the more common abbreviation for `implementation`.
2021-02-04NLA: Fix Strip Truncate When Next to TransitionWayde Moss
**Problem**: Translating a strip will truncate it when next to a transition. **Solution**: The code only accounted for the prev/next strip for whether it exceeds. When it was a transition, the exceed logic fails. Now, we use the nearest non-transition strip instead. Reviewed By: sybren, #animation_rigging Differential Revision: https://developer.blender.org/D10083
2021-02-03Merge branch 'blender-v2.92-release'Germano Cavalcante
# Conflicts: # source/blender/editors/transform/transform_constraints.c
2021-02-03Fix unreported: Rotation Gizmo "C" influenced by custom orientationGermano Cavalcante
The white rotation Gizmo should always use the View orientation. Before, if you set an orientation for the gizmo other than the default, that gizmo would behave like the contraint Z Gizmo.
2021-02-03Fix T85340: Gizmo rotation inverted (in some perspective angles)Germano Cavalcante
This is an old bug (strange not to have been reported before). To define the direction of rotation, the View Vector is used. However, only the projection matrix was being considered, but in perspective mode, the position of the pivot also matters.
2021-02-03Cleanup: Move and rename 'getViewVector' utilityGermano Cavalcante
This function is only being used by the constraint code.
2021-02-03Fix 'getViewVector' returning inverted vectorGermano Cavalcante
Despite the wrong value, this change is harmless since the direction of the vector is not really required.
2021-02-01Fix T85229: Transform operator saving a different orientation than the ↵Germano Cavalcante
chosen one Some orientations are not possible to be calculated for certain scenes. In these cases, others are chosen and informed by the operator. However, the user may prefer that the chosen one be displayed (even if it is not actually used). This corresponds to older versions of Blender.
2021-01-31Fix 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-31Revert "Fix T83092: Direction of rotation with View orientation changed in 2.91"Germano Cavalcante
This reverts commit f9e994d0f463abb87761591e30c47a9613be6cca. And fixes T85227. That commit created an inverted orientation matrix but the 'Align to Transform Orientation' operator doesn't work well with inverted matrices.
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-30Revert "Fix T83092: Direction of rotation with View orientation changed in 2.91"Germano Cavalcante
This reverts commit f9e994d0f463abb87761591e30c47a9613be6cca. And fixes T85227. That commit created an inverted orientation matrix but the 'Align to Transform Orientation' operator doesn't work well with inverted matrices.
2021-01-29Merge branch 'blender-v2.92-release'Philipp Oeser
2021-01-29Fix T85169: UV scale gizmo swaps X/YPhilipp Oeser
Introduced with swapped axis in rB0d67eb277f9b. Similar was fixed for the translate gizmo in rB567212c3434a. Now do the same for scaling as well. Maniphest Tasks: T85169 Differential Revision: https://developer.blender.org/D10245
2021-01-21UI: Transform Arrow Cursor RefactorHarley Acheson
Mouse cursors used during transforms made to work better with changes of user scale and line width. Differential Revision: https://developer.blender.org/D9668 Reviewed by Campbell Barton
2021-01-21Tracking: Cleanup, yet another spelling in the same lineSergey Sharybin
Spotted by Jacques, thanks!
2021-01-21Tracking: Actual spelling cleanup in the commentSergey Sharybin
The previous spelling cleanup did not catch this, so didn't the review of the coming proportional editing code change.
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.
2021-01-20Cleanup: remove extra in trailing asteriskCampbell Barton
Comment blocks not conforming to convention.
2021-01-18Cleanup: Clang tidy else after returnHans Goudey
2021-01-18Fix T84808: Individual projection works even when snap options don't affect ↵Germano Cavalcante
the transform mode Individual projection is a different branch of snap and always projects the transformed elements on the surface of objects. Perhaps this option should be limited to the Move mode due to similarity. But in order not to change the current behavior too much, this commit only disables this option in modes not affected by snap.
2021-01-18Merge branch 'blender-v2.92-release'Philipp Oeser
2021-01-18Fix T84586: missing Outliner redraws for certain NLA operatorsPhilipp Oeser
Outliner display under 'Animation' > 'NLA Tracks' was not updating in the following cases: - adding strips - removing strips - duplicating strips (possibly to different track) - swapping strips - reordering tracks - changing strip order by translating - translating strips between tracks - renaming tracks In the case of deleting strips/tracks, this was also resulting in a use- after-free error in Outliner drawing code (this was reported specifically in T84586). Most of these operators already sent a ND_NLA|NA_EDITED notifier, but the Outliner is not listening to these. Listening to NA_EDITED is also not what we want since this also happens a lot in cases irrelevant to the Outliner. Now be a bit more specific and send ND_NLA|NA_ADDED / ND_NLA| NA_REMOVED or a new ND_NLA_ORDER (to distinguish from NA_EDITED 'only' - where a redraw is not neccessary) and listen to these from the Outliner. (note: places that were listening to ND_NLA|NA_EDITED before are also listening to NA_ADDED or NA_REMOVED, so changing NA_EDITED should not be a problem here) (note 2: for cases like swapping tracks/strips order, NA_ADDED or NA_REMOVED does not make sense, neither can we use NA_EDITED [since we dont want to listen to this], so in this case an additional ND_NLA_ORDER is now sent) (note 3: in nla transform code, this is now always sent on confirm. There are cases were the notifier would not be needed, but checking exactly all cases were it actually would be needed seems overkill [history of D10073 has example code to check if strips moved between tracks]) Maniphest Tasks: T84586 Differential Revision: https://developer.blender.org/D10073
2021-01-16GPencil: Cleanup - Rename ED_gpencil_stroke_color_use to ↵Antonio Vazquez
ED_gpencil_stroke_material_editable
2021-01-16GPencil: Add new parameteres to transform layersAntonio Vazquez
When using grease pencil for drawing Storyboards, it's very common to require a transform of the layers. This transform can be done using the offset modifier, but in some cases, the scene requires a lot of modifiers and makes the file hard to work. This new feature adds a transforms Location, Rotation and Scale at Layer level, and allows to transform the layer without using a modifier, keeping the scene more clean. {F9480695} This feature was suggested by @pepeland after receiving feedback from several artists. Also, done some code cleanup and rename some functions to get a better naming. Maniphest Tasks: T83660 Differential Revision: https://developer.blender.org/D9761
2021-01-16Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-16Add Object Tool: workaround non-orthogonal orientation matricesCampbell Barton
2021-01-15Tracking: Fix transform cancel for plane tracksSergey Sharybin
Use exact marker accessor. Harmless due to the current way the transform system is used by tracking. But for the future development proper accessor needs to be used.
2021-01-15Merge branch 'blender-v2.92-release'Germano Cavalcante
2021-01-15Fix T84673: Skin resize operator always using object origin as pivotGermano Cavalcante
The TransData converted to work in Skin Resize had no defined center. Caused by rB54ee4109143b
2021-01-15Cleanup: spellingCampbell Barton
2021-01-14Tracking: Make transform cancel use explicit frame numberSergey Sharybin
Before transform cancel will request marker at a current frame number and restore transform flags to it. This worked fine if there was only one marker from track in the transform data. This did not work correct when multiple markers from track were added to transform data. This allows to implement proportional editing in the clip editor.
2021-01-14Tracking: Re-duplicate logic used to count and initialize dataSergey Sharybin
Allows to easily implement more comprehensive checks about which markers get added to the transformation context. No user measurable changes are expected, purely house-keeping to ease an upcoming development.
2021-01-14Tracking: Simplify transform codeSergey Sharybin
Reduce amount of duplicated pointer offset logic: advance transform data pointers deep in the loop rather than have offset duplicated in the outer loop. Array size calculation still has duplicated, but that is another story.
2021-01-14Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-14Fix uninitialized stack memory use accessing the snap normalCampbell Barton
Using the add-object tool, snapping to object types such as curve, armature ... etc, copied uninitialized stack memory.
2021-01-13Transform: geodesic distances for proportional edit connected modeBrecht Van Lommel
Use approximate geodesic distance computatiom that crosses through triangles rather than only along edges. Using only edges would give artifacts already on a simple grid. Fixes T78752, T35590, T43393, T53602 Differential Revision: https://developer.blender.org/D10068
2021-01-12Fix NLA liboverride issues re tracks handling.Bastien Montagne
From original rBc0bd240ad0a1 commit, issues reported with suggested fixes by Wayde Moss (@GuiltyGhost), thx.
2021-01-11Transform: In the Header, show translation value in local space only with ↵Germano Cavalcantemano-wii
constraint This partially reverts commit ad15e764dd92. The local value is only useful with constraint.
2021-01-11Transform: In the Header, show the translation value in local spaceGermano Cavalcantemano-wii
Showing value in the global space was an unintentional change.
2021-01-11Fix Increment Snapping Without Constraints in Non-Axis-Aligned ViewsGermano Cavalcantemano-wii
The incremental snap was always operating in the local space, which in most cases is the VIEW type orientation. Use only local space when the operation is affected by constraint. Differential Revision: https://developer.blender.org/D10052
2021-01-08Fix T84453: Crash bezier curves transfromGermano Cavalcante
The pointer allocated to the `TransData` was being incorrectly incremented, causing misalignment and consequently `heap-buffer-overflow`. Because of this, `TD_NOTCONNECTED` was being set in a strange way that did not correspond to other types of `TransData`. The solution is to not increment the `TransData` pointer and set `TD_NOTCONNECTED` only for "unconnected" segments. The code was also a bit deduplicated.