Campbell Barton
287c023b85
Gizmo: tweak 3D view navigation axis sizes
...
This now matches original design more closely, see: T54723.
2018-11-05 08:31:31 +11:00
Campbell Barton
61c5890c2c
Fix missing NULL check initializing paint tools
2018-11-05 07:15:47 +11:00
Campbell Barton
2f8a45e314
Tool System: support passing in args to ToolDef functions
...
Needed since class aren't yet defined
so we can't access their namespace.
This avoids intermediate draw functions.
2018-11-05 07:12:57 +11:00
Campbell Barton
5195f03ca1
Cleanup: style, use ARRAY_SET_ITEMS macro
2018-11-05 07:12:53 +11:00
Antonioya
8d9d473eec
GP: New API to move layers in layer list
...
This can be required in som production scripts
2018-11-04 20:56:38 +01:00
Antonioya
bbb348afc1
GP: Move init code to new version section
2018-11-04 19:52:42 +01:00
Antonioya
665efe401a
Fix T57611: Crash on entering Grease Pencil Sculpt Mode
...
The problem was when some layers was locked in multiedit. The cache size was not checked and gets an segment fault.
2018-11-04 19:37:03 +01:00
Antonioya
807b460a11
GP: Time Offset verify range if loop is disabled
2018-11-04 13:27:41 +01:00
Antonioya
5cfcee8c39
GP: Reorganize Canvas Grid
...
Now the grid is always controlled by the topbar selector and not in the canvas panel. To have two places to define orientation was confuse.
The orientation by default (no lock) is always to view plane.
2018-11-04 13:00:37 +01:00
Alexander Gavrilov
d3c815bd08
BLI_heap: add an API function to directly read the top node value.
...
It is very commonly needed in loop conditions to check if
the items in the heap are good enough to continue.
2018-11-04 13:29:17 +03:00
Campbell Barton
0d69a5aa34
Merge branch 'master' into blender2.8
2018-11-04 18:12:58 +11:00
Campbell Barton
76b9eaf7a8
Fix ghash masking out upper bits on 64bit systems
...
The code this was taken from assumes a 'size_t' result,
which isn't the case here.
In practice the bucket distribution wasn't bad,
even so this was a nop so best fix.
2018-11-04 16:48:36 +11:00
Campbell Barton
179358e6c4
UI: Don't nest sculpt scrape/flatten
...
These are different enough not to be grouped.
2018-11-04 10:33:51 +11:00
Campbell Barton
628a0209a4
Cleanup: missed last commit
2018-11-04 10:32:04 +11:00
Campbell Barton
2402c56a67
UI: move gpencil tool-draw code to topbar
...
The grease pencil UI was showing twice in tool properties space.
Move to top-bar because this UI is meant as quick convenience access
which is expanded on in the tool properties editor.
2018-11-04 10:29:40 +11:00
Campbell Barton
bc870f17a7
Cleanup: style, shadow warning
2018-11-04 10:10:00 +11:00
Antonioya
771b9c8010
GP: Update Canvas grid orientation when change option
2018-11-03 20:33:38 +01:00
Antonioya
0db31c03c6
GP: Fix Time Offset when range frame is 0
2018-11-03 20:27:30 +01:00
Charlie Jolly
f2858fbb9a
UI: Draw curve map with solid color
...
Differential Revision: https://developer.blender.org/D3891
2018-11-03 17:42:40 +00:00
Antonioya
d2b4eaa137
GP: New Time Offset custom frame range parameters
...
These parameters allow to define a frame range for the animation loop and make possible to loop a section while the scene is playing.
2018-11-03 17:11:38 +01:00
Antonioya
ec017861b6
GP: Fix update problems with Grid Canvas
...
The grid canvas was not updated when changed parameters
2018-11-03 16:18:54 +01:00
Campbell Barton
f267921774
UI: remove grease pencil icons
...
Grease pencil tool now uses an icon for each tool,
previously it mapped icons to tool icons which is now not needed
because for each tool a different brush can be selected which has it's
own icon.
2018-11-03 20:35:34 +11:00
Campbell Barton
e53cb83d07
UI: separate sculpt from smooth, flatten
2018-11-03 20:35:34 +11:00
Antonioya
c2a12eedd1
GP: Use stroke and fill switches while drawing
2018-11-03 10:01:28 +01:00
Antonioya
270a6a6689
GP: Change presets for new stroke and fill switches
2018-11-03 10:01:28 +01:00
Campbell Barton
97336343c4
UI: show brush selector in topbar
2018-11-03 19:47:20 +11:00
Antonioya
628908a710
GP: New main switches to hide stroke and fill material
...
New parameters to switch visibility of stroke and fill
2018-11-03 08:51:36 +01:00
Campbell Barton
c48ca87bce
Correct error in last commit
2018-11-03 16:54:17 +11:00
Campbell Barton
888a0735ee
Tool System: validate tool slots when setting modes
...
Needed for entering paint modes on new scenes.
2018-11-03 16:52:06 +11:00
Campbell Barton
13c3c9b22f
Cleanup: move brush query into utility function
2018-11-03 15:55:45 +11:00
Campbell Barton
a18927463c
Cleanup: style
2018-11-03 15:55:45 +11:00
Pablo Vazquez
4affea081a
UI: Move Simplify panel from Scene to Render properties.
...
It mainly contains properties that affect the final render/viewport and it's handy
to see if it's enabled or not while going through the render settings.
2018-11-03 05:12:45 +01:00
Pablo Vazquez
9b2fff4ff8
UI: On markers alternate between filled/outline camera icon on selection.
...
Instead of between the Camera and Camera Data as they are completely different shapes that don't indicate selection.
2018-11-03 04:39:40 +01:00
Pablo Vazquez
3bfd2cdad6
UI: Align Panel drag widget with collapse triangle.
...
As pointed out by Harleya in DevTalk. Thanks!
2018-11-03 04:11:04 +01:00
mano-wii
689cf14447
Transform Snap: Refactoring to avoid duplicate code.
2018-11-02 23:55:02 -03:00
Pablo Vazquez
df0058061d
UI: Soft drop shadow on 3D Viewport info text.
...
Soft shadow similar to the title of pie menus to increase readability.
For the full white background issue an extra box container might be needed.
2018-11-03 03:47:25 +01:00
Pablo Vazquez
2b6ae64257
UI: Blue color for selected row in Outliner.
...
Same hue as used in the rest of the Default theme. Darkened slightly the background and tweaked category icon colors for better contrast.
2018-11-03 03:43:14 +01:00
Pablo Vazquez
018d22fb7a
UI: Sort panels in Properties.
...
* Viewport Display always last before Custom Properties.
* DoF panel second as it's changed more often than Camera sensor width.
* In scene, move Simplify higher up as it is changed more often than Gravity or Audio.
2018-11-03 03:25:51 +01:00
Pablo Vazquez
346b00f6d1
UI: Tooltip for 3D View and rename to 3D Viewport.
2018-11-03 02:26:31 +01:00
Pablo Vazquez
56a8781116
UI: Don't use abbreviations for view names.
2018-11-03 02:18:22 +01:00
Pablo Vazquez
a8c545e61e
UI: Fix white shadow when resetting to defaults.
...
Resetting the theme to default would set the shadow brightness to 1.0f,
which was used as emboss when we used dark text on brighter backgrounds.
Now that we use white labels, bright shadows just makes all text fuzzy.
2018-11-03 02:03:42 +01:00
Dalai Felinto
046ec863ff
Multi-Objects: MBALL_OT_duplicate_metaelems
2018-11-02 16:15:21 -03:00
Dalai Felinto
6bee49eca4
Multi-Objects: MBALL_OT_delete_metaelems
2018-11-02 16:15:21 -03:00
Antonioya
74737091c0
GP: Fix problem when alpha is too low
...
There are still some color when the alpha is set to 0
2018-11-02 19:28:36 +01:00
Antonioya
55a743fade
GP: Add Draw Brush selector to topbar
2018-11-02 19:28:36 +01:00
Antonioya
982ca8c45a
Add hide_buttons option to template_ID_preview
...
When use the template in the topbar for only select an ID is very annoying to have the buttons after the name and only adds noise to the selector.
This option hide the number of users, new and delete buttons to get a cleaner topbar selector.
By default the parameter is disabled in order to keep all existing code/UI running.
2018-11-02 19:28:36 +01:00
Dalai Felinto
c63d133f4d
Small cleanup on curve separation error handling
2018-11-02 14:12:20 -03:00
Dalai Felinto
3335618489
Multi-Objects: CURVE_OT_make_segment
...
And another go at a more complete error handling.
I couldn't test all the error throwing cases but hopefully it is all
working as expected.
2018-11-02 14:12:20 -03:00
Dalai Felinto
b5a18c1aac
Multi-Objects: CURVE_OT_reveal
2018-11-02 14:12:20 -03:00
Dalai Felinto
597d0ce93c
Multi-Objects: CURVE_OT_hide
2018-11-02 14:12:20 -03:00