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-10-08VSE: Implement the bounding box (xform) tool in the seq preview windowSebastian Parborg
Make the "xform" tool/gizmo available for strip transformations in the sequencer preview window. Because of the amount of hacks needed to make the gizmo work nicely with multiple strips at the same time, it was decided to only show the translate gizmo when multiple strips are selected. This is because the transforms with multiple strips would appear buggy because of our lack of shearing support in the transform system. There is also currently no way to properly sync the gizmo drawing with the transform when using multiple strips. Reviewed By: Richard Antalik, Campbell Barton Differential Revision: http://developer.blender.org/D12729
2021-08-17Cleanup: move 'recalcData' to 'transform_convert.h'Germano Cavalcante
The `recalcData` function is defined in `transform_convert.c`, so the header is most expected to be `transform_convert.h`.
2021-06-30Transform: support multi-threading for most modesCampbell Barton
Multi-threading support for transform modes: bevel-weight, crease, push-pull, rotate, shear, shrink-fatten, skin-resize, to-sphere, trackball & translate. This is done using a parallel loop over transform data. From testing a 1.5million polygon mesh on a 32 core system the overall performance gains were between ~20-28% To ensure the code is thread-safe arguments to shared data are const. Reviewed By: mano-wii
2021-05-27Fix incorrect BLI_snprintf usageCampbell Barton
Event though in practice this wasn't causing problems as the fixed size buffers are generally large enough not to truncate text. Using the result from `snprint` or `BLI_snprintf` to step over a fixed size buffer allows for buffer overruns as the returned value is the size needed to copy the entire string, not the number of bytes copied. Building strings using this convention with multiple calls: ofs += BLI_snprintf(str + ofs, str_len_max - ofs); .. caused the size argument to become negative, wrapping it to a large value when cast to the unsigned argument.
2021-02-10Cleanup: clang-formatCampbell Barton
2021-02-06Merge branch 'blender-v2.92-release'Falk David
2021-02-06Fix T85378: Shrink/Fatten display number unitsFalk David
Currently the displayed distance when using the shrink/fatten transform operator does not respect the scene units (they would always be in blender units). This changes makes sure the number is displayed in the correct unit. Reviewed By: mano-wii Maniphest Tasks: T85378 Differential Revision: https://developer.blender.org/D10325
2021-02-05Cleanup: correct spelling in commentsCampbell Barton
2021-02-04Cleanup: pass keymap items as const where possibleCampbell Barton
2020-12-09Fix T83588: Crash with Shrink/Fatten and Offset EvenGermano Cavalcante
`t->keymap` can be `NULL`. Bug introduced in rBc822f66bb83
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-10-27Cleanup: use over-line for doxy commentsCampbell Barton
Follow our code style for doxygen sections.
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: 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-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-07-21Fix T79112: Redo shrink/fatten uses negative valuesCampbell Barton
The numbers in the redo panel were negated compared to the value entered while transforming.
2020-06-01Cleanup: Remove unused flagGermano Cavalcante
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-02-14Cleanup: Split transform.c in multiple filesmano-wii
Differential Revision: https://developer.blender.org/D5819