Brecht Van Lommel
2a63e062b0
Tests: add --no-window-focus to open window without focus.
...
This is useful to run OpenGL tests while continuing to do other tasks
without windows constantly popping up in the foreground.
2018-09-27 12:21:48 +02:00
Brecht Van Lommel
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
Campbell Barton
bb3ec3ebaf
BLI_utildefines: rename pointer conversion macros
...
Terms get/set don't make much sense when casting values.
Name macros so the conversion is obvious,
use common prefix for easier completion.
- GET_INT_FROM_POINTER -> POINTER_AS_INT
- SET_INT_IN_POINTER -> POINTER_FROM_INT
- GET_UINT_FROM_POINTER -> POINTER_AS_UINT
- SET_UINT_IN_POINTER -> POINTER_FROM_UINT
2018-09-19 12:12:21 +10:00
Campbell Barton
5bb11cfde2
UI: split theme draw style into separate field
...
Was using UI_BLOCK_LOOP to control draw style,
this meant we couldn't use popup theme colors for cases
where it the interface has the same purpose as a popup but happens
not to use this flag.
2018-09-11 10:56:08 +10:00
Campbell Barton
4bb8dba340
Cleanup: move keymap helpers into own file
2018-09-02 19:37:09 +10:00
Campbell Barton
0ddf3e110e
Cleanup: comment blocks
2018-09-02 18:51:31 +10:00
Campbell Barton
18d135d05c
Cleanup: rename WM_keymap_find -> WM_keymap_ensure
2018-08-31 13:36:46 +10:00
Campbell Barton
4c22343271
Warn when app-template isn't found
2018-08-18 14:10:07 +10:00
Campbell Barton
506d8448cc
WM: app-template command line override
...
Without this, there was no simple way to have
launchers for different app-templates.
Also allows force-disabling the app-template stored in the preferences.
2018-08-18 14:10:07 +10:00
Campbell Barton
21f61cbe73
BLF: replace global aa pref w/ monochrome flag
...
Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.
2018-07-31 16:57:05 +10:00
Campbell Barton
dbd79c097c
WM: Add operator property poll callback
...
This allows operators to filter out properties from the
auto-generated draw functions.
Some custom draw functions can move to using this.
2018-07-26 11:53:53 +10:00
Campbell Barton
ab9bd557ad
Cleanup: doxy comments
2018-07-15 20:34:24 +02:00
Campbell Barton
f6367ecfb6
Cleanup: operator type API, header
2018-07-13 12:47:04 +02:00
Campbell Barton
8ff3f7f601
Cleanup: move WM type registration into own files
...
Type registration is mostly boiler plate logic,
which can be separated from other API's.
2018-07-13 12:20:42 +02:00
Campbell Barton
e77d2b4e3f
Cleanup: remove legacy mesh save support
...
This was used for saving files for Blender 2.6x.
2018-07-12 21:35:57 +02:00
Sergey Sharybin
22150eb409
Animation player: Ensure new frames are displayed while dragging mouse
...
Thanks Campbell for review!
2018-07-06 17:15:40 +02:00
Philipp Oeser
3cc2a9b934
Fix T55581: kill running (render) jobs when deleting a scene
...
also fixed passing WM_JOB_TYPE_ANY to WM_jobs_kill_type()
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D3498
2018-07-06 11:58:13 +02:00
Campbell Barton
b88e51dd55
Cleanup: use bool for poll functions
2018-07-02 11:51:31 +02:00
Campbell Barton
ddee0931b8
RNA: use bool for boolean RNA types
...
We were using int's for bool arguments in BKE,
just to avoid having wrapper functions.
2018-07-01 15:57:59 +02:00
Campbell Barton
bea62c5c1a
Cleanup: split out context member query
2018-06-30 18:05:01 +02:00
Campbell Barton
bdc1108e8c
Cleanup: remove unused context arg to menu
2018-06-30 12:31:53 +02:00
Campbell Barton
af36dd4664
Cleanup: trailing newlines
2018-06-29 08:02:49 +02:00
Campbell Barton
46dceefc35
WM: Remove Screen Cast
...
This feature is better handled by specialized tools.
2018-06-28 23:40:51 +02:00
Aaron Carlisle
ecb56eac57
UI: Add/Update bad tooltips
...
Part of T51061
2018-06-26 12:29:11 -04:00
Bastien Montagne
8a7f317666
Cleanup: Nuke most of G.main from GPU code.
2018-06-25 12:32:48 +02:00
Campbell Barton
68f4a4641e
Fix T55568: second click event ignored
2018-06-21 19:26:21 +02:00
Campbell Barton
51f6b25afd
Revert "Fix T55568: second click event ignored"
...
This reverts commit 52aa963f0e .
Fixed for keyboards, broke mouse buttons.
2018-06-21 19:24:53 +02:00
Campbell Barton
52aa963f0e
Fix T55568: second click event ignored
...
Double-click handling caused the second click to be ignored
for keymaps that only handle click.
2018-06-21 14:04:43 +02:00
Campbell Barton
3995b33a42
WM: don't make LMB a special case for double click
2018-06-21 09:49:30 +02:00
Campbell Barton
a0a1fc8938
Cleanup: BLI path extension API
...
Use BLI_path_extension_* prefix.
2018-06-17 16:13:24 +02:00
Campbell Barton
2b9edbc98b
WM: suppress drag events if motion is handled
2018-06-15 19:09:43 +02:00
Bastien Montagne
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
Bastien Montagne
ec4ce908db
Fix T55452: Crash on saving with visible particle system.
...
Missing Main pointer in recent refactor/cleanup of G.main usages...
2018-06-12 16:17:05 +02:00
Bastien Montagne
78a8d3685b
Cleanup: remove moar ugly G.main usages...
...
BKE_image was an ugly nest, could fix all but the ones from compositor,
so moved ugly G.main there, at least we know where the Evil is that way ;)
2018-06-11 15:40:37 +02:00
Campbell Barton
d0a16772ad
WM: add macros to check mouse button/gesture/wheel
...
Use to check click/drag,
fixes issue with mouse wheel triggering pie menu.
2018-06-10 12:08:09 +02:00
Campbell Barton
5165d62931
WM: correct recent change to click/drag detection
...
fb1915d870 - caused click/drag events not to be detected.
Now check a key is a mouse or keyboard event.
2018-06-08 22:17:21 +02:00
Campbell Barton
fb1915d870
Prevent wheel causing spurious click/drag events
2018-06-08 14:09:45 +02:00
Bastien Montagne
7b6af843c2
Cleanup: getting rid of G.main.
...
Sometimes one needs a *lot* of changes for a single G.main... :/
2018-06-08 12:17:22 +02:00
Campbell Barton
e3fe8ce00b
WM: backport event/keymap type util from 2.8
2018-06-08 08:46:31 +02:00
Campbell Barton
8f49299134
WM: fix drag events applying after release
2018-06-07 20:39:17 +02:00
Campbell Barton
d274c64d22
WM: add support for drag events
...
This allows for a single key to be mapped to both release and drag,
useful for pie menus to share a key with a different action.
2018-06-07 17:06:01 +02:00
Campbell Barton
df4525d1d9
Fix key repeat events resetting the click timer
2018-06-07 16:52:40 +02:00
Campbell Barton
863e395ad8
Cleanup: trailing space for windowmanager
2018-06-07 16:43:52 +02:00
Bastien Montagne
54f9cd5283
Cleanup: Nuke moar G.main usages...
2018-06-07 11:11:46 +02:00
Bastien Montagne
1628a6858e
Fix crash in owmn previous commit.
2018-06-05 17:54:53 +02:00
Bastien Montagne
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +02:00
Campbell Barton
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
Bastien Montagne
16100f8261
Cleanup: get rid of last G.main usages in BKE library code.
2018-05-31 16:04:04 +02:00
Campbell Barton
9812943931
WM: check modal handlers for keymap lookups
...
Keep in sync with 2.8x
2018-05-25 10:51:05 +02:00
Campbell Barton
4461be1b72
Fix T55032: Redo w/ file saved in edit-mode failed
...
It's important edit-mode has a step stored for redo to work,
file load now ensures this in a generic way.
2018-05-15 19:37:06 +02:00