Campbell Barton
fd235e52a2
Cleanup: use static struct for app-template state
2018-12-19 10:18:15 +11:00
Campbell Barton
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
Campbell Barton
d6d76759f8
Fix error in Main cleanup
...
See 481cdb08ed
2018-12-07 15:42:34 +11:00
Campbell Barton
dd8469608b
Cleanup: unused return arg
2018-11-30 13:21:12 +11:00
Sergey Sharybin
ce927e15e0
Tweaks for threading schedule for Threadripper2 and EPYC
...
The idea is to make main thread and job threads to be scheduled
on CPU dies which has direct access to memory (those are NUMA
nodes 0 and 2).
We also do this for new EPYC CPUs since their NUMA nodes 1 and 3
do have access but only to a higher range DDR slots. By preferring
nodes 0 and 2 on EPYC we make it so users with partially filled
DDR slots has fast memory access.
One thing which is not really solved yet is localization of
memory allocation: we do not guarantee that memory is allocated
on the closest to the NUMA node DDR slot and hope that memory
manager of OS is acting in favor of us.
2018-11-28 14:41:22 +01:00
Campbell Barton
c66570f519
Fix T57989: File loaded as startup
...
The file contents was used to check if the file was a startup file.
Now pass in an argument from startup loading code instead.
2018-11-22 15:06:14 +11:00
Campbell Barton
c1d29ea783
WM: enforce descriptions being NULL or defined
...
Without this bugs slip through that don't null check the descriptions
since many were set to empty strings.
2018-11-14 09:47:23 +11:00
Campbell Barton
7efac2b0b0
PyAPI: add imports arg to BPY_execute_string
...
Allows for avoiding `__import__` in expressions,
was already supported for BPY_execute_string_as_* API calls.
2018-11-10 10:55:04 +11:00
Campbell Barton
2046817c08
WM: minor changes to cursor API
2018-10-25 15:18:24 +11:00
Bastien Montagne
32d66889e9
Tentative fix for T57066: Daily build of Blend 2.79 crashes on OSX Mojave.
...
Looks like we need to explicitly set i18n language to default value on
some OSs... Unless that 'need to create new translated-name IDs in
versionning code for startup file' situation is really seldom.
Anyway, hopefully that will fix the crash.
2018-10-22 10:39:57 +02:00
Campbell Barton
24162c977c
Prevent G.fileflags changes when WM_OT_save_mainfile() is called from script
...
This is to solve an issue where a blend file could be compressed
unbeknownst to the artist. This happened in the following situtation:
- Artist edits an uncompressed blend file.
- Some script saves a compressed blendfile to a separate location.
- When the artist saves the file (s)he is editing (File>Save, or Ctrl+S),
it was silently compressed.
Cherry pick from: cd3b313d5f
2018-10-22 15:08:26 +11:00
Campbell Barton
64a6c78a9a
Fix T57328: 'Save As Copy' prints warning
2018-10-22 14:51:06 +11:00
Sergey Sharybin
81f68bbba1
Fix compilation errors and warnings with Clang-6
2018-09-28 09:46:12 +02:00
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