Commit Graph

1035 Commits

Author SHA1 Message Date
Campbell Barton
37994e0af2 Merge branch 'master' into blender2.8 2018-07-01 20:15:21 +02:00
Campbell Barton
26c5a1c301 Cleanup: right shift in interface code 2018-07-01 20:12:07 +02:00
Campbell Barton
36a9436d80 Merge branch 'master' into blender2.8 2018-07-01 16:22:06 +02:00
Campbell Barton
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
Campbell Barton
62ff53ff19 UI: move queries into interface_query.c 2018-06-30 10:58:56 +02:00
Campbell Barton
b89307acfd Merge branch 'master' into blender2.8 2018-06-30 10:56:12 +02:00
Campbell Barton
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
Campbell Barton
25b7bdb6a9 Merge branch 'master' into blender2.8 2018-06-30 09:29:38 +02:00
Brecht Van Lommel
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
Campbell Barton
d864332085 Merge branch 'master' into blender2.8 2018-06-25 09:48:10 +02:00
Campbell Barton
b09387c388 Add back header needed win32 2018-06-25 09:46:03 +02:00
Campbell Barton
8f85cf033c Merge branch 'master' into blender2.8 2018-06-24 11:08:14 +02:00
Campbell Barton
e61bbc00b7 Cleanup: move UI context menus into own file 2018-06-24 10:43:09 +02:00
Campbell Barton
acb94b6c78 Typo in last commit 2018-06-23 20:57:09 +02:00
Campbell Barton
85c1e61375 UI: Add user defined context menu
- Add/Remove from RMB context menu.
- Stored in user preferences.
- Access from Q key.

See T55027.
2018-06-23 20:52:47 +02:00
Campbell Barton
43872124f7 Merge branch 'master' into blender2.8 2018-06-23 10:46:09 +02:00
Campbell Barton
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
Campbell Barton
78653cfb8c Merge branch 'master' into blender2.8 2018-06-21 16:43:39 +02:00
Campbell Barton
84dbf949d7 UI: don't show empty button context menu 2018-06-21 16:37:19 +02:00
Campbell Barton
c054a1a848 Merge branch 'master' into blender2.8 2018-06-21 15:02:38 +02:00
Campbell Barton
a4f08297ed UI: preference for developer extras
Currently only used for "Edit Source" feature.
2018-06-21 14:54:21 +02:00
Campbell Barton
66263905ae Merge branch 'master' into blender2.8 2018-06-21 10:32:16 +02:00
Campbell Barton
f1bc9331b1 Fix T55491: Double click fail in menu popups 2018-06-21 10:07:18 +02:00
Brecht Van Lommel
0d0d8935a5 Fix outliner mixed collection/object visibility drag toggle not working. 2018-06-20 18:12:48 +02:00
Campbell Barton
b661a4d663 Merge branch 'master' into blender2.8 2018-06-20 11:09:07 +02:00
Campbell Barton
d4519f54b3 UI: only show "Edit Translations" when addon used 2018-06-20 10:45:03 +02:00
Campbell Barton
29d7358ff6 UI: fix ctrl wheel while over the opposite side 2018-06-19 19:22:23 +02:00
Campbell Barton
44611ab860 UI: fix Ctrl-Wheel to change button values 2018-06-19 18:36:30 +02:00
Campbell Barton
43ce201125 Merge branch 'master' into blender2.8 2018-06-17 11:57:49 +02:00
Campbell Barton
2f1e34cfcc Cleanup: use clamp_* from BLI_math (replace macro) 2018-06-17 11:50:56 +02:00
Campbell Barton
c21499ba4a UI: show decorator icon for static-override 2018-06-16 18:27:04 +02:00
Campbell Barton
3cf239ccfa UI: support dragging to key-frame 2018-06-16 16:29:05 +02:00
Campbell Barton
8f2acda7d7 Merge branch 'master' into blender2.8 2018-06-16 16:16:53 +02:00
Campbell Barton
35c71aed25 UI: refactor drag-toggle for other button types 2018-06-16 16:04:26 +02:00
Campbell Barton
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
Campbell Barton
35da1afa09 Cleanup: remove unused context args 2018-06-12 07:59:27 +02:00
Dalai Felinto
d90fc119c2 UI: Separator spacer
This support layout.separator_spacer() to be used by headers as a way to
dynamically separate the ui buttons.

