Aaron Carlisle
128506eeb1
BLI Color: YUV to/from rgb colorspace option
...
This commit does two things:
- Adds an option to do the calculation in different color spaces (BT601
or BT709).
- Changes the default caluclation from legacy BT601 to BT709.
This affects several areas:
- UI areas (mainly scopes)
- ViewLevelsNode
- Several other nodes that use `COM_ConvertOperation.h`
2018-04-29 18:00:45 -04:00
Campbell Barton
f69feb4957
UI: optionally pass icon size to widget_draw_icon
...
No functional changes.
2018-04-25 17:26:45 +02:00
Campbell Barton
b14979f91f
Cleanup: style
2018-04-23 12:53:45 +02:00
Campbell Barton
89ab591345
Cleanup: UI naming
2018-04-22 19:22:10 +02:00
Campbell Barton
da82269c58
Cleanup: rename Icon.type -> id_type
...
Confusing when adding non-id icons.
2018-04-19 12:52:32 +02:00
Campbell Barton
85de548e03
Cleanup: indentation
2018-04-16 17:08:27 +02:00
Julian Eisel
77e9193c23
Fix invalid context when refreshing popups
...
Patch D2759 by @raa, with minor edits by me.
2018-04-09 19:31:39 +02:00
Campbell Barton
ad1ea9a427
Undo: split text undo steps out of the data-block
...
This moves undo storage into a separate struct which is passed
in from the undo system.
2018-04-05 15:22:33 +02:00
Campbell Barton
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
Julian Eisel
357b72e0a7
Theming: Use list-item colors for all un-embossed buttons in list-items
...
E.g. number buttons in the shape key list would use theme colors of text
widgets.
Addresses T50862.
2018-03-23 20:46:51 +01:00
Campbell Barton
7cc2b27099
Cleanup: stray tabs
...
Tabs in middle of code (mostly for no reason / by accident).
2018-03-23 11:51:19 +01:00
Joshua Leung
e0bb5109b3
Use Action datablock's own icon (instead of Animation Data's one) for File Browser's lib icons
2018-03-13 23:05:57 +13:00
Brecht Van Lommel
ec27281812
Fix incorrect text clipping on node link button in material properties.
2018-02-25 19:57:40 +01:00
Campbell Barton
6618852b7f
WM: Add WM_menutype_poll function
...
Wraps menutype poll, no functional changes.
2018-02-23 17:02:03 +11:00
Campbell Barton
657396be08
Error in last commit, disable cycles when not enabled
...
Would only disable when loading old preferences.
2018-02-12 17:56:14 +11:00
Campbell Barton
53431a560e
Disable cycles when WITH_CYCLES=OFF
2018-02-12 17:37:39 +11:00
Campbell Barton
fc97e120f6
BKE_addon: new/free/ensure functions
2018-02-12 17:24:18 +11:00
Campbell Barton
8f9386596f
CMake: include missing headers
2018-02-09 13:50:05 +11:00
Campbell Barton
1e4b612d6a
Cleanup: add _types.h suffix to DNA headers
2018-02-07 11:14:08 +11:00
Sergey Sharybin
7884ae6eb2
Fix T53686: VSE Render crash when zooming timeline
...
This is rather a workaround to avoid main thread freeing all glyph caches
at the same time as sequencer uses fonts to draw text sequences.
Ideally we need to either make cache more local, or user-counted or to make
somewhat more global locks. All this ends up in a bigger refactor which is
better for 2.8. For the meantime let's make Blender more stable with a tiny
workaround.
Downside is that keeping zooming things up and down in interface during render
will increase memory usage by unused glyph caches. It's not too bad though,
all unused caches will be freed first time at area zoom after render.
Thanks Bastien for review!
2018-02-01 16:34:30 +01:00
Campbell Barton
7d66925c73
WM: NULL check for recent tooltip change
...
Caused crash dragging boolean buttons.
2018-01-25 21:52:40 +11:00
Campbell Barton
693b41eb17
UI: change tool-tips to be stored in the screen
...
Move timer and tip out of button code,
now the only requests a tooltip,
passing a creation callback to run.
Needed for manipulators in 2.8,
also helps de-duplicate logic - since we never want
multiple tool-tips showing at once.
2018-01-25 16:22:21 +11:00
Campbell Barton
c723e91ee1
WM: add mouse-move after smooth-view
...
When hot-spots moved under the pointer,
clicking wouldn't activate the correct item.
2018-01-22 14:09:17 +11:00
Campbell Barton
a7dc5e12ac
Cleanup: style
2018-01-21 11:41:52 +11:00
Campbell Barton
e428ea3e00
Cleanup: indentation
2018-01-16 11:40:43 +11:00
Campbell Barton
6f45dea6ee
UI: support canceling color ramp drag
...
D2997 by @oktomus
2018-01-16 11:16:50 +11:00
Campbell Barton
ff4c9d69ee
User Prefs: add new flag for app-template options
...
For experimental options, outside the scope of typical preferences.
While templates are developed we might want to make changes
to behavior which aren't fully compatible with typical work-flows.
Instead of mixing these options in with current preferences
expose separately (we could even force disable them when templates
aren't int use)
2018-01-12 12:45:56 +11:00
Campbell Barton
717090f40e
UI: option not to show screen splitting widgets
...
Request for simplified Blender template,
this may be extended to limit access to other UI changes
that could be pressed by accident.
2018-01-11 16:10:46 +11:00
Campbell Barton
9d62e6e782
UI: don't draw outline when it's not calculated
...
Outline drawing was running even when there were no verts to draw.
Causes an assert in 2.8.
2018-01-11 13:23:55 +11:00
Campbell Barton
2f8c2572ed
Fix T53632: Objects outside scene shown in popup
...
Only show objects in current scene when not pinned.
This commit adds a filter argument to id-template
since we may want to filter by other criteria.
2018-01-03 21:54:02 +11:00
Bastien Montagne
17f1ce4d4f
Fix T53630: Effect strips not displaying Input data.
...
Fix T52977: Parent bone name disappeared in the UI in pose mode.
Regression caused by own rBc57636f060018. So instead of changing widget
type, just flag it as disabled.
Note that core of the issue is elsewhere though - there is absolutely no
reasons to have a search widget for pointers we cannot change nor
search! But fixing this is not really top priority, one of the many
glitches of our UI code, so think we can live with current code.
To be backported to 2.79a.
2017-12-28 17:57:18 +01:00
Campbell Barton
d0ac5d3810
Cleanup: remove unnecessary tooltip line limit
...
Also add TODO for possible future changes.
2017-12-20 17:20:33 +11:00
Campbell Barton
51f0c3fadf
UI: move tooltip API to public header
2017-12-20 14:58:06 +11:00
Campbell Barton
77c62c7793
UI: split out button checks from tooltip creation
...
Allows to make tooltips from other kinds of data.
2017-12-19 19:34:16 +11:00
Ray Molenkamp
a621850224
Fix T53550: E hotkey not working after the color-band picker commit
...
Related to D2886, the color-band picker was lacking a poll function.
2017-12-13 07:00:16 -07:00
Campbell Barton
611752ce33
UI: color-band eyedropper now combines samples
...
Resulting color-band was too noisy (especially with photos),
use gauss filter to take surrounding samples into account.
2017-12-13 15:38:11 +11:00
Campbell Barton
b3c147a04f
Cleanup: split eyedropper into separate files
...
Each handles separate data-types and didn't share much logic,
better put each in it's own file.
2017-12-12 15:44:59 +11:00
Ray Molenkamp
7ae4c3a019
Add eyedropper to color-ramp widget
...
D2886 by @LazyDodo with edit's by @campbellbarton
The line drawn with the eyedropper is used to fill the color-ramp.
2017-12-12 13:11:38 +11:00
Bastien Montagne
f39a97fac5
Cleanup: moar busting of nasty C++ keywords-as-varnames.
2017-12-08 14:50:45 +01:00
Bastien Montagne
c7ee64b2d9
Cleanup: avoid using C++ keywords as variables, even in pure C code.
...
This tends to make some IDE unhappy (like QTCreator)...
2017-12-08 14:36:07 +01:00
Campbell Barton
2e2e6e3bdb
Cleanup: Use BKE_colorband prefix
2017-12-07 15:52:59 +11:00
Campbell Barton
cc811d1fd6
Cleanup: extract BKE_colorband from BKE_texture
2017-12-07 15:40:11 +11:00
Bastien Montagne
66a6d160fe
Rename ID_IS_LINKED_DATABLOCK to ID_IS_LINKED.
...
This makes code closer to id_override/assent-engine ones, which
introduce a new type of linked data, and hence reserve
ID_IS_LINKED_DATABLOCK to real linked datablocks.
2017-11-06 17:17:10 +01:00
Campbell Barton
18d7fbe4f5
Cleanup: order buffer length after the buffer
2017-11-06 00:04:46 +11:00
Campbell Barton
43f3cfd584
Cleanup: spelling
2017-11-05 14:33:18 +11:00
Campbell Barton
01a3c95609
UI: tool-tip refactor, don't hard code field types
...
Allow other kinds of tips be created w/o exceeding hard limits.
2017-11-04 21:15:18 +11:00
Campbell Barton
25f56d7a7b
UI: correct flag re-use
...
Adding ability to show a button as pressed w/o UI_SELECT set caused
other flags to be cleared that shouldn't have been.
2017-11-04 14:13:04 +11:00
Campbell Barton
2a87bd8995
Cleanup: split interface_regions.c
...
Each region type is quite separate and file was getting too big.
2017-11-03 20:57:09 +11:00
Campbell Barton
d19d094ca9
Fix incorrect allocation size
2017-11-03 20:52:04 +11:00
Campbell Barton
25f2abf314
Cleanup: minor comment correction
2017-11-03 01:10:03 +11:00