be40389165
Merge branch 'master' into blender2.8
2018-01-03 23:44:47 +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
58dc114615
Merge branch 'master' into blender2.8
2017-11-06 00:12:28 +11:00
18d7fbe4f5
Cleanup: order buffer length after the buffer
2017-11-06 00:04:46 +11:00
c1da6c9d7d
Merge branch 'master' into blender2.8
2017-11-03 01:16:10 +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
75490adaff
UI: draw operator menus below buttons
...
Following the down arrow on the buttons
2017-11-02 23:43:51 +11:00
08141260ff
Merge branch 'master' into blender2.8
2017-11-02 18:25:47 +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
4a85089abe
Merge branch 'master' into blender2.8
2017-11-02 15:45:19 +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
941484ff81
Merge branch 'master' into blender2.8
2017-11-01 01:27:03 +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
Julian Eisel
147f9585db
Merge branch 'master' into blender2.8
2017-10-23 00:04:20 +02:00
Julian Eisel
efd70ab78f
Move & rename uiLayoutOperatorButs to interface_templates.c
2017-10-21 16:48:42 +02:00
ec2bbc90e7
Merge branch 'master' into blender2.8
2017-10-18 17:09:41 +11:00
ab7ebf2b10
Cleanup: Use const for RNA EnumPropertyItem args
...
Practically all access to enum data is read-only.
2017-10-18 16:04:07 +11:00
75f36266df
Merge branch 'master' into blender2.8
2017-09-14 16:17:22 +05:00
c57636f060
Fix failure in our UI code that could allow search button without search callbacks, leading to crash.
...
Related to (exposed by) T52735, fixes the reported crash but not the
underlying issue.
To be backported to 2.79a should we do one.
2017-09-14 10:58:47 +02:00
673c9dce08
Merge branch 'master' into blender2.8
2017-08-12 19:08:49 +10:00
b5cd89bab9
Fix width estimation for buttons with short labels in pie menus
...
Differential Revision: https://developer.blender.org/D2781
To be backported to 2.79 branch
2017-08-12 11:00:19 +03:00
9567529b8f
Merge branch 'master' into blender2.8
2017-08-12 00:23:49 +10:00
59a52fef6c
Pie menu's sub-rows ignore 'EXPAND' flag
...
Regression, to be backported in 2.79.
2017-08-11 13:18:30 +03:00
8563494823
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/modifiers/intern/MOD_meshsequencecache.c
2017-08-08 19:16:25 +02:00
e8b6bcd65c
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
source/blender/editors/object/object_add.c
source/blender/python/intern/bpy_app_handlers.c
2017-08-08 16:43:25 +02:00
4fe1bf85af
Fix fixed width box layouts
...
Regression, to be backported in 2.79.
2017-08-08 17:37:51 +03:00
ed4707be47
Fix width estimation for empty layouts in pie menus
2017-08-08 15:52:14 +03:00
c558763ef5
Merge branch 'master' into blender2.8
2017-07-29 01:46:27 +10:00
38eabcb858
Fix potential 'divide-by-zero' in our UI fitting code.
...
Reported by coverity, better fix even if highly unlikely to happen...
2017-07-28 10:56:41 +02:00
304e5541cb
Fix T52208: Using UI_BUT_REDALERT flag for UI_BTYPE_KEY_EVENT buttons crashes Blender.
...
but pointer was not assigned in that case...
2017-07-28 10:38:47 +02:00
Julian Eisel
492b5d0bc3
Minor code style corrections
2017-07-27 12:28:16 +02:00
c72eb6288e
Fix Label colors in popups
2017-07-27 12:28:16 +02:00
Julian Eisel
129c3ac7b3
Minor code style corrections
2017-07-27 11:44:51 +02:00
ec22809025
Fix Label colors in popups
2017-07-27 10:27:29 +03:00
Dalai Felinto
4ceb006706
Merge remote-tracking branch 'origin/master' into blender2.8
2017-06-21 15:14:42 +02:00
9e08019b74
Fix: Icon alignment for scaled pie buttons with no text
2017-06-20 20:15:04 +03:00
Julian Eisel
c20c203b82
UI: Add template_search (version of template_ID for non-IDs)
...
Adds a version of template_ID that can be used for non-ID properties.
The property to search for and the collection to search in has to be
passed to it.
Like template_ID it also takes arguments to define a 'new' and 'unlink'
operator. They will be displayed as icon-only buttons then.
Also added a version that can display preview thumbnails.
Had to do some additional changes to make text-buttons support
displaying/modifying empty RNA properties.
This will be needed for workspaces, see D2451.
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D2666
2017-05-12 01:47:55 +02:00
31bdb31ecf
Fix: width of UILayout.prop_enum() buttons
2017-04-11 13:25:46 +03:00
e1fb080743
Cleanup: style
2017-04-01 12:09:17 +11:00
5ce120b865
Fix columns with fixed width
2017-03-28 00:07:31 +03:00
505b3b7328
Fix padding and align calculation for box layouts
2017-03-26 18:02:11 +03:00
4bdb2d4885
Fix: Ignore min flag for rows that require all available width
2017-03-26 12:19:01 +03:00
2ba1868c3f
Cleanup/optimization: Simplify some usages of uiItemFullO/_ptr, avoid multiple search of same op.
2017-03-22 19:42:19 +01:00
9d873fc3de
Various icon adjustments
2017-03-17 16:57:53 +03:00
bcc8c04db4
Cleanup: code style & cmake
2017-03-12 02:47:53 +11:00
f1c764fd8f
Fix width calculation for split layouts
2017-03-06 16:35:56 +03:00
ecee40e919
All drop-down buttons should use the same width
2017-03-01 19:30:18 +03:00