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
2021-05-20Fix petty comment.Ray Molenkamp
I'm embarrassed this was in our codebase for 18 years
2021-05-20Cleanup: spellingCampbell Barton
2021-05-15XR Controller Support Step 1: Internal Abstractions for OpenXR ActionsPeter Kim
Adds internal API for creating and managing OpenXR actions at the GHOST and WM layers. Does not bring about any changes for users since XR action functionality is not yet exposed in the Python API (will be added in a subsequent patch). OpenXR actions are a means to communicate with XR input devices and can be used to retrieve button/pose states or apply haptic feedback. Actions are bound to device inputs via a semantic path binding (https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#semantic-path-interaction-profiles), which serves as an XR version of keymaps. Main features: - Abstraction of OpenXR action management functions to GHOST-XR, WM-XR APIs. - New "xr_session_start_pre" callback for creating actions at appropriate point in the XR session. - Creation of name-identifiable action sets/actions. - Binding of actions to controller inputs. - Acquisition of controller button states. - Acquisition of controller poses. - Application of controller haptic feedback. - Carefully designed error handling and useful error reporting (e.g. action set/action name included in error message). Reviewed By: Julian Eisel Differential Revision: http://developer.blender.org/D10942
2021-05-11Cleanup: unnecessary extra lines for doxy sectionsCampbell Barton
2021-05-06Cleanup: spellingCampbell Barton
2021-05-06Cleanup: link directly to stackexchange URLCampbell Barton
2021-05-03Cleanup: spellingCampbell Barton
2021-05-03Cleanup: use boolean for has_event variable & return valueCampbell Barton
2021-04-12Win32: Fix fullscreen errors using Taskbar system menuHarley Acheson
Changing window state using taskbar system menu could result in a titleless window. Differential Revision: https://developer.blender.org/D10812 Reviewed by Ray Molenkamp
2021-04-11Cleanup: spellingCampbell Barton
2021-04-09Cleanup: use our own code style for doxy-gen comment blocksCampbell Barton
2021-03-27Win32: Allow return from fullscreen to maximizedVincent Blankfield
If window is maximized when toggling fullscreen, go back to maximized when done. Differential Revision: https://developer.blender.org/D10813 Reviewed by Harley Acheson
2021-03-26Fix T86859: Allow covering of Taskbar when Fullscreen from MaximizedVincent Blankfield
When the window is already maximized allow covering Windows Taskbar when toggling fullscreen. Differential Revision: https://developer.blender.org/D10811 Reviewed by Harley Acheson
2021-03-26Cleanup: use code doxy command for Python snippetCampbell Barton
2021-03-22Cleanup: clang-formatCampbell Barton
2021-03-22Revert "Disable clang-format for objective-C bits in GHOST."Campbell Barton
This reverts commit 1cb9612d736f8513d7d4cfc01da6c4e386efcc4f. We can now rely on the clang-format version as it's distributed with pre-compiled binaries.
2021-03-21Cleanup: spelling, doxygen comment formattingCampbell Barton
2021-03-21Fix T86643: Win32 Entering Full Screen While MaximizedHarley Acheson
SetWindowPos must be called after SetWindowLongPtr in order to see changes to window frame style. Differential Revision: https://developer.blender.org/D10756 Reviewed by Ray Molenkamp
2021-03-18Cleanup: spellingCampbell Barton
2021-03-09macOS/Ghost: Simplify pasteboard and screen count codeCorbin Dunn
Reviewed By: #platform_macos, sebbas, ankitm Differential Revision: https://developer.blender.org/D10616
2021-03-09macOS/Ghost: Remove unnecessary nil checks.Corbin Dunn
Reviewed By: #platform_macos, sebbas, ankitm Differential Revision: https://developer.blender.org/D10616
2021-03-09macOS/Ghost: Replace NSAutoreleasePool with @autoreleasepoolCorbin Dunn
- Automatic and guaranteed cleanup. - Improves readability and reduces chances of errors by removing `[pool drain]` statements. Reviewed By: #platform_macos, sebbas, ankitm Differential Revision: https://developer.blender.org/D10616
2021-03-05Cleanup: spellingCampbell Barton
2021-03-05Fix T86185: Win32 Multiple Monitor Window PositionHarley Acheson
Because of D10469 we can now not force child windows onto parent's monitor and allow them to go where they wish. Differential Revision: https://developer.blender.org/D10593 Reviewed by Ray Molenkamp
2021-03-04macOS/Ghost: Opt out of AppKit’s automatic window tabbingCorbin Dunn
Since Blender is single-tabbed, this will prevent extraneous tab-related options from appearing in "Window" menu in case AppKit's internals change. Reviewed By: #platform_macos, sebbas, ankitm Differential Revision: https://developer.blender.org/D10606
2021-03-03macOS/Ghost: Remove redundant nil check after initWithContentRectCorbin Dunn
AppKit’s NSWindow.h has NS_ASSUME_NONNULL_BEGIN, and only methods/ properties explicitly marked nullable will ever return nil. Reviewed By: #platform_macos, sebbas Differential Revision: https://developer.blender.org/D10603
2021-03-03macOS/Ghost: Fix memory leak.Corbin Dunn
`new` allocates a new object that needs to be autoreleased. Reviewed By: #platform_macos, sebbas, ankitm Maniphest Tasks: T86222 Differential Revision: https://developer.blender.org/D10597
2021-03-02Cleanup: spelling, minor correctionsCampbell Barton
Also use doxygen comments for sculpt functions.
2021-03-01Cleanup: spellingCampbell Barton
2021-02-24Revert Automatic Tablet API dynamic fallback.Nicholas Rishel
Removes fallback to Windows Ink when Wintab reports no devices present. Returns to old behavior of using only Wintab if Wintab.dll exists.
2021-02-24Fix T85844: high pressure at start of line.Nicholas Rishel
m_tabletInRange is no longer set for Wintab after 2e81f2c01abd21fdbc reverted Wintab changes. This reverts most button processing to behavior present in 2.91.2. Left in place is a bugfix for Windows Ink: button events while a Windows Ink pen is in range should still be processed. Events processed by Windows Ink and not passed to DefWindowProc do not create WM_*BUTTON events, but button events from e.g. tablet pad express keys do create WM_*BUTTON events and should be handled.
2021-02-24Revert high fequency mouse input for Windows.Nicholas Rishel
Windows mouse history function GetMouesMovePointsEx has well documented bugs where it receives and returns 32 bit screen coordinates, but internally truncates to unsigned 16 bits. For mouse (relative position) input this is not a problem as motion events and the resulting screen coordinates reliably fit within 16 bit precision. For tablets (absolute position) the 16 bit truncation results in corrupt history when tablet drivers use mouse_event or SendInput from the Windows API to move the mouse cursor. Both of these functions take absolute mouse position as singed 32 bit value on the range of 0-65535 (or 0x0-0xFFFF) inclusive. Values larger than 0x7FFF (the largest signed 16 bit value) are reliably corrupt when retrieved from GetMouesMovePointsEx history. This is true regardless of whether mouse history is retrieved using display resolution (GMMP_USE_DISPLAY_POINTS) or high resolution points (GMMP_USE_HIGH_RESOLUTION_POINTS), the latter of which should return points in range 0-65535. Reviewed By: brecht Maniphest Tasks: T85874 Differential Revision: https://developer.blender.org/D10507
2021-02-23WM_MOUSEMOVE cleanup.Nicholas Rishel
2021-02-22Win32: Do not (yet) set window styles for DialogHarley Acheson
Remove the setting of Dialog window styles until we confirm expected behavior between platforms. Differential Revision: https://developer.blender.org/D10470 Own Code
2021-02-22Fix T85768: Win32 Full-Screen Owned WindowsHarley Acheson
Improvements to how window states are determined and changed. Differential Revision: https://developer.blender.org/D10470 Reviewed by Brecht Van Lommel
2021-02-20Cleanup: doxygen sectionsCampbell Barton
2021-02-17Cleanup: spellingCampbell Barton
2021-02-17Merge branch 'blender-v2.92-release'Nicholas Rishel
2021-02-17Fix T84701: Popup closes on release while dragging parameter.Nicholas Rishel
Windows Ghost cursor movement was previously changed to use SendInput because SetCursorPos sporadically allows the cursor to escape the window. This is now reverted because SendInput causes mouse history via GetMouseMovePointsEx to contain invalid movement history, likely due to interaction with mouse acceleration. This resulted in popups closing when the cursor appeared to leave their range.
2021-02-16Cleanup: spellingCampbell Barton
2021-02-16Merge branch 'blender-v2.92-release'Nicholas Rishel
# Conflicts: # intern/ghost/intern/GHOST_SystemWin32.cpp # intern/ghost/intern/GHOST_WindowWin32.cpp # intern/ghost/intern/GHOST_WindowWin32.h
2021-02-16Revert Wintab High Frequency Input.Nicholas Rishel
This revert removes handling of cursor move and button press events during Wintab's WT_PACKET event, instead storing pressure and tilt information to be combined with Window's WM_MOUSEMOVE events. This also reverts dynamic enabling and disabling of Wintab, dependent on the chosen Tablet API. If the Tablet API is not explictly Windows Ink during startup, Wintab is loaded and enabled. Left in place is a fallback to Windows Ink when the Tablet API is set to Automatic and no Wintab devices are present. This allows devices with Wintab installed but not active to fallback to Windows Ink. Using position provided by Wintab was found to have too many regressions to include in Blender 2.93. The primary source of regressions was tablets which mapped coordinates incorrectly on multi- monitor and scaled displays. This resulted in an offset between what the driver controlled Win32 cursor position and the Wintab reported position. A special case of this included tablets set to mouse mode, where Wintab reported absolute position while the system cursor moved as a relative mouse with mouse acceleration.
2021-02-16Calm Win32 Window Creation WarningHarley Acheson
Removing warning that 'GHOST_TUns32' to 'LONG' requires a narrowing conversion. Differential Revision: https://developer.blender.org/D9971 Own Code
2021-02-14Cleanup: spellingCampbell Barton
2021-02-12Fix T85562: Remove Win32 RIM_INPUTSINKHarley Acheson
Removal of Win32 code that allows background windows to receive raw input. Differential Revision: https://developer.blender.org/D10408 Reviewed by Brecht Van Lommel
2021-02-11Cleanup: clang-format, spellingCampbell Barton
2021-02-10UI: Removal of GHOST_CreateDialogWindowHarley Acheson
Simplification of window creation code to allow greater flexibility. Differential Revision: https://developer.blender.org/D10311 Reviewed by Brecht Van Lommel
2021-02-05Cleanup: correct spelling in commentsCampbell Barton
2021-02-05Cleanup: cmake indentation, white-spaceCampbell Barton
2021-02-04UI: Win32 Window Creation RefactorHarley Acheson
Simplification of Win32 GHOST_WindowWin32 with improved support for owned windows. Differential Revision: https://developer.blender.org/D9971 Reviewed by Brecht Van Lommel