Commit Graph

65693 Commits

Author SHA1 Message Date
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
Pablo Vazquez
ef42dcd31e UI: Darken the backdrop of navigation gizmos.
Bright backdrop would get lost when having bright elements/background in the viewport.
This makes it use a darkened/lighten version of the theme space header color.
Since icons are colored using the 'text' value of the Theme Space, it's likely that any
theme is going to have a contrasting background color, but just in case darken/lighten it slightly.
2018-11-02 16:16:40 +01:00
Clément Foucault
46d88c5850 Edit Mesh Mode: Improve edge drawing
Make edge decoration a bit thinner and try to reduce missing edge segment
due to triangle barycentrics.

This invert the "edge fix" strip offset direction, meanning there is now
the possibility that these triangles poke through nearby geometry depending
on the viewport near/far clips distances.
2018-11-02 15:45:13 +01:00
Clément Foucault
819e6745b0 DRW: Use GPU module wrapper for line width 2018-11-02 15:45:13 +01:00
Clément Foucault
721a19d2b8 GPU: Add safety check for max line width
On some platform does not support line width > 1.0 and can even throw and
error. Better check an at least display something rather than no lines at
all.
2018-11-02 15:45:13 +01:00
Sergey Sharybin
c7d20949fb Multires: Apply uniform scale on displacement when applying scale on object
This is sued by both object joinig and object apply scale operations.

Currently only uniform scale is working correct. Non-uniform gets averaged
and will produce slightly distorted results. This is something we should
fix, but priority of this particular case is not so high.
2018-11-02 15:24:54 +01:00
Brecht Van Lommel
c75a25e9e1 Fix issues with hide/restrict icons after recent changes.
Set the names to match the original order again, to avoid breaking addons and
various places in the code that relied on them.
2018-11-02 15:21:54 +01:00
Bastien Montagne
2e6637bdf6 UI: Fix 'extra' fake user showing in UI ID template usercount.
User do not care about that 'virtual' user, it only makes it more
confusing. So now, that template always shows actual number of real
users, we already have own dedicated button to show fake user status.
2018-11-02 15:12:10 +01:00
Bastien Montagne
f2132b0237 UI: Fix showing '2' number of users in ID templates for fake-user IDs.
Using FakeUser on an ID sill put its usercount to 2 if it is actually
also 'really' used once. But we do not want to show that to user
(especially not since it also allows to 'make single user' of an ID
already only used once...).
2018-11-02 15:12:10 +01:00
Bastien Montagne
8197b247d9 Fix 'id_single_user' wrongly reseting usercount to 0.
We want to undo the initial usercount from low-level ID duplication, not
to erase all possible extra processing (like e.g. setting Fake User...).

Fixes part of mess in brush usercount.
2018-11-02 15:12:10 +01:00
Sergey Sharybin
a0e82342d7 Multires: Cleanup, naming
First of all, follow our naming convention to use module prefix.

Second of all, mesh is being created and is to be freed, we also
have convention for such function names.
2018-11-02 13:59:04 +01:00
Sergey Sharybin
f2873b3ce5 Multires: Prevent crash when joining two multires objects
This only works thing around, just so we can unlock production here.
Joining objects of a different scale will not yet work correctly.

Proper fix is coming later (the code needs to be ported to new
Subdiv API).
2018-11-02 11:00:51 +01:00