Campbell Barton
578879253d
UI: use horizontal alignment for expanded enums
...
With the property separate option, the direction of expanded enums
now follows the current layout.
2018-09-04 14:09:37 +10:00
Bastien Montagne
cc03218962
Fix T56659: Flow UI: Checkboxes report wrong width, making layouts jump to multi-columns too soon.
...
Wrong handling of ideal width when splitting buttons and labels appart
for checkboxes...
2018-09-03 11:07:29 +02:00
Campbell Barton
41d1af9a11
UI: check prop-separate before adding black decorator
...
This caused the blank icon to be added to menus (ndof menu for eg).
2018-08-30 20:50:06 +10:00
Campbell Barton
ffbe5985c6
Fix T56547: Single column properties not aligned
2018-08-28 01:06:26 +10:00
Campbell Barton
6a5bc88abf
Merge branch 'master' into blender2.8
2018-08-24 12:17:33 +10:00
Campbell Barton
b2d32d7fa4
UI: always align item w/ label
2018-08-24 12:16:38 +10:00
Campbell Barton
7fa42b3e51
Fix T56511: UILayout.prop_search misaligned
...
Add padding when used with property decorations.
2018-08-24 12:11:24 +10:00
Campbell Barton
5bd731b673
Merge branch 'master' into blender2.8
2018-08-24 11:54:12 +10:00
Campbell Barton
7ec1a56a41
RNA: avoid redundant property lookups in UI API
2018-08-24 11:44:28 +10:00
Campbell Barton
f7c1716b6c
Merge branch 'master' into blender2.8
...
Fixes enum-flags having no text w/ property-split
2018-08-15 15:56:20 +10:00
Campbell Barton
c3e3ccd42c
Cleanup: set expand variable for all enum-flags
...
No functional change, needed for fix in 2.8x
2018-08-15 15:54:27 +10:00
Campbell Barton
f6300030e0
Cleanup: trailing space
2018-07-31 19:07:56 +10:00
Antonioya
66da2f537a
New Grease Pencil object for 2D animation
...
This commit merge the full development done in greasepencil-object branch and include mainly the following features.
- New grease pencil object.
- New drawing engine.
- New grease pencil modes Draw/Sculpt/Edit and Weight Paint.
- New brushes for grease pencil.
- New modifiers for grease pencil.
- New shaders FX.
- New material system (replace old palettes and colors).
- Split of annotations (old grease pencil) and new grease pencil object.
- UI adapted to blender 2.8.
You can get more info here:
https://code.blender.org/2017/12/drawing-2d-animation-in-blender-2-8/
https://code.blender.org/2018/07/grease-pencil-status-update/
This is the result of nearly two years of development and I want thanks firstly the other members of the grease pencil team: Daniel M. Lara, Matias Mendiola and Joshua Leung for their support, ideas and to keep working in the project all the time, without them this project had been impossible.
Also, I want thanks other Blender developers for their help, advices and to be there always to help me, and specially to Clément Foucault, Dalai Felinto, Pablo Vázquez and Campbell Barton.
2018-07-31 10:50:43 +02:00
Campbell Barton
cca87ccc75
UI: remove space/region from popover args
...
Instead use global panel-type list.
2018-07-13 19:16:35 +02:00
Brecht Van Lommel
0a04314d06
Fix popovers showing unnecessary titles.
2018-07-10 16:30:17 +02:00
Pablo Vazquez
1112f49a14
UI: Cleanup - Remove Show Panel Header and Background
...
A toggle for this is no longer required now that both header and background
colors are RGBA (disabling Show Header is the same setting the alpha to 0).
Thanks Brecht for reviewing!
2018-07-10 00:47:08 +02:00
Brecht Van Lommel
02f903d099
Fix layout issue with enum property separators.
2018-07-06 14:19:11 +02:00
Brecht Van Lommel
a883f0fd54
UI: add separators in properties editor header tabs.
2018-07-05 19:27:50 +02:00
Clément Foucault
dc87648970
UI: Fix Properties with consecutive icons enabled in dropdown menus
...
It was using ICON_UNLOCKED when the property was true.
This affected the use_lock_interface properties now displayed in the Render
menu.
2018-07-02 19:14:06 +02:00
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
bc95c7a3ea
Cleanup: remove num argument prefix
2018-07-01 09:23:51 +02:00
Campbell Barton
eb63b32dee
Merge branch 'master' into blender2.8
2018-06-30 13:52:04 +02:00
Campbell Barton
bdc1108e8c
Cleanup: remove unused context arg to menu
2018-06-30 12:31:53 +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
Brecht Van Lommel
3aa61499d0
Fix unnecessary empty space in shading popover.
2018-06-29 17:58:58 +02:00
Brecht Van Lommel
e69e62a90a
UI: decrease status bar height.
2018-06-26 17:15:43 +02:00
Campbell Barton
29182dd570
Cleanup: style
2018-06-26 08:35:35 +02:00
Campbell Barton
861b0ec417
UI: Right align check-box for extra text space
...
See: T54951
2018-06-25 12:06:51 +02:00
Campbell Barton
762dec21f6
UI: decorators hid non-array buttons
...
Error in last commit.
2018-06-18 15:50:21 +02:00
Campbell Barton
55623368b4
UI: decorators weren't showing icon-only buttons
2018-06-18 15:11:10 +02:00
Campbell Barton
b2f0803b5b
Fix T55511: Decorator drag makes many undo steps
...
Each keyframe made a separate undo step.
2018-06-18 08:25:05 +02:00
Campbell Barton
a794da5200
Fix T55517: Property-split fails w/ expanded enum
2018-06-18 08:05:46 +02:00
Campbell Barton
e960920f2f
UI: decorator color button assert
...
Also set 'all' argument based on the RNA-index
(even though it worked, better set to correct value).
2018-06-17 12:15:32 +02:00
Campbell Barton
0a8e6b48c4
Correct assert in recent changes
2018-06-16 17:31:37 +02:00
Campbell Barton
3cf239ccfa
UI: support dragging to key-frame
2018-06-16 16:29:05 +02:00
Campbell Barton
d8c2c63c00
UI: Add property decorator buttons
...
When use_property_split is enabled, this template adds
buttons to set keyframes, (Alternative to showing color).
See: T54951
2018-06-16 16:28:42 +02:00
Bastien Montagne
5b6ae0523e
Merge branch 'master' into blender2.8
2018-06-15 17:25:41 +02:00
Bastien Montagne
da9b1b14ed
Cleanup: some more G.main removal/validation...
2018-06-15 17:21:07 +02:00
Campbell Barton
51f1ed8221
Cleanup: style
2018-06-14 22:44:53 +02:00
Campbell Barton
ca7a93953a
Error in recent popover width
2018-06-13 11:57:52 +02:00
Campbell Barton
e4ab04b8bb
Fix pop-over buttons always getting space for icon
2018-06-13 11:22:15 +02:00
Campbell Barton
2a5d4d7573
Merge branch 'master' into blender2.8
2018-06-13 11:11:23 +02:00
Campbell Barton
5788f24337
Cleanup: swapped X/Y UI_UNIT
2018-06-13 11:10:55 +02:00
Dalai Felinto
070830c62d
Fix separator element for headers with multiple directions
2018-06-11 14:54:04 +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
Campbell Barton
45a5ddb57b
Merge branch 'master' into blender2.8
2018-06-09 18:58:14 +02:00