Right now no UI file is changed, though we can use this right away in the
timeline, and shortly after in the viewport header (moving settings from
the topbar to it).

Original design by William Reynish.

Review: Campbell Barton
D3468
2018-06-11 14:46:35 +02:00
Joshua Leung
4605e57b0f Drivers Workflow (T55145): Improvements to "Add Driver" workflow
This commit implements a new behaviour for the "Add Driver" functionality
(invoked from the RMB menu on a property, or by pressing Ctrl-D).

Instead of spawning a context menu asking you to pick the way
you want to create a driver, it will now just create a driver on the
property under the mouse and then show the "Edit Drivers" popover so
that you can immediately start editing the properties of this driver.
This way, the whole process is more visual and feels less blocking /
constrained, with less upfront decisions needed immediately.

Notes:
* The new behaviour is equivalent to choosing the "Manually Create (Single)"
  and then doing a "Edit Driver" on the property
* Renamed the old "ANIM_OT_driver_button_add" operator to
  "ANIM_OT_driver_button_add_menu". It will probably go away
  in the near future, but it's better to keep it around for a
  while longer still until the new workflow settles down.
2018-06-11 17:35:13 +12:00
Campbell Barton
d352a0adc5 Merge branch 'master' into blender2.8 2018-06-08 08:02:50 +02:00
Campbell Barton
009c38df53 Fix recently added drag events closing menus 2018-06-08 08:01:43 +02:00
Campbell Barton
64e0ab6a00 Merge branch 'master' into blender2.8 2018-06-07 16:32:40 +02:00
Campbell Barton
e19686a35a WM: check for release instead of not pressed
Makes reasoning about events more predictable.
2018-06-07 16:19:59 +02:00
Campbell Barton
6ff89166a8 Cleanup: USE_UI_* prefix for UI defines
Otherwise there is no quick way to see where this comes from.
2018-06-06 09:27:23 +02:00
Ines Almeida
3c1483cf1e COW operators: Fix drag and dropping of color properties 2018-05-28 23:07:23 +02:00
Joshua Leung
7a88a7742b Drivers UI (Part of T55145) - WIP first steps towards getting a floating driver settings panel
This commit adds a new menu entry - "Edit Driver" - the RMB menu that
will show a popover panel displaying the settings for the driver you
activated the menu item on. This shows the popover panel defined in
yesterday's commit (GRAPH_PT_drivers_popover).

It is possible to edit the driver settings from this panel now.
However, do be warned that the functionality presented is highly
WIP still. There are some unresolved issues, such as:
 - The popover disappears too easily on any mouse movements/clicks
   on anything, making the panel less useful right now than it should.

 - The layout still needs refining. Currently the layout that's there
   is a bit of a placeholder until we can play around with it a bit
   more to see/feel what feels good/right or what is too much.

 - The "Open Drivers Editor" on the bottom of the panel doesn't work.
   There are some tricky context tricky things that need to happen here
   to make that case work, since the operator button won't have the necessary
   context info.
2018-05-24 18:10:21 +02:00
Philipp Oeser
d7824de8e4 Merge branch 'master' into blender2.8 2018-05-24 09:03:07 +02:00
Philipp Oeser
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
Joshua Leung
9cb2b9b523 Drivers UI (Part of T55145) - Show datablock that driven property belongs to instead of only the property
Otherwise, it's not clear where things are coming from.

FIXME: The icons for datablocks may not always be correct. It uses the
innermost struct's icon instead of the datablock's icon - e.g. Bone
vs Object/Armature. But, that may make more sense for users?
2018-05-23 16:32:46 +02:00
Campbell Barton
e92baab348 Merge branch 'master' into blender2.8 2018-05-23 10:51:11 +02:00
Campbell Barton
d886e32270 Cleanup: strip trailing space from interface files 2018-05-23 10:48:50 +02:00