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
2022-06-30Cleanup: Remove scene frame macros (`CFRA` et al.)Julian Eisel
Removes the following macros for scene/render frame values: - `CFRA` - `SUBFRA` - `SFRA` - `EFRA` These macros don't add much, other than saving a few characters when typing. It's not immediately clear what they refer to, they just hide what they actually access. Just be explicit and clear about that. Plus these macros gave read and write access to the variables, so eyesores like this would be done (eyesore because it looks like assigning to a constant): ``` CFRA = some_frame_nbr; ``` Reviewed By: sergey Differential Revision: https://developer.blender.org/D15311
2022-06-09Cleanup: spelling in comments & variablesCampbell Barton
2022-05-13Fix T89909: Circle Select tool status bar doesn't match the operationsCampbell Barton
Assign get_name functions for select picking and circle select so modifier keys show the result of holding the modifiers.
2022-04-12Fix wrong key type for GSet in Grease Pencil same material selectionLukas Stockner
The type of the key was changed from string to integer in 66da2f537ae8, but the GSet was still being created for string keys. As long as the integers stay small enough, this even kind of works on little-endian systems, but of course it should use an integer hash instead.
2022-03-29Fix T96835: Grease pencil tweak tool selects but doesn't dragCampbell Barton
Use the pass-through matching the view3d.select operator.
2022-02-25Cleanup: use flags for wmEvent modifier keysCampbell Barton
Using flags makes checking multiple modifiers at once more convenient and avoids macros/functions such as IS_EVENT_MOD & WM_event_modifier_flag which have been removed. It also simplifies checking if modifier keys have changed.
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2021-12-14Cleanup: correct unbalanced doxygen groupsCampbell Barton
Also add groups in some files.
2021-09-17UI: enable the depend-on-cursor flag for some operatorsCampbell Barton
- Bend (Transform). - Extrude to Cursor. - Lasso Select (related operators such as node-cut links, mask.. etc). - Rip Mesh / UV's. - Vertex/Edge Slide.
2021-08-08Cleanup: Fix comment typoAntonio Vazquez
2021-08-08GPencil: Fix memory leak in previous commitAntonio Vazquez
2021-08-08GPencil: New Select Random operatorAntonio Vazquez
Select strokes or points randomly (similar to meshes). Reviewed By: pepeland Differential Revision: https://developer.blender.org/D12157
2021-07-15Cleanup: replace BLI_assert(!"text") with BLI_assert_msg(0, "text")Campbell Barton
This shows the text as part of the assertion message.
2021-06-26Cleanup: full sentences in comments, improve comment formattingCampbell Barton
2021-06-21Fix T89306: GPencil selection doesn't work correctly with modifiersAntonio Vazquez
The problem was introduced with Bezier modification because the selection code was using the original stroke and not the evaluated version.
2021-04-13Fix T87400: GPencil change Select Alternate defaultsAntonio Vazquez
Now, the Unselect Ends is disabled by default.
2021-02-27Fix T85987: Selection when GP is parentedFalk David
When a GP object was parented to e.g. a bone, box selection as well as point selection were broken in that the selection from the user would not correlate with what was actually being selected. The issue was that box and point selection did not use the active evaluated stroke data. The fix uses the correct data. Reviewed By: antoniov Maniphest Tasks: T85987 Differential Revision: https://developer.blender.org/D10555
2021-02-20Cleanup: Split grease pencil selection index functionsAntonio Vazquez
This makes the code more readable.
2021-02-19GPencil: Interpolate Tools refactorAntonio Vazquez
Following with the changes included to interpolate strokes of different number of points, a full review has been done in the interpolation tools. * Interpolate now is a tool and not an operator. It was not logic to have this tool as a button. * Interpolate tool parameters have been moved to topbar. * Interpolate popover has been removed from topbar and interpolate `Sequence` operator has been moved to grease pencil menu. * Interpolate Sequence now include a Redo panel. * Interpolate tool now allows to select the strokes by pairs. This allows to interpolate any stroke with any stroke and not as before that it was only possible by drawing order. If no stroke is selected, the interpolation is done as before. * Now is possible interpolate again if a previous keyframe exist. Before, it was impossible to interpolate two times in same frame and this made impossible to do the interpolation by groups of frames. * New automatic option to `Flip strokes` if the stroke and end are not in the right position. Also the flip can be set manually for corner cases. * Cleanup of menus related to interpolate. * Fixed some bugs and removed parameters from scene because now all are tool or operator contained. * Some code cleanup and function renames. This commit also includes the some codebase to future implementation of the concept `Vertex Active` that now does not exist in grease pencil.
2021-02-14Cleanup: spellingCampbell Barton
2021-02-13Cleanup: spellingCampbell Barton
2021-01-16GPencil: Cleanup - Rename ED_gpencil_stroke_color_use to ↵Antonio Vazquez
ED_gpencil_stroke_material_editable
2020-12-15Cleanup: reduce indirect DNA header inclusionCampbell Barton
Remove DNA headers, using forward declarations where possible. Also removed duplicate header, header including it's self and unnecessary inclusion of libc system headers from BKE header.
2020-11-16Cleanup: clang-tidyCampbell Barton
2020-11-13GPencil: Merge GSoC curve edit modeFalk David
Differential Revision: https://developer.blender.org/D8660 This patch is the result of the GSoC 2020 "Editing Grease Pencil Strokes Using Curves" project. It adds a submode to greasepencil edit mode that allows for the transformation of greasepencil strokes using bezier curves. More information about the project can be found here: https://wiki.blender.org/wiki/User:Filedescriptor/GSoC_2020.
2020-09-01Fix (unreported) GPencil cannot deselect points with box/lasso selectPhilipp Oeser
Selecting in empty space wasnt considered as 'changed'. Differential Revision: https://developer.blender.org/D8770
2020-07-03Cleanup: Editors/GPencil, 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/gpencil` module. No functional changes.
2020-06-29GPencil: Cleanup function names replace gp_ by gpencil_ prefix (cont)Antonio Vazquez
2020-06-29GPencil: Cleanup - Rename some functions from gp_ to gpencil_Antonio Vazquez
2020-06-28Fix T78353: GPencil: Make Circle select only select points inside circleAntonio Vazquez
Now, instead of select the section of the stroke that is below circle, only the points inside circle are selected. Also fixed a bug when segment selection mode is enabled. Differential Revision: https://developer.blender.org/D8141
2020-06-27Fix T78336: Gpencil selection unstableAntonio Vazquez
The selection with the tweak tool was inprecise because it was using the bounding box and if the point was in a straight line in the border or in the corners it was very hard to select. For this tool is better don't use the bounding box check.
2020-06-22GPencil: Remove Fill selection with Tweak tool and fix bugAntonio Vazquez
* Fixed selection of point in multiframe mode. The point was not selected. * Removed the fill area selection because makes the tool imprecise, and for this tool need to be precise or the selection is impossible. Now only select if it's over the point, not over the filled area.
2020-06-05GPencil: Improve Vertex Paint in filled areasAntonio Vazquez
When use the Tint tool, it was very difficult to tint the filled areas if the strokes had very few points or the area was big. Differential Revision: https://developer.blender.org/D7936
2020-06-04GPencil: Improve selection in Fill areasAntonio Vazquez
Now when use selection if the selection area is inside a filled area, the stroke is selected. Before it was necessary to select the border of the stroke.
2020-05-04Cleanup: rename mcords to mcoordsCampbell Barton
- 'coords' is an abbreviation for coordinates, not 'cords'. - Rename 'moves' to 'coords_len'.
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-27GPencil: More cleanups missing in previous commitAntonio Vazquez
2020-03-27GPencil: Cleanup of unused code a argumentsAntonio Vazquez
2020-03-27Cleanup: add iterator macros to clang-formatCampbell Barton
Also rename START to BEGIN (matching BEGIN/END for most iterator macros).
2020-03-26Fix T75093: GPencil eraser selection in draw mode erase previous selected pointsAntonio Vazquez
The selection in Draw mode works as a quick eraser and must erase only the points selected in that operation and not any previous selected point. Now, before erase, unselect any previous selected point. Note: It's planned to split select & erase operators for Draw mode.
2020-03-19Fix T74915: Gpencil Tweak tool does not add point to selection holding ShiftAntonio Vazquez
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-15GPencil: Reduce factor to 5 in previous commitAntonio Vazquez
10 decimals is too high
2020-03-15GPencil: Remove Keep parameter from Select Vertex ColorAntonio Vazquez
Also changed range of threshold from 0 to 10
2020-03-15Cleanup: shadow warning, clang-formatCampbell Barton
2020-03-14GPencil: Change Select Vertex Color to similar selectionAntonio Vazquez
Now, instead to use the Brush color as selection patron, now it uses any previous selected color.
2020-03-14GPencil: Add option to keep selected in Select Vertex ColorAntonio Vazquez
2020-03-14GPencil: Use Linear color instead of sRGB for Select Vertex ColorAntonio Vazquez
The brush color is sRGB but the Vertex Color is linear.
2020-03-14GPencil: Rename operator select_color to select_vertex_colorAntonio Vazquez
2020-03-09GPencil: Refactor of Draw Engine, Vertex Paint and all internal functionsAntonio Vazquez
This commit is a full refactor of the grease pencil modules including Draw Engine, Modifiers, VFX, depsgraph update, improvements in operators and conversion of Sculpt and Weight paint tools to real brushes. Also, a huge code cleanup has been done at all levels. Thanks to @fclem for his work and yo @pepeland and @mendio for the testing and help in the development. Differential Revision: https://developer.blender.org/D6293