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
2020-04-28Fix T76098: Dragging text selection with offset resets select startCampbell Barton
2020-04-24Fix T75749: UI button text selecting is broken by text offsetCampbell Barton
2020-04-20Fix invalid comparison checking button unit typeCampbell Barton
Checking button unit type was length for proportional multi-button adjustment wasn't working.
2020-04-17Fix T75796: Misaligned quit dialog keymapCampbell Barton
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Rename bScreen variables from sc/scr to screenJulian Eisel
Part of T74432. Mostly a careful batch rename but had to do few smaller fixes. Also ran clang-format on affected files.
2020-04-03Cleanup: Continue renaming ARegion variables from ar to regionJulian Eisel
Continuation of b2ee1770d4c3, now non-single word variables are also renamed. Part of T74432. Also ran clang-format on affected files.
2020-03-29Cleanup: remove unicode character printingCampbell Barton
Was added when utf8 was originally introduced - for testing, but is no longer needed.
2020-03-24Fix T74038 : Scrolling doesn't work in menu if there is no active itemValentin
Fix T74038, the logic didn't handle the case where there was not any button with focus. Reviewed By: Julian Eisel Maniphest Tasks: T74038 Differential Revision: https://developer.blender.org/D7208
2020-03-24UI: add menu search functionality to operator search menuCampbell Barton
This has some advantages over operator search: - Some operators need options set to be usefully accessed. - Shows key bindings to access menus (for actions that don't have key bindings themselves). - Non operator actions such as check-boxes are also shown. - Menu items can control execution context, using invoke or execute where appropriate so we can control how the operator runs. Part of the design task T74157. This can be tested using the 'Experimental' preferences section or selected in the key-map editor.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-18Cleanup: Resolve HKEY conflictRay Molenkamp
Both the MS headers and blender headers define the HKEY which gives all kind of inclusion order issues. This diff renames all *KEY constants to EVT_*KEY to resolve this conflict. Reviewed By: brecht , dfelinto Differential Revision: http://developer.blender.org/D7164
2020-03-15Cleanup: use 'const' style argumentCampbell Barton
2020-03-12Fix T73228: UI shows settings of wrong marker when movie clip is offsetJacques Lucke
2020-03-12Fix T73212: Gizmo's are still interactive when behind nodesCampbell Barton
2020-03-10Fix T74585: Crash when scrolling viewport shading pop-upJulian Eisel
Was dereferencing NULL pointer. Mistake from d5572eacc595.
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
2020-03-09Cleanup: Replace ABS/SQUARE/CUBE with function callsSergey Sharybin
While it might be handy to have type-less functionality which is similar to how C++ math is implemented it can not be easily achieved with just preprocessor in a way which does not have side-effects on wrong usage. There macros where often used on a non-trivial expression, and there was at least one usage where it was causing an actual side effect/bug on Windows (see change around square_f(sh[index++]) in studiolight.c). For such cases it is handy to have a function which is guaranteed to have zero side-effects. The motivation behind actually removing the macros is that there is already a way to do similar calculation. Also, not having such macros is a way to guarantee that its usage is not changed in a way which have side-effects and that it's not used as an inspiration for cases where it should not be used. Differential Revision: https://developer.blender.org/D7051
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.
2020-03-06Cleanup: Reduce context usage in UI functionsJulian Eisel
Part of https://developer.blender.org/T74429. There's a chance that this causes some issues becaue in some cases we change from getting the window from context to getting it from somewhere else.
2020-03-04Cleanup: avoid the term old when storing/restoring context variablesCampbell Barton
2020-02-28Fix T65351: visual glitches when scrolling in popoversYevgeny Makarov
2020-02-28File Browser: Add Ctrl+F shortcut to activate filter textboxJacques Lucke
Reviewers: Severin, brecht Differential Revision: https://developer.blender.org/D6941
2020-01-30Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-30Fix T73495: Missing undo switching active shape-key in edit-modeCampbell Barton
2020-01-29Merge branch 'blender-v2.82-release'Philipp Oeser
2020-01-29Fix T67483: Cannot paste on unit-vector uibutJacques Lucke
Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D6701
2020-01-29Fix T72089: Image Editor - Paint mode, Clone Tool - disfunctional clearPhilipp Oeser
button in the Image slot in the Brush panel Caused/exposed by rBaf9ca138ba7b Also relevant was rB828905190e12 Above commits moved the WM_UI_HANDLER_BREAK around so it would not be returned anymore. We need WM_UI_HANDLER_BREAK, otherwise we wont get through to to KM_RELEASE. There are two places that explicitly check for KM_RELEASE (call to `ui_do_but_extra_operator_icon` in both `ui_do_but_SEARCH_UNLINK` / `ui_do_button`), and without the above we only ever get here with KM_PRESS. This patch restores the behavior regarding WM_UI_HANDLER_BREAK to what is was before the two culprit commits. Checked that both this report (T72089) and T69755 are working. Maniphest Tasks: T72089 Differential Revision: https://developer.blender.org/D6363
2020-01-28Fix T63999: Filepath property won't open filebrowser from a popoverJulian Eisel
To issues caused this: * The code to launch the filebrowser from a button didn't respect popup menus stored in context * There was actually no popup menu region stored in context for this case. Doing so *may* introduce other issues, but the way I did things already fixes all issues I've found.
2020-01-28Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-01-28Fix T65350: scrolling popovers with trackpad not working on macOSYevgeny Makarov
Differential Revision: https://developer.blender.org/D6483
2020-01-27Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-27Fix T71719: Unrelated menus open on hoverCampbell Barton
Logic to open menus on hover changed since 2.7x for convenience switching between popovers in the top-bar. This also made hover open menus in situations where it isn't useful. Restrict this to buttons placed side-by-side.
2020-01-16Fix wrong usages of region align enumerationsJulian Eisel
`ARegion.alignment` unfortunately is a mixture of value and bitflag enumerations. When checking for left/right/top/bottom region alignment, the flags have to be masked out usually. Most of the fixed cases here probably didn't cause issues in practice, but could in fact break at any point when surrounding logic changes. In fact the assert in #region_visible_rect_calc() failed in an older file from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949035. This fixes it.
2020-01-02Fix T71303: RMB outside context menu ignoredKevin Havranek
2019-11-29Fix T72000: Key shortcuts unavailable in popoversCampbell Barton
2019-11-24Cleanup: doxygen commentsCampbell Barton
Also correct some outdated symbol references, add missing 'name' commands.
2019-11-21Cleanup: clang-formatCampbell Barton
Also remove unused vars.
2019-11-21Bevel: Custom Profile and CurveProfile WidgetHans Goudey
Custom profiles in bevel allows the profile curve to be controlled by manually placed control points. Orientation is regularized along groups of edges, and the 'pipe case' is updated. This commit includes many updates to comments and changed variable names as well. A 'cutoff' vertex mesh method is added to bevel in addition to the existing grid fill option for replacing vertices. The UI of the bevel modifier and tool are updated and unified. Also, a 'CurveProfile' widget is added to BKE for defining the profile in the interface, which may be useful in other situations. Many thanks to Howard, my mentor for this GSoC project. Reviewers: howardt, campbellbarton Differential Revision: https://developer.blender.org/D5516
2019-11-14Sculpt: disable undo from any UI elements in sculpt modeCampbell Barton
Causes undo push in sculpt mode, see: T71434
2019-11-08Fix T71405: Trying to Ctrl-C on many buttons crashes BlenderPhilipp Oeser
Usually Ctrl+C copies the operator name to the clipboard ["bpy.ops.material.new()", "bpy.ops.object.material_slot_remove()"] Crash happens for all buttons of UI_BTYPE_BUT without associated operator [some are defined with callbacks only, often these are created with e.g uiDefIconBut (instead of e.g. uiDefIconButO)] Other examples that crash with Ctrl+C: - animation decorators next to animatable properties - button to show a modifier texture in the texture tab - ... 2.79 survived here (result in the clipboard was just not changed hitting Ctrl+C on these buttons), this is what happens with this patch as well. Maniphest Tasks: T71405 Differential Revision: https://developer.blender.org/D6208
2019-11-08Fix T55632: USE_DRAG_MULTINUM and USE_ALLSELECT not working well togetherPhilipp Oeser
'is_copy' was not set correctly on all uiButMultiState (it was done once for uiHandleButtonData), resulting in 'delta' being used on some indices of the array and not others in `ui_selectcontext_apply`. Maniphest Tasks: T55632 Differential Revision: https://developer.blender.org/D6201
2019-11-05Fix T68130: Over sensitive number button draggingCampbell Barton
When continuous grab, cursor motion was mapped to the min/max. This caused problems when int/float max values were used. Now the range is clamped by a value derived from the click-step so dragging numbers never increases it to an impractically large value.
2019-10-11Fix T70191: Text button in popup doesn't workCampbell Barton
F2 rename didn't work with mouse input.
2019-10-10Fix T70691: Crash picking object from eyedropperCampbell Barton
Caused by 828905190e124
2019-10-03Cleanup: argument naming, redundant NULL checksCampbell Barton
2019-09-26WM: clean up cursors constants and codeBrecht Van Lommel
There was a mix of old and new constants. Now have one list of WM_CURSOR_* cursor types, using GHOST standard cursors when available and otherwise falling back to our custom cursors. Ref D5197
2019-09-16Fix T69755: 'Enter' over file name not workingJulian Eisel
Was breaking event handling at the wrong place.
2019-09-13UI: use pageup/down and home/end to scroll to start/end of menusJoep Peters
Differential Revision: https://developer.blender.org/D5582
2019-09-09UI: Refactor and improve buttton extra iconsJulian Eisel
Without this patch there could only be one superimposed icon and the operators were hard coded for the button types. This keeps the previous, sort of predefined extra icons working in a rather generic way, but allows adding specific ones for specific case through `UI_but_extra_operator_icon_set()`. Reviewed by: Campbell Barton Differential Revision: https://developer.blender.org/D5730