c3e3ccd42c
Cleanup: set expand variable for all enum-flags
...
No functional change, needed for fix in 2.8x
2018-08-15 15:54:27 +10:00
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
18888b7b0c
UI: use text hinting (now user preference)
...
D3201 by @ambient w/ edits not to impact fonts used for rendering
(only change display for UI text).
2018-07-31 16:19:00 +10:00
1195a4a040
UI: add check for any kind of popup
...
Fixes T56155 when merging into 2.8
2018-07-31 10:38:01 +10:00
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
e81dc0b7bc
Fix E key in Python console not working after recent changes.
2018-07-18 22:23:29 +02:00
Stefan Werner
bdda0964e0
Compositor: Cryptomatte compositing node.
...
This patch adds a new matte node that implements the Cryptomatte specification.
It also incluces a custom eye dropper that works outside of a color picker.
Cryptomatte export for the Cycles render engine will be in a separate patch.
Reviewers: brecht
Reviewed By: brecht
Subscribers: brecht
Tags: #compositing
Differential Revision: https://developer.blender.org/D3531
2018-07-18 13:03:34 +02:00
f4213c1408
Cleanup: id-property API use
...
Also clarify comments.
2018-07-13 10:51:49 +02:00
252ebf6bfd
Cleanup: split keymap lookups into own functions
...
More will be added in 2.8, keep this manageable.
2018-07-13 10:30:18 +02:00
d56b90705e
BKE_addons: utility to remove by name
2018-07-06 07:55:29 +02:00
eb7286bfd2
Python: Print file:line when editing UI source
2018-07-03 07:22:26 +02:00
b88e51dd55
Cleanup: use bool for poll functions
2018-07-02 11:51:31 +02:00
26c5a1c301
Cleanup: right shift in interface code
2018-07-01 20:12:07 +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
bdc1108e8c
Cleanup: remove unused context arg to menu
2018-06-30 12:31:53 +02:00
a42fd3de5d
UI: Add 'interface_query.c'
...
Interface files are increasingly mixing up too much functionality,
add a file only to handle queries.
More functions can be moved/added here.
2018-06-30 10:49:04 +02:00
728e92422e
Fix T54524: keyframe and driver colors not showing in shape key list.
...
This reverts commit 357b72e0a7 which caused
the issue, we need a better fix for that cosmetic issue from T50862. For
now displaying keyframes and drivers is the more important one.
2018-06-29 21:23:13 +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
d5a8c0c414
UI: use two dot ellipses
...
Use less space for sign used when we don't have enough.
2018-06-28 10:45:39 +02:00
b09387c388
Add back header needed win32
2018-06-25 09:46:03 +02:00
e61bbc00b7
Cleanup: move UI context menus into own file
2018-06-24 10:43:09 +02:00
f8a3636374
UI: alternate fix for empty context menu
...
block and layout could be NULL and checking this everywhere
wasn't practical.
Instead of lazy initializing, add UI_popup_menu_end_or_cancel
which cancels empty popup menus.
2018-06-23 10:31:10 +02:00
84dbf949d7
UI: don't show empty button context menu
2018-06-21 16:37:19 +02:00
a4f08297ed
UI: preference for developer extras
...
Currently only used for "Edit Source" feature.
2018-06-21 14:54:21 +02:00
f1bc9331b1
Fix T55491: Double click fail in menu popups
2018-06-21 10:07:18 +02:00
d4519f54b3
UI: only show "Edit Translations" when addon used
2018-06-20 10:45:03 +02:00
a0a1fc8938
Cleanup: BLI path extension API
...
Use BLI_path_extension_* prefix.
2018-06-17 16:13:24 +02:00
2f1e34cfcc
Cleanup: use clamp_* from BLI_math (replace macro)
2018-06-17 11:50:56 +02:00
35c71aed25
UI: refactor drag-toggle for other button types
2018-06-16 16:04:26 +02:00
73abca1da0
UI: minor changes from 2.8
...
- Option to skip multi-data edits.
- Open hold buttons on drag.
- Utility function to set default value.
2018-06-16 15:44:13 +02:00
da9b1b14ed
Cleanup: some more G.main removal/validation...
2018-06-15 17:21:07 +02:00
5788f24337
Cleanup: swapped X/Y UI_UNIT
2018-06-13 11:10:55 +02:00
b00d840359
WM: remove sloppy region type access
...
Avoid accidentally operating on the wrong region type.
2018-06-12 17:34:44 +02:00
760e79d809
WM: rename BKE_regiontype_from_id
...
This returns the first as a fallback, causing confusing usage.
Renamed and added a version of the function that doesn't.
2018-06-12 17:26:38 +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
2e14b7fb97
RNA: remove Layout.introspect
...
This was added as an experiment to extract information for docs
but this was never all that useful for its intended purpose.
2018-06-09 18:55:51 +02:00
1857823839
WM: fix panel drag event handling
2018-06-08 18:58:41 +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
009c38df53
Fix recently added drag events closing menus
2018-06-08 08:01:43 +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
e19686a35a
WM: check for release instead of not pressed
...
Makes reasoning about events more predictable.
2018-06-07 16:19:59 +02:00
b3a7a75a26
Cleanup: remove moar G.main usages.
...
Notes:
* Really need to address RNA setters case, end up adding way too much
G.main here these days... :/
* Added Main pointer into bAnimContext, helps a lot in anim code ;)
2018-06-07 12:48:29 +02:00
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +02:00
fd2c48726f
UI: center align number buttons w/o text
...
This makes supporting split properties and text possible, see T54951
2018-05-27 21:08:50 +02:00
56254a42e0
UI: replace BLI_strncpy w/ memcpy
...
Size is already checked.
2018-05-27 12:50:03 +02:00
e31b8303ed
UI: fix assert
...
Replace hard-coded button size check with UI_UNIT_X.
Caused icon-only buttons to have strings assigned based on UI-scale.
2018-05-25 10:45:48 +02:00
1318660b04
Fix T55034: Setting duplication group for multiple selected items only
...
affects one item
UI editing multiple selected items missed the case of PROP_POINTER
properties
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3373
2018-05-24 09:02:17 +02:00
d886e32270
Cleanup: strip trailing space from interface files
2018-05-23 10:48:50 +02:00
f74d85ffc8
Cleanup: rename char/float conversion functions
...
- FTOCHAR -> unit_float_to_uchar_clamp
- F3TOCHAR3 -> unit_float_to_uchar_clamp_v3 (swap args)
- F4TOCHAR4 -> unit_float_to_uchar_clamp_v4 (swap args)
- FTOUSHORT -> unit_float_to_ushort_clamp
- USHORTTOUCHAR -> unit_ushort_to_uchar
2018-05-07 17:51:40 +02:00