Campbell Barton
9c91c75ea6
Merge branch 'master' into blender2.8
2018-01-11 13:24:41 +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
f20bb6c63f
Merge branch 'master' into blender2.8
2018-01-04 00:09:10 +11:00
Campbell Barton
be40389165
Merge branch 'master' into blender2.8
2018-01-03 23:44:47 +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
Sergey Sharybin
9eb46fc22b
Fix compilaiton error in debug mode
...
The structure was just calloc-ed, no need to check for anything. It's all zeroes!
2017-12-20 16:41:51 +01:00
Sergey Sharybin
a52452c043
Merge branch 'master' into blender2.8
2017-12-20 16:40:49 +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
5b364dd780
Manipulator: tooltip support
...
Currently operators and properties are used.
2017-12-20 16:40:53 +11:00
Campbell Barton
3143b2f942
Merge branch 'master' into blender2.8
2017-12-20 15:06:22 +11:00
Campbell Barton
51f0c3fadf
UI: move tooltip API to public header
2017-12-20 14:58:06 +11:00
Campbell Barton
9d69b3d48b
Merge branch 'master' into blender2.8
2017-12-19 19:42:11 +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
Bastien Montagne
5566a88873
Static Override: better handling in ID template.
...
Now we stick to a single button, when data is directly linked, clicking
on it will make a local copy, while shift-clicking on it will make a
static override.
When data is a static override, icon is the DATA_OVERRIDE one, and clicking
on the button will make it a fully borring local data-block.
2017-12-18 12:29:08 +01:00
Campbell Barton
b83b6afe55
Merge branch 'master' into blender2.8
2017-12-14 12:51:26 +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
Sergey Sharybin
3d6cc77cbd
Merge branch 'master' into blender2.8
2017-12-13 14:24:44 +01: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
56f00db6c9
Correct error in recent merge
2017-12-12 23:19:41 +11:00
Campbell Barton
edd39f6da7
Merge branch 'master' into blender2.8
2017-12-12 16:13:06 +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
Campbell Barton
41fc0a0624
Merge branch 'master' into blender2.8
2017-12-12 13:55:09 +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
48fe46943e
Add a new button in ID template to generate an override, and new icon placeholder.
...
Note that due to mess with inkscape (see T53516), I cannot generate a new icon
currently. :(
Commit related to T53501.
2017-12-11 12:07:13 +01:00
Bastien Montagne
6e85c59250
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/interface/interface_templates.c
2017-12-08 14:54:59 +01:00
Bastien Montagne
f39a97fac5
Cleanup: moar busting of nasty C++ keywords-as-varnames.
2017-12-08 14:50:45 +01:00
Bastien Montagne
087997f9eb
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/interface/interface_templates.c
2017-12-08 14:39:17 +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
1c7cfa025c
Merge branch 'master' into blender2.8
2017-12-07 23:53:03 +11: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
Campbell Barton
7a8ac1b09b
WM: message bus replacement for property notifiers
...
Use dynamically generated message publish/subscribe
so buttons and manipulators update properly.
This resolves common glitches where manipulators weren't updating
as well as the UI when add-ons exposed properties which
hard coded listeners weren't checking for.
Python can also publish/scribe changes via `bpy.msgbus`.
See D2917
2017-12-04 20:42:34 +11:00
Campbell Barton
9dfbd98339
Cleanup: whitespace
2017-12-04 17:20:26 +11:00
Campbell Barton
705d214349
Fix crash w/ template search & invalid property
2017-12-04 16:19:01 +11:00
Bastien Montagne
0007873645
ID Static Override: add basic generic UI tools to control override of properties.
2017-11-29 17:23:25 +01:00
Bastien Montagne
e36b5f004d
ID Static Override: add basic UI feedback.
...
For now, using a new color for overridden properties (similar to
animated/driven status), UI team will need to work on a better solution
maybe...
2017-11-29 17:23:25 +01:00
Dalai Felinto
b79b8478ee
Cleanup: Rename ViewLayer *sl > ViewLayer *view_layer
2017-11-23 14:58:01 -02:00
Dalai Felinto
3abe8b3292
Rename any instance of scene layer or render layer in code with view layer
...
The RenderResult struct still has a listbase of RenderLayer, but that's ok
since this is strictly for rendering.
* Subversion bump (to 2.80.2)
* DNA low level doversion (renames) - only for .blend created since 2.80 started
Note: We can't use DNA_struct_elem_find or get file version in init_structDNA,
so we are manually iterating over the array of the SDNA elements instead.
Note 2: This doversion change with renames can be reverted in a few months. But
so far it's required for 2.8 files created between October 2016 and now.
Reviewers: campbellbarton, sergey
Differential Revision: https://developer.blender.org/D2927
2017-11-23 07:48:23 -02:00
Dalai Felinto
7defb27f08
Farewell BaseLegacy
...
Finally, bases are all using the latest, newest SceneLayer bases.
2017-11-09 15:45:19 -02:00
Bastien Montagne
91af8f2ae2
Merge branch 'master' into blender2.8
...
Conflicts:
intern/cycles/device/device.cpp
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/material.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_relations.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/editors/space_outliner/outliner_edit.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/util/ed_util.c
source/blender/windowmanager/intern/wm_files_link.c
2017-11-06 18:02:46 +01: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
58dc114615
Merge branch 'master' into blender2.8
2017-11-06 00:12:28 +11: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
fbfda21fe4
UI: show tool-tips for each tools shortcuts
2017-11-05 01:29:52 +11:00
Campbell Barton
d4fe083b35
Merge branch 'master' into blender2.8
2017-11-04 21:45:52 +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
3a7a7ed03b
Merge branch 'master' into blender2.8
2017-11-03 21:22:27 +11:00