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-10Cleanup: inconsistent naming with recent locking checks in WaylandCampbell Barton
2022-06-10Fix T98758: Crash setting the clipboard in WaylandCampbell Barton
Accessing the clipboard in wayland wasn't thread safe, use locks for the clipboard, drag & drop data access and when setting the systems clipboard.
2022-06-10Fix dropping files in WaylandCampbell Barton
There were two problems dropping files into blender: - The inputs `focus_pointer` was NULL, causing a crash. - The wl_data_device_manager version was set to 1, causing the Blender window to close (when dropping files in gnome-shell 42). Resolve by storing the drop surface separately from the pointer surface and bump the device manager version to 3.
2022-06-10GHOST/Wayland: define a log handler to help tracking down errorsCampbell Barton
Many errors involving mis-use or unexpected situations report an error and close Blender's window buy don't crash, making it difficult to track down when the error occurs. Define an error handler prints the error and a back-trace, it can also be useful for setting a break-point
2022-06-10GHOST: add back-trace handler to the APICampbell Barton
Add a back-trace handler to GHOST, so error handlers can include a back-trace (when supported). No functional changes.
2022-06-10Clenaup: use early returns in GHOST/WaylandCampbell Barton
2022-06-09Fix GHOST/Wayland memory leak when copying textCampbell Barton
2022-06-09Cleanup: use C-style comments, add missing doxy sectionCampbell Barton
2022-06-09Cleanup: spelling in comments & variablesCampbell Barton
2022-06-09Fix software cursor being used with absolute events in WaylandCampbell Barton
The software cursor was being enabled with absolute events, causing a problem with absolute tablet events. This caused both cursors to be visible at once when using a tablet (with D15152 applied).
2022-06-08Correct missing doxy-sections in 1269bcce810d064612f7f38642440ee22d0fb007Campbell Barton
2022-06-08Cleanup: use doxy sections for wayland listenersCampbell Barton
2022-06-08GHOST/Wayland: draw a software-cursor when wrapping cursor motionCampbell Barton
As Wayland doesn't support moving the cursor, draw a cross-hair cursor at the location used by Blender. Without this, the cursor was locked at the location where grab started, making some actions unusable since the cursor location was invisible. Resolves T77311.
2022-06-08GHOST/Wayland: non-wrapping grab no longer locks the cursorCampbell Barton
Grab which didn't wrap would lock the cursor, making actions such as resizing areas lock the cursor in-place. Confine the cursor to the window instead. This behavior was also used for X11 when grabbing the cursor was first supported but could lock the system if Blender froze while grabbing so it was disabled [0]. For Wayland this shouldn't be a problem as compositors implement grab in a way that prevents the client from locking the system. [0]: 3e3d2b7a4cfc38f673bdeb48707b95c7bd50049a
2022-06-04Fix Wintab button tracking logic.Nicholas Rishel
Shifted flag for buttons changed was incorrectly compared with unshifted packet flag to determine button press state. Also fix button tracking storage; button flags are 32 bits whereas the member variable was 8. Differential Revision: https://developer.blender.org/D14915
2022-06-03Cleanup: spelling in commentsCampbell Barton
2022-05-29Cleanup: Fix warning from typo in include directiveHans Goudey
2022-05-29Cleanup: clang-tidy for GHOST X11/SDL/Wayland/NULL backendsCampbell Barton
Also early exit in some functions.
2022-05-28Fix pasting text from Blender in GHOST/WaylandCampbell Barton
The nil terminator character shouldn't be included, causing an extra character to be added in some cases.
2022-05-28Fix switching between different grab types with GHOST/WaylandCampbell Barton
Since [0], using the view navigation gizmo crashed with Wayland. This only worked previously because GHOST_kGrabWrap was ignored. Now the previous grab state is disabled before switching to a new grab state. [0]: da9e14b0b91c81d29c4e44f40ac299ae847367de
2022-05-28Fix unreported misuse of Win32 clipboard APIJesse Yurkovich
An ASAN build highlighted a longstanding bug during ctrl+c operations inside various text widgets. The existing code had mismatched memory lock/unlock calls and was using the wrong allocator. Fix the code surrounding `SetClipboardData` to be correct per MSDN: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setclipboarddata Differential Revision: https://developer.blender.org/D15039
2022-05-27Fix GHOST_kGrabHide in WaylandCampbell Barton
Dragging number buttons wasn't grabbing the cursor and would stop when the pointer reached the screen edge & wasn't setting the cursor visible on completion.
2022-05-27GHOST/Wayland: support mouse buttons 4-7Campbell Barton
2022-05-27Cleanup: unused argument warningsCampbell Barton
2022-05-27Fix non-square cursor creation in GHOST/SDLCampbell Barton
Currently all cursors are square, so this didn't show up as a bug.
2022-05-25Cleanup: spelling, unbalanced doxy sectionsCampbell Barton
2022-05-17Cleanup: spelling in commentsCampbell Barton
2022-05-13Cleanup: spelling in comments, capitalize tagsCampbell Barton
Also add missing task-ID reference & remove colon after \note as it doesn't render properly in doxygen.
2022-05-12Cleanup: Fix range loop construct warningHans Goudey
2022-05-06Cleanup: spelling in comments, use doxygen commentsCampbell Barton
2022-05-06GHOST: Add support for precision touchpad gestures on WindowsAndrii Symkin
This patch adds support for precision touchpad gestures on Windows 8.1 and newer using Direct Manipulation API. Gestures work exactly like on macOS, with full support for pan/pinch and inertia. This works by creating a viewport with a fake scrollable which is reset after every gesture and converts any changes to the content's transform into GHOST trackpad events (as explained [here](https://bugzilla.mozilla.org/show_bug.cgi?id=890878)). The code is based on the implementation from the [Chromium project](https://chromium.googlesource.com/chromium/src/+/refs/heads/master/content/browser/renderer_host/direct_manipulation_helper_win.cc). Tested on Windows 10. Fixes {T70754}, {T69264}. Demo:{F8520272} Reviewed By: nicholas_rishel Differential Revision: https://developer.blender.org/D7660
2022-05-06Win32: WM_SETTINGCHANGE lParam Check for NULLHarley Acheson
Check that lParam is non-NULL in WM_SETTINGCHANGE message handler. See D14867 for details. Differential Revision: https://developer.blender.org/D14867 Reviewed by Jesse Yurkovich
2022-05-05Win32: Dark Mode Title Bar ColorHarley Acheson
Blender will respect Windows "Dark Mode" setting for title bar color. See D14847 for details. Differential Revision: https://developer.blender.org/D14847 Reviewed by Ray Molenkamp
2022-04-20Cleanup: spelling in commentsCampbell Barton
2022-04-20Cleanup: clang-formatCampbell Barton
2022-04-18Add debugging info for Wintab activated by argument `--debug-wintab`.Nicholas Rishel
Bonus: Added docs for `--debug-ghost`. Differential Revision: https://developer.blender.org/D14610
2022-03-31Cleanup: spelling, trailing space for comment-blocksCampbell Barton
2022-03-25Cleanup: use array syntax for sizeof, zero before float suffixCampbell Barton
2022-03-24Fix T90110: Dupli Window Not Immediately ActiveLictex Steaven
When creating a new window from a duplicated area - by shift-dragging on corner action zones - on the Windows platform the resulting window is initially unresponsive. This patch fixes this by releasing the parent window's mouse capture. See D14085 for more details. Differential Revision: https://developer.blender.org/D14085 Reviewed by Ray Molenkamp
2022-03-23Cleanup: move documentation to headers, other minor correctionsCampbell Barton
2022-03-19Fix D14173: Chinese IME Full Width NumbersHarley Acheson
Windows IME: Fix duplicated initial character when entering numbers while in Chinese full width character mode. See D14354 for more details. Differential Revision: https://developer.blender.org/D14354 Reviewed by Brecht Van Lommel
2022-03-18Cleanup: Compilation warningsSergey Sharybin
Mainly -Wset-but-unused-variable. Makes default compilation on macOS way less noisy. Differential Revision: https://developer.blender.org/D14357
2022-03-11Cleanup: use M_PI_2 and M_PI_4 where possibleHallam Roberts
The constant M_PI_4 is added to GLSL to ensure it works there too. Differential Revision: https://developer.blender.org/D14288
2022-03-02Cleanup: use back-slash for doxygen commands, color after parametersCampbell Barton
2022-03-02Merge branch 'blender-v3.1-release'Germano Cavalcante
2022-03-02Fix T95608: Mac issues with drag drop on multi-monitorGermano Cavalcante
Mousemove events are sent to windows. In Windows OS, almost all mousemove events are sent to the window whose mouse cursor is over. On MacOS, the window with mousemove events is always the active window. It doesn't matter if the mouse cursor is inside or outside the window. So, in order for non-active windows to also have events, `WM_window_find_under_cursor` is called to find those windows and send the same events. The problem is that to find the window, `WM_window_find_under_cursor` only has the mouse coordinates available, it doesn't differentiate which monitor these coordinates came from. So the mouse on one monitor may incorrectly send events to a window on another monitor. The solution used is to use a native API on Mac to detect the window under the cursor. For Windows and Linux nothing has changed. Reviewed By: brecht Differential Revision: https://developer.blender.org/D14197
2022-03-01Cleanup: use doxygen comments, correct spellingCampbell Barton
Also move eDupli_ID_Flags doc-string to it's declaration.
2022-02-26Merge branch 'blender-v3.1-release'Germano Cavalcante
2022-02-26Ghost/Event System: Support mapping more keysGermano Cavalcante
This fixes T93051, T76405 and maybe others. Characters like '²', '<' are not recognized in Blender's shortcut keys. And sometimes simple buttons like {key .} and {key /} on the Windows keyboard, although the symbol is "known", Blender also doesn't detect for shortcuts. For Windows, some of the symbols represented by `VK_OEM_[1-8]` values, depending on the language, are not mapped by Blender. On Mac there is a fallback reading the "actual character value of the 'remappable' keys". But sometimes the character is not mapped either. On Windows, the solution now mimics the Mac and tries to read the button's character as a fallback. For unmapped characters ('²', '<', '\''), now another value is chosen as a substitute. More "substitutes" may be added over time. Differential Revision: https://developer.blender.org/D14149
2022-02-23XR: Use #ifdef for Vive Focus 3 extensionPeter Kim
Helps with building against different OpenXR SDK versions (i.e. for downstream builds that require specific versions), as the extension was only defined since OpenXR 1.0.22.