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-11-09macOS: follow system preference for natural trackpad scroll directionYevgeny Makarov
And remove Blender preference, which was expected to be set to match the system preference for correct behavior. Instead just handle this automatically. Differential Revision: https://developer.blender.org/D9402
2020-11-06Cleanup: Render Module: move header files to main directoryAaron Carlisle
Move headers files from `render/extern/` to `render/` Part of T73586
2020-11-06Fix compilation error when building from scratchSergey Sharybin
Make sure the DNA offset files is ready at a time bf_windowmanager need it.
2020-11-06Refactor: move wmWindowManager .blend I/O to IDTypeInfo callbacksJacques Lucke
2020-11-06Cleanup: use ELEM macroCampbell Barton
2020-11-06Cleanup: follow our code style for float literalsCampbell Barton
2020-11-05Spelling: Predefined, Look Up, No OneHarley Acheson
Fixes 18 misspellings of 'predefined', 'Look Up', 'Lookup', and 'No One'. Differential Revision: https://developer.blender.org/D9466 Reviewed by Hans Goudey
2020-11-04Cleanup: Use LISTBASE_FOREACHHans Goudey
2020-11-03Cleanup: Use recently added helper function to find File Browser UI dataJulian Eisel
`ED_fileselect_handler_area_find()` was added in a750acab78cf and makes this case more readable and avoids code duplication as well.
2020-11-03Add a callback to `IDTypeInfo` to allow preservation of some data accross ↵Bastien Montagne
memfile undos This is essentially adding that new callback, and using it only for already existing Scene's 3DCursor. Note that the place where this is called has been moved again, after all have been lib-linked, such that those callbacks may also work on ID pointers. Maniphest Tasks: T71759 Differential Revision: https://developer.blender.org/D9237
2020-11-03Fix C operators can't set default display or sort type for File BrowserJulian Eisel
`WM_operator_properties_filesel()` allows C operators to set a display or sort type for the File Browser to use. But the File Browser would always override that because of an invalid `_is_set()` check. (The operators don't actually set the value, they only set the property's default value.) The only operator affected by this is "Recover Auto Save". It is supposed to show a vertical list ordered chronologically. It used settings from the previous File Browser usage before this patch. Operators using the File Browser should generally use `FILE_DEFAULTDISPLAY`/`FILE_SORT_DEFAULT` now, except if they have a reason not to. See comments at their definition. ---- This makes it so operators that set a different display or sort type don't change the sort or display type for the next File Browser operation. So using "Recover Auto Save" entirely isolates display and sort type from other operations. Differential Revision: https://developer.blender.org/D8598 Reviewed by: Bastien Montagne
2020-11-03Fix possible use-after-free when closing Blender with File Browser openJulian Eisel
I think there wasn't actually any issue currently, but only by luck. We still passed around and NULL-checked a pointer to freed memory (the file operator, `SpaceFile.op`) which is easy to break and should be avoided. Noticed while testing D8598.
2020-11-01Rename BKE_sequencer.hRichard Antalik
Reviewed By: sergey Differential Revision: https://developer.blender.org/D9349
2020-11-01Cleanup: Fix typo in commentHans Goudey
2020-10-31Cleanup: clang-formatLukas Stockner
2020-10-30Merge branch 'blender-v2.91-release'Campbell Barton
2020-10-30Undo System: support for grouping steps with begin/end callsCampbell Barton
This adds support for treating multiple undo steps as a single step from the user perspective. This is needed for outliner mode switching and `object.switch_object` operator which change active object and mode in a single action.
2020-10-29UI: Improvements to Close File DialogYevgeny Makarov
Improved alignment of items on the File Close Dialog. Differential Revision: https://developer.blender.org/D6938 Reviewed by Hans Goudey
2020-10-28UI: Misc Label and Description ChangesYevgeny Makarov
Various changes to some labels and descriptions to be more accurate, clear, or less confusing. Differential Revision: https://developer.blender.org/D8394 Reviewed by Hans Goudey
2020-10-28GPencil: New support to trace sequence imagesAntonio Vazquez
Now it's possible to trace a sequence of images and not just a single one When the trace is for more than one image, a bacth job is started to process all frames. Note: All trace data is generated by Potrace library. Differential revision: https://developer.blender.org/D9316
2020-10-27Cleanup: use over-line for doxy commentsCampbell Barton
Follow our code style for doxygen sections.
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-22WM: warn when event's have repeat set for non keyboard eventsCampbell Barton
Also add docs to event and keymap item flag.
2020-10-22WM: ensure is_repeat isn't set for mouse-move eventsCampbell Barton
Follow up to d782bad62dc53373bb28811c0672da81924371d6 Also clear this for simulated events.
2020-10-21UI: Allow changing the active side of line gesturesPablo Dobarro
Line gesture use always the right side of the line as active (the area of the mesh that is going to be modified) by default. This adds the ability to change the active side when the line gesture is active by pressing the F key. This allows more freedom to position the line after starting the gestures, as it won't be required to cancel the operation or undo if the line was used in the wrong direction. Reviewed By: Severin Differential Revision: https://developer.blender.org/D9301
2020-10-21WM: ensure is_repeat isn't copied from the last eventCampbell Barton
This means if a keymap item is set to ignore repeat events, it may do so accidentally from this setting being copied.
2020-10-21Cleanup: simplify lasso transform from 17cb2a6da0c88Campbell Barton
Access as 2D array, loop forwards over the pointer since it's more common and simpler to read.
2020-10-21Cleanup: avoid error prone nested switch statements (missing break)Campbell Barton
17cb2a6da0c88 missed a break statement after a nested switch, while it didn't cause a bug nesting switch doesn't read well and is prone to errors like this. Split modal-keymap checks into their own branch to avoid this happening, also use matching event checks for all gesture operators.
2020-10-20UI: Add angle snapping to line gesture toolsPablo Dobarro
This adds support for snapping for line gesture tool. It is implemented in the modal keymap as Snap, which is a toggle (similar to how snapping in the transform operator works). Right now it snaps the angle of the line to 15 degree increments, which is defined in code. This should be easy to expose in the UI in the future if we need to. Reviewed By: Severin Differential Revision: https://developer.blender.org/D9115
2020-10-20Fix error in the last commitPablo Dobarro
I accidentally commited a file without saving it
2020-10-20UI: Move gesture selection with spacebarPablo Dobarro
This patch adds a modal key to move the selection box/lasso/line while drawing it. It also sets "repeat": False on the animation playback key to prevent accidental playback if the spacebar is released after the mouse button. Reviewed By: #user_interface, pablovazquez, Severin Differential Revision: https://developer.blender.org/D9227
2020-10-19Spelling: Loose Versus LoseHarley Acheson
Corrects incorrect usages of the word 'loose' when 'lose' was required. Differential Revision: https://developer.blender.org/D9243 Reviewed by Campbell Barton
2020-10-19Spelling: It's Versus ItsHarley Acheson
Corrects incorrect usage of contraction for 'it is', when possessive 'its' was required. Differential Revision: https://developer.blender.org/D9250 Reviewed by Campbell Barton
2020-10-18Fix for T81400: Block Width CorrectionsHarley Acheson
Scale widths of popovers and dialogs with Text Style font point changes. Differential Revision: https://developer.blender.org/D9132 Reviewed by Hans Goudey
2020-10-18Cleanup: More miscellaneous code quality changes in wm directoryHans Goudey
- Declare variables where initialized. - Use LISTBASE_FOREACH macro. - Reduce variable scope. - Return early or reduce indentation in some cases.
2020-10-17Cleanup: Miscellaneous improvements in wm directoryHans Goudey
- Reduce variable scope. - Use LISTBASE_FOREACH macros. - Return early in some cases to reduce to reduce indentation.
2020-10-16Fix (reported by studio team) crash in relocate lib code.Bastien Montagne
We do not always find a matching ID in new library.
2020-10-16PyAPI: unregister add-ons when exitingCampbell Barton
This lets add-on authors avoid false positive leaks when exiting. In particular GPUShaders's although it applies to any PyObject that stores memory allocated by guarded-alloc. While this does add overhead on exit, on my system it's under 1/100th of a second with all addons enabled. See: T71362
2020-10-15Cleanup: remove duplicate context variable (__py_context)Campbell Barton
The context was stored both in __py_context & bpy_context_module. This avoids duplicate functions to update them too.
2020-10-15Cleanup: use defined sizes when accessing file date/timeCampbell Barton
Also add static assert for struct size assumption.
2020-10-14Cleanup: Comment formatting, grammarHans Goudey
2020-10-14UI: Show more information in open file tooltipJuanfran Matheu
This shows the file's full path, its modification date, and its size in the tooltips for the open recent fiels menu. When no file path is set, the original operator description is used. Differential Revision: https://developer.blender.org/D9028
2020-10-14Cleanup: multi-line comment blocksCampbell Barton
2020-10-13Fix T81656: Crash relocating a linked library into the current .blendPhilipp Oeser
A .blend file cannot use itself as a library. This is prevented when linking manually, but was still possible when relocating, which is now prevented. Maniphest Tasks: T81656 Differential Revision: https://developer.blender.org/D9191
2020-10-13Fix T81589: Correct drag type handling in outlinerRobert Guetzkow
Blender crashed when dragging and dropping color into the outliner. This issue was cause by a missing check for the correct drag type in `datastack_drop_poll`. The check is added in this commit. Additionally, a new drag type is introduced for the "data stack" drag option, that was introduced in commit 1572da858df4, to differentiate it from the existing WM_DRAG_ID type. Reviewed By: Severin Differential Revision: https://developer.blender.org/D9169
2020-10-13UI: Monochrome Alert Icons and use the Question icon in the Quit dialogYevgeny Makarov
Change to monochrome version of the large alert icons and use 'Question' for the the Quit Confirm dialog box. Differential Revision: https://developer.blender.org/D9062 Reviewed by Pablo Vazquez
2020-10-10Cleanup: use C comments for descriptive textCampbell Barton
Follow our code style guide by using C-comments for text descriptions.
2020-10-09GPU: Add more safeguard for BGL callsClément Foucault
This makes sure no BGL call before window drawing locks the GPUState.
2020-10-07UI: Use property split in various pop-up dialogsYevgeny Makarov
The settings in these popups are not animateable, so also turn off property decorate. And also use better widths in order to fit the full text. Differential Revision: https://developer.blender.org/D9060
2020-10-07IDTypeInfo: add flag to indicate that ID has no animation dataJacques Lucke
This is part of T75724. Reviewers: mont29 Differential Revision: https://developer.blender.org/D9134