Commit Graph

65706 Commits

Author SHA1 Message Date
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
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
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
Antonioya
c2a12eedd1 GP: Use stroke and fill switches while drawing 2018-11-03 10:01:28 +01: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
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
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
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
Dalai Felinto
3e55b3c6d0 Multi-Objects: CURVE_OT_switch_direction 2018-11-02 14:12:20 -03:00
Dalai Felinto
14344de261 Multi-Objects: CURVE_OT_tilt_clear 2018-11-02 14:12:20 -03:00
Dalai Felinto
3d4fd6ce1e Multi-Objects: CURVE_OT_handle_type_set 2018-11-02 14:12:20 -03:00
Brecht Van Lommel
3f9a751d47 Fix T57586: crash linking node group through material properties editor. 2018-11-02 17:49:34 +01:00
Brecht Van Lommel
aa41c17d32 UI: add option for permanently allowing execution of scripts to dialog.
Ref T57197
2018-11-02 17:34:50 +01:00
Brecht Van Lommel
26c613c061 Fix missing separators after recent changes. 2018-11-02 17:28:20 +01:00
Brecht Van Lommel
3e5483ffe1 Fix T57316: material preview icons not updating.
The editors update callback was getting the COW datablock, it should be the
original where the preview icons are stored.
2018-11-02 16:54:07 +01:00
Dalai Felinto
500ebf7348 Multi-Objects: CURVE_OT_normals_make_consistent 2018-11-02 12:37:56 -03:00
Antonioya
f3ffb4e049 Add new factor parameter to layout.separator()
The new parameter allows to define the scale of the space.
2018-11-02 16:35:53 +01:00
Clément Foucault
d3ade45774 Armature: Fix stick bones not scaling with pixel size 2018-11-02 16:27:34 +01:00
Dalai Felinto
4135c7786e Multi-Objects: CURVE_OT_separate
This is also a first take on trying to handle errors for partial
succeeded operators. Handling it all manually for now.

For the remaining operators I will use changed_multi to get over with
multi-objects. But we can handle their errors in a separate pass.
2018-11-02 12:16:59 -03:00