40a8c49088
Revert new grease pencil cursor for paint modes
...
This reverts commit a412f49e75 and 873c756e5d . 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-16 20:29:22 +02:00
087a489867
Cleanup: simplify GHOST cursor API, no functional changes
2019-06-16 19:58:26 +02:00
a412f49e75
GPencil: Create new CURSOR for paint modes
...
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-07 12:59:47 +02:00
916c2d0e7f
Cleanup: use WM_ prefix for cursor enum
2019-05-29 01:05:22 +10:00
e4ac8ab212
WM: support X/Y axis cursor wrapping
...
Operator flags to wrap on a single axis.
D4865 by @Gvgeo with updates.
Resolves T64585
2019-05-29 00:52:43 +10:00
4439e5d0ba
Cleanup: add trailing commas to avoid right shift
2019-04-18 17:19:44 +02:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
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-04-17 06:21:24 +02:00
73c7aaba22
Cleanup: style, use braces for the window manager
2019-04-13 09:15:15 +02:00
186bd4d87b
Cleanup: indentation, trailing space
2019-02-26 14:31:48 +11:00
Harley Acheson
86bbadaaee
UI: improve corner splitting feedback by showing custom cursors.
...
* Two cursors for horizontal and vertical split.
* Four cursors for each join direction.
* One cursor to indicate when splitting is not possible.
Differential Revision: https://developer.blender.org/D4264
2019-02-21 18:03:34 +01:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
744f633986
Cleanup: trailing commas
...
Needed for clan-format not to wrap onto one line.
2019-02-03 14:59:11 +11:00
6cbb4c576a
Cleanup: manually remove header text not handled by automation
2019-02-02 01:49:31 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
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-02-02 01:36:28 +11:00
49490e5cfb
Merge branch 'master' into blender2.8
2018-12-12 13:02:09 +11:00
e757c4a3be
Cleanup: use colon separator after parameter
...
Helps separate variable names from descriptive text.
Was already used in some parts of the code,
double space and dashes were used elsewhere.
2018-12-12 12:50:58 +11:00
253dce07d7
Merge branch 'master' into blender2.8
2018-09-24 17:42:52 +02:00
0cff044d84
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3719
2018-09-24 17:28:40 +02:00
4bf751be70
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/modifiers/intern/MOD_normal_edit.c
source/blender/windowmanager/intern/wm_files.c
2018-06-14 12:39:52 +02:00
66407e15cb
Cleanup: Remove last G.main's from WM code.
...
Was mostly validating valid usages of G.main -> G_MAIN actually.
2018-06-14 12:34:13 +02:00
f0815b1322
Merge branch 'master' into blender2.8
2018-06-07 16:45:34 +02:00
863e395ad8
Cleanup: trailing space for windowmanager
2018-06-07 16:43:52 +02:00
bfe1d0e0dc
Merge branch 'master' into blender2.8
2018-06-01 18:26:42 +02:00
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
17852b079c
Tool System: support for tool cursors
2018-05-18 11:44:28 +02:00
fdd3d969a6
Fix T53491: Absolute tablet motion detection fails
...
When using a tablet, detecting absolute motion only worked
when activating a tool with the tablet.
Pressing Enter to run a tool for e.g. would use relative motion.
Now store is_motion_absolute in the event,
set for new events based on the most recent motion events.
2018-01-10 12:41:45 +11:00
74b0591d42
Cleanup: pass event args as const
2016-04-19 12:18:19 +10:00
d9d3a2a500
Fix T44605: OS X continuous grab issues.
2015-10-03 13:08:37 +02:00
565faadd8e
Cleanup: doxygen comments
2015-06-01 14:56:07 +10:00
6c0926e802
Code cleanup: use const for mouse location arg
2014-06-14 00:47:12 +10:00
b6e967be63
Code cleanup: const args and arrays
2014-04-27 08:56:54 +10:00
15d77d201d
Code cleanup: use 'const' for arrays (windowmanager)
2014-04-27 00:25:15 +10:00
621bf47e91
Docs: doxygen file descriptions for BLF, GPU and WM
2014-01-19 23:15:25 +11:00
af93ebcb50
Code Cleanup: style and redundant casts
2014-01-16 19:15:53 +11:00
0775e739b7
Fix T37947: large cursors now also work on linux/mac for the edit mode cross.
2013-12-31 02:00:21 +01:00
35cd649c66
rename cursor setting functions to make modal set/restore more clearly related functions.
2013-09-06 22:34:29 +00:00
abaa4cd490
fix [ #36409 ] Continuous Grab problem with arrow keys.
2013-08-27 01:30:09 +00:00
5d413b523a
fix for crash when setting the cursor in background mode.
2013-06-28 16:37:39 +00:00
225c5fee6b
move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)
...
remove MEM_sys_types.h which was a duplicate.
2013-05-28 19:35:26 +00:00
677172fd65
code cleanup: use bools in interface handlers, dont show translation menu when right clicking on splash, use less confusing args for copy/paste function.
2013-04-04 15:16:29 +00:00
7bbaf4853a
code cleanup: use bools in UI and WM code, quiet some shadow warnings, remove unused function uiEmboss()
2013-04-04 02:05:11 +00:00
e7c15beaf6
code cleanup: use booleans for mesh and selection code.
2013-03-19 23:17:44 +00:00
38cee985bb
code cleanup: style & warnings.
2013-01-21 02:30:40 +00:00
a896366ca9
My bad - commit today for "Continuous Grab" fix ignored the comment that
...
bounds could be NULL :) Crash fixed.
2013-01-17 15:27:58 +00:00
7af0fff9d8
Bug fix #33892
...
HiDPI "retina" mode didn't work for "Continuous Grab" yet.
Note; this mode works by having different coordinate systems
for pixels and window/mouse coords. I really hope future
HiDPI implementations use the same trick.
2013-01-17 10:16:40 +00:00
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
7deb8d8a26
code cleanup: spelling
2012-10-20 20:36:51 +00:00
1541ee20c8
Improvement to own commit r50810.
...
Add an optional ghost argument to set the new mouse location when un-grabbing. - without this the mouse would flicker at the old location before moving to the new location - when using the color picker for eg.
2012-09-22 13:23:12 +00:00
c567cf3fab
code cleanup: WM naming conventions
2012-08-11 21:35:24 +00:00