66c3eb36d2
Cleanup: use typed unsigned ints
2019-01-04 11:09:18 +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
6bb825e083
Fix T54580: Pointer buttons skip undo push
2018-12-03 18:43:33 +11:00
d7f55c4ff5
Cleanup: comment block tabs
2018-11-14 17:10:56 +11:00
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
4205cd269d
UI: add uiItemMenuFN which frees it's argument
2018-10-30 10:53:47 +11:00
a247b53084
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3732
2018-09-27 15:36:35 +02:00
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
a738586810
Fix object selection with eyerdropper not respecting property poll function.
2018-09-17 12:36:31 +02:00
640fcc25a4
Fix T56811: Do not show cancel button for jobs when UI is locked.
...
Since that button is then totally useless and unusable...
2018-09-17 10:22:00 +02:00
a8c924423e
Cleanup: remove alpha_check variable from DNA
...
Just pass as an argument.
2018-09-12 15:48:00 +10:00
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
52f4531eeb
UI: cleanup tooltip bounds clamping
...
Wasn't properly clamping on the window minimum.
2018-09-04 15:26:50 +10:00
7ff1750218
PyAPI: add optional imports to expression eval API
...
Avoids having to use `__import__` to access modules.
2018-09-03 12:43:43 +10:00
0ddf3e110e
Cleanup: comment blocks
2018-09-02 18:51:31 +10:00
18d135d05c
Cleanup: rename WM_keymap_find -> WM_keymap_ensure
2018-08-31 13:36:46 +10:00
b2d32d7fa4
UI: always align item w/ label
2018-08-24 12:16:38 +10:00
7ec1a56a41
RNA: avoid redundant property lookups in UI API
2018-08-24 11:44:28 +10:00
34029fc71a
UI: disable new text hinting from D3201 by default for now.
...
This changes the text hinting setting to be an enum with options
Auto / None / Slight / Full. The default is Auto which currently disables
hinting.
The hinting was tested with a new FreeType version, but this is not what
is used on the buildbots an official release environment, and the fonts
look quite bad because of that. Once FreeType has been upgraded we can
change the default.
Even then the results are not ideal, perhaps due to missing subpixel
positioning and linear color blending support in BLF.
2018-08-21 19:07:04 +02:00
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