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
45a5ddb57b
Merge branch 'master' into blender2.8
2018-06-09 18:58:14 +02:00
2e14b7fb97
RNA: remove Layout.introspect
...
This was added as an experiment to extract information for docs
but this was never all that useful for its intended purpose.
2018-06-09 18:55:51 +02:00
726ed7244e
UI: always show popover subpanel header text
2018-06-09 18:15:08 +02:00
2ae404252d
UI: fix popover subpanel header display
2018-06-09 18:03:22 +02:00
7fdde7fd86
UI: use draw_header function for popover buttons
...
Add 'is_popover' for panel draw functions to check if they're in a popup.
This puts dyntopo toggle next to the popover.
2018-06-09 17:38:32 +02:00
ec8a20fec0
Add new GridFlow layout.
...
This mimics the 'spreadsheet' behavior. Columns and/or rows can have
equal sizes, or adapt to their content - but always in a grid way (i.e.
all items in a same column will always have same available width, and
all items in a same row will always have same available height).
Also, you can fill (order) the grid in a row- or column-major way.
Not used anywhere for now.
Differential: https://developer.blender.org/D2395
2018-06-09 16:54:26 +02:00
09ce794dc8
UI: initial support for parent panels in popovers
...
Currently this just includes the panels, no support for collapsing yet.
2018-06-09 14:21:39 +02:00
4f2eac3b39
WM: fix panel drag event handling
2018-06-08 19:03:29 +02:00
1857823839
WM: fix panel drag event handling
2018-06-08 18:58:41 +02:00
94aa4d1657
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_sequencer.h
source/blender/blenkernel/intern/sequencer.c
source/blender/editors/curve/editcurve_paint.c
source/blender/editors/gpencil/gpencil_edit.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/gpencil/gpencil_utils.c
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_view3d.h
source/blender/editors/interface/interface_eyedropper_depth.c
source/blender/editors/render/render_opengl.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_intern.h
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/space_view3d/view3d_utils.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_snap.c
source/blender/python/intern/gpu_offscreen.c
source/blender/windowmanager/intern/wm_files.c
2018-06-08 14:38:57 +02:00
7b6af843c2
Cleanup: getting rid of G.main.
...
Sometimes one needs a *lot* of changes for a single G.main... :/
2018-06-08 12:17:22 +02:00
d352a0adc5
Merge branch 'master' into blender2.8
2018-06-08 08:02:50 +02:00
009c38df53
Fix recently added drag events closing menus
2018-06-08 08:01:43 +02:00
3823287179
Merge branch 'master' into blender2.8
2018-06-07 17:08:55 +02:00
d274c64d22
WM: add support for drag events
...
This allows for a single key to be mapped to both release and drag,
useful for pie menus to share a key with a different action.
2018-06-07 17:06:01 +02:00
64e0ab6a00
Merge branch 'master' into blender2.8
2018-06-07 16:32:40 +02:00
e19686a35a
WM: check for release instead of not pressed
...
Makes reasoning about events more predictable.
2018-06-07 16:19:59 +02:00
508e34d0bf
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/animation/anim_deps.c
source/blender/editors/animation/keyframing.c
source/blender/editors/animation/keyingsets.c
source/blender/editors/armature/pose_edit.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/gpencil/gpencil_convert.c
source/blender/editors/include/ED_anim_api.h
source/blender/editors/include/ED_keyframing.h
source/blender/editors/interface/interface_anim.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/editors/transform/transform_conversions.c
source/blender/makesrna/intern/rna_armature.c
source/blender/makesrna/intern/rna_pose.c
source/blender/python/intern/bpy_rna_anim.c
source/blenderplayer/bad_level_call_stubs/stubs.c
source/gameengine/Converter/KX_BlenderSceneConverter.cpp
2018-06-07 13:04:16 +02:00
b3a7a75a26
Cleanup: remove moar G.main usages.
...
Notes:
* Really need to address RNA setters case, end up adding way too much
G.main here these days... :/
* Added Main pointer into bAnimContext, helps a lot in anim code ;)
2018-06-07 12:48:29 +02:00
2d2f23de10
Fix T55348: Renaming a marker can't cancel
...
Regression in a14005c070
2018-06-07 08:54:47 +02:00
ba80d8440f
Cleanup: style
2018-06-06 22:17:06 +02:00
bb09556be5
UI: sub panel titles draw smaller and indented.
2018-06-06 16:00:25 +02:00
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
1889eec918
UI: use regular size icons for toolbar popup
...
Test this since the popup feels disruptive/flashing when its too large
when set smaller it looks closer to a menu w/ key-accelerators which is
the intention in this case.
It's also more likely the active tool can be placed under the cursor.
2018-06-06 08:32:25 +02:00
f0d9dbae0d
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenloader/intern/readfile.h
source/blender/blenloader/intern/versioning_250.c
source/blender/blenloader/intern/versioning_260.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/versioning_legacy.c
source/blender/editors/render/render_shading.c
source/blender/makesrna/intern/rna_movieclip.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/voxeldata.c
2018-06-05 17:02:50 +02:00
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +02:00
80d86f303a
UI: support property split for 'prop_search'
2018-06-05 08:56:14 +02:00
d7c2b78822
UI: add subpanel support.
...
In the Python API, any panel becomes a subpanel by setting bl_parent_id
to the name of the parent panel. These subpanels can contain advanced or
less commonly used settings.
2018-06-03 21:30:35 +02:00
06c4106d03
Fix for fix, indentation was accidental
2018-06-01 15:42:00 +02:00
75b2729488
Fix missing braces
2018-06-01 15:37:53 +02:00
13ca63d2ad
Draw background on pulldown widgets if the header is transparent.
...
Since the viewport header now supports transparency, text on pulldowns
can be hard to read if their color matches the viewport content.
Background is drawn using the 'inner' theme color, that was unused until now.
2018-06-01 15:11:38 +02:00
82b8fd8eaf
UI: don't show XYZ text w/ direction buttons
2018-06-01 14:10:43 +02:00
995fa1f4c0
UI: new tool properties space type
...
This currently shows panels that were in the 2.79 3D view toolbar
which are now popovers.
In some cases it's useful for these to stay open.
This commit adds a space type to do this.
Note this is currently empty in object mode.
2018-05-31 21:45:26 +02:00
1f693aefca
Cleanup: style/whitespace
...
Also use 'uint'.
2018-05-30 19:49:33 +02:00
efd0333a9c
UI: fix property split w/ color buttons & empty text
2018-05-30 17:29:20 +02:00
d4ac65d003
Cleanup: use same 'depsgraph' name everywhere outside of DEG space.
...
'graph' is waaaayyyyy too generic name outside of DEG context, and
better try to use same name everywhere!
2018-05-29 12:07:48 +02:00
3c1483cf1e
COW operators: Fix drag and dropping of color properties
2018-05-28 23:07:23 +02:00
765fd29d68
EEvEE: LookDev
2018-05-28 17:07:39 +02:00
1d320f10ac
UI: Option to layout properties in two columns
...
Needed for proposed alternate layout, see T54951.
2018-05-28 16:49:30 +02:00
95c5d1193f
Merge branch 'master' into blender2.8
2018-05-27 21:10:43 +02:00
fd2c48726f
UI: center align number buttons w/o text
...
This makes supporting split properties and text possible, see T54951
2018-05-27 21:08:50 +02:00
47f2b3b80d
Merge branch 'master' into blender2.8
2018-05-27 12:54:21 +02:00
56254a42e0
UI: replace BLI_strncpy w/ memcpy
...
Size is already checked.
2018-05-27 12:50:03 +02:00
8a73ea7af2
Use menu back theme colors for popover
2018-05-25 17:02:56 +02:00
51926de7f0
UI: popover now only centers on active button once
2018-05-25 16:31:52 +02:00
5901c1ca42
UI: fix event handling direction
...
Correct arrow key direction in popovers,
also de-duplicate menu callback,
2018-05-25 15:47:12 +02:00
Julian Eisel
dc26ef081b
Fix T55198: Preferences Keybindings Crash
...
Operator sanitize function would be called for non operator props. Mistake from
88eafe078a .
2018-05-25 14:04:48 +02:00
b11a1d5da2
UI: support for a popup panel which stays open
2018-05-25 12:55:22 +02:00
e9908134e8
UI: Move UI_paneltype_draw into layout code
...
No functional changes, needed for persistent popovers.
2018-05-25 12:55:22 +02:00