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
b88e51dd55
Cleanup: use bool for poll functions
2018-07-02 11:51:31 +02:00
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
bea62c5c1a
Cleanup: split out context member query
2018-06-30 18:05:01 +02:00
bdc1108e8c
Cleanup: remove unused context arg to menu
2018-06-30 12:31:53 +02:00
af36dd4664
Cleanup: trailing newlines
2018-06-29 08:02:49 +02:00
46dceefc35
WM: Remove Screen Cast
...
This feature is better handled by specialized tools.
2018-06-28 23:40:51 +02:00
ecb56eac57
UI: Add/Update bad tooltips
...
Part of T51061
2018-06-26 12:29:11 -04:00
8a7f317666
Cleanup: Nuke most of G.main from GPU code.
2018-06-25 12:32:48 +02:00
68f4a4641e
Fix T55568: second click event ignored
2018-06-21 19:26:21 +02:00
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
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
3995b33a42
WM: don't make LMB a special case for double click
2018-06-21 09:49:30 +02:00
a0a1fc8938
Cleanup: BLI path extension API
...
Use BLI_path_extension_* prefix.
2018-06-17 16:13:24 +02:00
2b9edbc98b
WM: suppress drag events if motion is handled
2018-06-15 19:09:43 +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
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
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
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
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
fb1915d870
Prevent wheel causing spurious click/drag events
2018-06-08 14:09:45 +02:00
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
e3fe8ce00b
WM: backport event/keymap type util from 2.8
2018-06-08 08:46:31 +02:00
8f49299134
WM: fix drag events applying after release
2018-06-07 20:39:17 +02:00
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
df4525d1d9
Fix key repeat events resetting the click timer
2018-06-07 16:52:40 +02:00
863e395ad8
Cleanup: trailing space for windowmanager
2018-06-07 16:43:52 +02:00
54f9cd5283
Cleanup: Nuke moar G.main usages...
2018-06-07 11:11:46 +02:00
1628a6858e
Fix crash in owmn previous commit.
2018-06-05 17:54:53 +02:00
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +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
16100f8261
Cleanup: get rid of last G.main usages in BKE library code.
2018-05-31 16:04:04 +02:00
9812943931
WM: check modal handlers for keymap lookups
...
Keep in sync with 2.8x
2018-05-25 10:51:05 +02:00
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
73a7885ab3
WM: initialize last used macro properties
2018-05-11 20:01:51 +02:00
b59b812400
MSVC: resolve near/far issue take2
...
Previous fix failed w/ compositor,
tested on MSVC2015, full build.
2018-05-09 11:23:32 +02:00
598216c36e
MSVC: remove hack for near/far name collision
...
windows headers define these, conflicting w/ View3D.near/far.
2018-05-09 10:00:55 +02:00
433aaa8c2e
Cleanup: remove unused wmReport struct
2018-05-08 07:52:13 +02:00
632f2b5c18
WM: include macros in last-properties
...
Needed for 2.8 tool system storage of macro properties.
2018-05-06 08:57:53 +02:00
f3c5b0394f
IDProp API: expose repr utility function
...
Useful for logging properties passed to operators.
2018-05-04 07:29:05 +02:00
4de70da73a
Cleanup: style, doxy headers
2018-04-06 10:47:39 +02:00
Julian Eisel
72e5082b67
UI: Add accelerator keys to quit confirmation popup
2018-04-05 19:15:37 +02:00
4ffa05c30b
Cleanup: move undo into it's own directory
...
Split out undo API from ED_util.h into ED_undo.h
2018-04-02 15:07:40 +02:00
651b8fb14e
Undo: unified undo system w/ linear history
...
- Use a single undo history for all operations.
- UndoType's are registered and poll the context to check if they
should be used when performing an undo push.
- Mode switching is used to ensure the state is correct before
undo data is restored.
- Some undo types accumulate changes (image & text editing)
others store the state multiple times (with de-duplication).
This is supported by checking UndoStack.mode `ACCUMULATE` / `STORE`.
- Each undo step stores ID datablocks they use with utilities to help
manage restoring correct ID's.
Needed since global undo is now mixed with other modes undo.
- Currently performs each undo step when going up/down history
Previously this wasn't done, making history fail in some cases.
This can be optimized to skip some combinations of undo steps.
grease-pencil is an exception which has not been updated
since it integrates undo into the draw-session.
See D3113
2018-03-31 20:40:37 +02:00
891c1cfc9a
C Logging: use instead of printf for messages
...
- See `--log` help message for usage.
- Supports enabling categories.
- Color severity.
- Optionally logs to a file.
- Currently use to replace printf calls in wm module.
See D3120 for details.
2018-03-30 18:57:41 +02:00
e4d82c0dcf
Fix T54435: Quit prompt fails w/ fractional scale
2018-03-27 16:46:10 +02:00
64e5f83133
BLF: Don't use user preferences
...
BLF is a low level module, which might (and is) used without Blender.
Thanks Campbell for review!
2018-03-26 14:49:23 +02:00
a7e4268bee
UI: restore quit confirmation when dialog disabled
2018-03-23 17:32:13 +01:00
Julian Eisel
529c21acc2
Fix issues with confirmation prompt on Windows
...
* Pressing "OK" wouldn't close Blender anymore
* Using File -> Quit would use popup version, not OS native window
Cleaned up code a bit to avoid duplicated logic.
2018-03-23 02:00:14 +01:00
Julian Eisel
aeec19d2e7
Fix own mistake from 4cb4556fa5
...
Trying to close Blender from a second window wouldn't work, the first window
would have to be hovered first. Ouch!
2018-03-22 23:52:38 +01:00