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-05-13Fix zero tablet pressure for simulated eventsCampbell Barton
Impacted sculpt/paint tests.
2020-03-27Cleanup: rename WM_modalkeymap API names, matching WM_keymapCampbell Barton
Rename: - WM_modalkeymap_add to WM_modalkeymap_ensure - WM_modalkeymap_get to WM_modalkeymap_find
2020-03-26Keymap: disallow modal key-maps in add-ons keyconfigCampbell Barton
Disable functionality reported in T60766 & only partially worked. This could be used if the key-map was added after Blender started as a way to customize modal key-maps, however it didn't work with the add-on enabled on startup. Add-on key-maps are intended to extend existing key-maps so they can call the add-on, not as a way to change modal key-maps for Blender's built-in functionality. Disable this since it's not needed as add-ons can't yet define modal key-maps.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
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-06GHOST/Keymap: support for detecting repeat eventsCampbell Barton
- Keymap items now have 'repeat' boolean which can be set to make keymap items respond to key repeat events or not. - Support for X11 & WIN32 (not macOS currently). This allows for the possibility to perform actions while a key is held and finish the action upon release. Thanks to @Severin for review and WIN32 support.
2020-02-17Cleanup: Remove period from RNA description.OmarSquircleArt
2020-02-17Fix T68749: BPY: Deprecate height of popupJeroen Bakker
`invoke_props_dialog` and `invoke_popup` had a width and a height field. The height field was ignored as the height is determined based on the content. This change removes the field from the BPY + WM_api Reviewed By: Campbell Barton, Jacques Lucke Differential Revision: https://developer.blender.org/D6694
2020-02-17Python: Expose WM is_interface_locked to python.OmarSquircleArt
This patch exposes the Window Manager `is_interface_locked` as a read only property to python. This property is needed to allow script writers to detect if a job is running with locked interface like the Alembic exporter. Reviewed By: Brecht Differential Revision: https://developer.blender.org/D6749
2020-02-17Fix many typos and other issues in UI messages.Bastien Montagne
2019-11-18Python API: assume that a crashed Python operator returned FINISHED.Alexander Gavrilov
The CANCELLED return value from an operator is intended for signaling that the operator aborted execution without changing anything, and an Undo stack entry should not be created. When a Python operator crashes, it is not safe to assume that it did nothing, so it should interpret it as FINISHED instead. Otherwise, the undo system behavior after an operator failure feels broken. Differential Revision: https://developer.blender.org/D6241
2019-10-27WM: add utility to lookup a keymap item from an eventCampbell Barton
Useful for modal operators to be able to match events against regular keymaps.
2019-10-01UI: Changes to Paint CursorsHarley Acheson
Changes to cursors that can be used for painting and sculpting. Differential Revision: https://developer.blender.org/D5951 Reviewed by Brecht Van Lommel
2019-09-30UI: Use paint crosshair cursor in all paint & sculpt modesWilliam Reynish
Currently, we use the crosshair cursor in Sculpt mode, but not in the other paint modes. - Sculpt Mode: This crosshair cursor is too weighty. - Texture, Weight, Vertex Paint: Using the arrow cursor for painting is not right. This commit makes the following changes: - Use the new special paint crosshair instead - Use this cursor in all paint modes, not just Sculpt Reviewed by: Brecht Differential Revision: https://developer.blender.org/D5940
2019-09-26Grease Pencil: use standard eraser and paint brush cursorsHarley Acheson
Ref D5197
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-09Fix T69633: weird behavior of operator_menu_enum tooltips.Alexander Gavrilov
For operators with dynamic tooltips the tooltip calculation is deferred until the moment it is actually shown for performance reasons, with the tooltip field left blank for the time being. Enum menu code shouldn't jump in and assign a tooltip either. The menu button itself can't show a dynamic tooltip because it does not actually call the operator, and has no reference to it. As a side change, allow returning None from the python callback as the most natural way to fall back to the default tooltip.
2019-09-06Python API: implement an Operator callback for dynamic description.Alexander Gavrilov
Blender UI Layout API allows supplying parameters to operators via button definitions. If an operator behavior strongly depends on its parameters, it may be difficult to write a tooltip that covers all of its operation modes. Thus it is useful to provide a way for the operator to produce different descriptions based on the input info. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D5709
2019-07-30UI: add use_button option to popoversCampbell Barton
This is useful when popovers are launched from operators instead of as button popover types. Where the connection between the button and the popover is useful to keep.
2019-06-16Revert new grease pencil cursor for paint modesBrecht Van Lommel
This reverts commit a412f49e7580a and 873c756e5dd73. The change was only supposed to affect grease pencil, but also changed the cursor for sculpt mode, where it's not clearly visible. Since this has not been quickly resolved I'm reverting the commit. Ref D5036.
2019-06-07GPencil: Create new CURSOR for paint modesAntonio Vazquez
This new cursor is used instead of the ARROW because it was too disruptive while you are drawing. The change affects all paint modes that are used Brushes. See D5036 for details. Reviewers: @brecht @billreynish @mendio Cursor designed by: @billreynish
2019-06-03Cleanup: style, use braces in RNACampbell Barton
2019-05-02Cleanup: use WM_keymap_item_* prefixCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-08WM: init simulated event from win->eventstateCampbell Barton
Ghost event handling code works this way.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-04Undo System: add function to print undo stepsCampbell Barton
Useful for debugging.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-02WM: Event simulation support for PythonCampbell Barton
This feature is intended only for testing, to automate simulating user input. - Enabled by '--enable-event-simulate'. - Disables handling all real input events. - Access by calling `Window.event_simulate(..)` - Disabling `bpy.app.use_event_simulate` to allow handling real events (can only disable). Currently only mouse & keyboard events work well, NDOF, IME... etc could be added as needed. See D4286 for example usage.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-09WM: add keymap.find_from_operator(...)Campbell Barton
2018-12-24Fix/cleanup another bunch of UI messages issues.Bastien Montagne
Also (mostly in comments): behaviour -> behavior (we use American English).
2018-12-12Keymap: event type filter w/ finding keymap itemsCampbell Barton
Now its possibly to ask for only keyboard/mouse/ndof events when finding key map items.
2018-12-04Fix T58474: Gizmo Operator template fails on rerunCampbell Barton
2018-12-01Cleanup: duplicate includeCampbell Barton
2018-11-28PyAPI: add KeyMapItem.to_string() methodCampbell Barton
Useful for generating dynamic tooltips that include shortcuts.
2018-11-23Keymap: add Keymap.keymap_items.new_from_itemCampbell Barton
Needed to copy keymap items from other keymaps.
2018-11-13Fix tool keymaps not working properly after recent changes.Brecht Van Lommel
Not sure this is the best fix, but this should be working. Regardless it seems good to tag active tool keymaps as such.
2018-08-31Merge branch 'master' into blender2.8Campbell Barton
2018-08-31Cleanup: rename WM_keymap_find -> WM_keymap_ensureCampbell Barton
2018-08-28RNA: use required args for internal popup end APICampbell Barton
2018-07-15Cleanup: use variable names based on term gizmoCampbell Barton
2018-07-15WM: rename manipulator to gizmo internallyCampbell Barton
2018-07-03UI: optional ui-unit-width for popoversCampbell Barton
Some popovers don't fit well with the default width, allow panels to adjust as needed.
2018-07-01Merge branch 'master' into blender2.8Campbell Barton
2018-07-01RNA: use bool for boolean RNA typesCampbell Barton
We were using int's for bool arguments in BKE, just to avoid having wrapper functions.
2018-06-09Merge branch 'master' into blender2.8Campbell Barton
2018-06-09Cleanup: trailing space in RNACampbell Barton
2018-05-21Revert "Fix/workaround RNA build error in C++ API."Campbell Barton
This reverts commit 9f2ae547c0a4f8a230135423e163b22053251f1d. Args were reordered.