ec27281812
Fix incorrect text clipping on node link button in material properties.
2018-02-25 19:57:40 +01:00
6618852b7f
WM: Add WM_menutype_poll function
...
Wraps menutype poll, no functional changes.
2018-02-23 17:02:03 +11:00
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
53431a560e
Disable cycles when WITH_CYCLES=OFF
2018-02-12 17:37:39 +11:00
fc97e120f6
BKE_addon: new/free/ensure functions
2018-02-12 17:24:18 +11:00
8f9386596f
CMake: include missing headers
2018-02-09 13:50:05 +11:00
1e4b612d6a
Cleanup: add _types.h suffix to DNA headers
2018-02-07 11:14:08 +11:00
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
7d66925c73
WM: NULL check for recent tooltip change
...
Caused crash dragging boolean buttons.
2018-01-25 21:52:40 +11:00
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
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
a7dc5e12ac
Cleanup: style
2018-01-21 11:41:52 +11:00
e428ea3e00
Cleanup: indentation
2018-01-16 11:40:43 +11:00
6f45dea6ee
UI: support canceling color ramp drag
...
D2997 by @oktomus
2018-01-16 11:16:50 +11:00
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
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
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
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
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
d0ac5d3810
Cleanup: remove unnecessary tooltip line limit
...
Also add TODO for possible future changes.
2017-12-20 17:20:33 +11:00
51f0c3fadf
UI: move tooltip API to public header
2017-12-20 14:58:06 +11:00
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
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
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
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
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
f39a97fac5
Cleanup: moar busting of nasty C++ keywords-as-varnames.
2017-12-08 14:50:45 +01:00
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
2e2e6e3bdb
Cleanup: Use BKE_colorband prefix
2017-12-07 15:52:59 +11:00
cc811d1fd6
Cleanup: extract BKE_colorband from BKE_texture
2017-12-07 15:40:11 +11:00
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
18d7fbe4f5
Cleanup: order buffer length after the buffer
2017-11-06 00:04:46 +11:00
43f3cfd584
Cleanup: spelling
2017-11-05 14:33:18 +11:00
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
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
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
d19d094ca9
Fix incorrect allocation size
2017-11-03 20:52:04 +11:00
25f2abf314
Cleanup: minor comment correction
2017-11-03 01:10:03 +11:00
9ece0ee5fe
UI: add UI_SELECT_DRAW flag
...
Allow to draw as pressed w/o interfering with behavior.
Resolves issue where buttons raised on mouse-over.
2017-11-03 00:47:51 +11:00
6355d98267
UI: free up bit in uiBut.flag
2017-11-03 00:27:29 +11:00
e32c1bd5d0
UI: use button_operator in operator_menu_hold
...
Move draw calls into UI_menutype_draw
2017-11-02 18:21:59 +11:00
88356a2442
Cleanup: use term shape-preset in widget code
2017-11-02 05:48:59 +11:00
a6e1f7560f
UI: Option to draw button pressed
...
Needed to show the active tool
2017-11-02 05:02:56 +11:00
3ec4d0b51b
UI: Add UILayout.operator_menu_hold
...
This is an operator button that opens a menu when the button is held.
2017-11-02 05:01:10 +11:00
2ae6a93f05
Cleanup: style
2017-11-01 11:56:56 +11:00
98052162e1
UI: replace UI_ITEM_O_RETURN_PROPS /w return arg
...
Means we can have a version of this function that returns the button
and avoids returning a struct that often isn't used.
2017-10-31 17:04:55 +11:00
fe3571b362
UI: avoid double operator type lookup
2017-10-31 12:44:41 +11:00
6099b2620d
Alembic: added frame offset property
...
The offset is subtracted, so that it's intuitive (dragging slider pushes
the animation further that way on the timeline).
2017-10-29 17:23:50 +01:00
cc96cdd9d4
VSE: draw grid lines at every second
...
Was hard-coded to 25 frames.
D2893 by @jooert
2017-10-23 22:29:49 +11:00
Julian Eisel
efd70ab78f
Move & rename uiLayoutOperatorButs to interface_templates.c
2017-10-21 16:48:42 +02:00