Commit Graph

65654 Commits

Author SHA1 Message Date
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
Campbell Barton
ac8d787327 Tool System: brushes are now categorized by tool
The toolbar now shows brush types, the brush selector now
only shows brushes matching the current tool type.

Details:

- Add's Paint.tool_slots (used by the toolbar).
- Removed custom grease pencil brush tool code.
- Bumped subversion.

See T57526 for details.
2018-11-02 19:40:39 +11:00
Campbell Barton
5bd3f3e64b Fix assert setting fake user then removing 2018-11-02 16:23:05 +11:00
Pablo Vazquez
d9dd20bcb3 UI: Rename Save User Settings operator to Save User Preferences.
The term Settings is not used anywhere, plus the menu entry and editor use the word Preferences.
2018-11-02 03:08:58 +01:00
Brecht Van Lommel
86b2f8ef38 UI: add render output tab to properties editor 2018-11-02 11:58:56 +11:00
Pablo Vazquez
2d6a10615d UI: Typo 2018-11-02 01:19:34 +01:00
Campbell Barton
2959e4c72c Multi-Object-Mode: Edit curve draw (deselect all)
D3887 by @zazizizou
2018-11-02 08:31:36 +11:00
Campbell Barton
93b99306d8 Multi-Object-Mode: Edit curve toggle cyclic
D3882 by @zazizizou
2018-11-02 08:26:11 +11:00
charlie
68a4610fc4 UI: Math Node Menu: Group and reorder
Change menu so that maths functions are grouped together more logically.
2018-11-01 21:01:52 +00:00
Campbell Barton
28f3f4da12 Cleanup: style 2018-11-02 07:44:26 +11:00
Campbell Barton
f667a250f4 Fix bpy.app, sentinel was removed by accident 2018-11-02 07:43:28 +11:00
Clément Foucault
fecb09ceff Eevee: Fix crash during Light cache baking
This was caused by some threading conflict.
2018-11-01 21:23:12 +01:00
Clément Foucault
b2a6e149a6 Eevee: Opti: Irradiance: Remove sqrt and max on backface test
Did not have any impact in my tests and it saves some instructions.
2018-11-01 21:23:12 +01:00
Brecht Van Lommel
10d7740e01 UI: show messages and progress in topbar when status bar is collapsed. 2018-11-01 19:44:03 +01:00
Brecht Van Lommel
c2bcde5c28 UI: show blocking popup when auto execution of scripts is disabled.
This is important information, and it was easily missed at the top/bottom of
the screen.

Ref T57197.
2018-11-01 19:44:03 +01:00
Brecht Van Lommel
1e8a2e1a10 UI: support red alert on labels, not just buttons. 2018-11-01 19:43:46 +01:00
Brecht Van Lommel
c7752df86d Fix T57559: fix wrong disable/mute icons for particles and shape keys. 2018-11-01 19:31:20 +01:00
Brecht Van Lommel
97bb56711e Defaults: leave user prefs temp directory empty, so it gets right value per OS. 2018-11-01 19:31:20 +01:00
Antonioya
1237e50c9b GP: Reorganize origin popover and top area
- Draw on back buttons moves near mode
- zDepth offset moved from View Panel to Popover
- Target for Stroke mode moved to popover
- New First point snap mode
2018-11-01 17:05:04 +01:00
Pablo Vazquez
e6da49295c UI: Rename "Cursor to Center" to "Cursor to World Origin"
Center is misleading since it could mean the center of the objects, selection, etc.
Python API is left as is to not break compatibility. Maybe it could be renamed as well?
2018-11-01 16:12:52 +01:00
Pablo Vazquez
7d765eca13 UI: Rename Copy Material to Others to Copy Material to Selected.
"Others" is not clear, "selected" is more descriptive and it follows the convention used in similar operators
2018-11-01 15:57:27 +01:00
Pablo Vazquez
423e887c74 UI: Rename AO to Ambient Occlusion in tooltips and labels when possible.
Just tooltips and RNA labels when possible. Node outputs use their name to keep connections,
so they haven't been changed, otherwise it will break old files.
2018-11-01 15:57:27 +01:00
Sergey Sharybin
d6d5c436e3 Subdiv: Cleanup, better naming yet again 2018-11-01 15:45:57 +01:00
Sergey Sharybin
623574ffa2 Subdiv: Cleanup, de-duplicate some code 2018-11-01 15:20:50 +01:00
Sergey Sharybin
d710cb91b9 Subdiv: Cleanup, de-duplicate tangent matrix calculation 2018-11-01 15:20:50 +01:00
Sergey Sharybin
c2aa8d03f2 Subdiv: Cleanup. better naming 2018-11-01 15:20:50 +01:00
Sergey Sharybin
34ec716352 Subdiv: Cleanup, deduplicate some code 2018-11-01 15:20:50 +01:00
Clément Foucault
9d5edf2d39 Eevee: Fix nodegroup sockets behaviour
Node group inputs should behave like cycles now.

----

We create dummy nodes that contains the default values for the nodegroup
inputs and link them to the sockets. This way the uniform buffer gathering
function can read them.

But we also need to disconnect all the internal links to sockets that have
hidden values. Theses sockets must not get the values from the nodegroup
input sockets if there is no link to them otherwise we get broken results
(i.e.: normals for a bsdf node).
2018-11-01 15:06:42 +01:00
Dalai Felinto
c2316909ff Fix for object.set_select not updating selection in viewport
Note: This function changes the active object as well. Not sure it
should do.
2018-11-01 12:43:48 +00:00
Brecht Van Lommel
77c126dd4c Fix T57553: Python operator popup size does not follow UI scale and DPI.
Make it the convention to multiply by scaling factor inside the function, so
Python scripts that didn't add DPI scale start working correctly.
2018-11-01 12:33:27 +01:00
Antonioya
8f1b1b5abb GP: Fix Stroke mode when annotations not enabled
Internally, a drawing is done to calculate z-depth and needs always the drawing.
2018-11-01 12:02:08 +01:00
Dalai Felinto
ae87adc73a Font cleanup: use ELEM 2018-10-31 21:45:27 -03:00
mano-wii
4a013e5dd5 Fix T57540: 3D Cursor snap in editing mode ignoring changed geometry. 2018-10-31 20:47:51 -03:00
Clément Foucault
bb3219d2b1 Eevee: Fix pingpong buffer not using 32bit float buffer when rendering 2018-10-31 22:35:42 +01:00
Campbell Barton
c07d486dcd Fix gizmo extrude adjust & normal axis w/o faces
- Extruding edges/vertices on normals gave bad/strange results.
- The adjust gizmo used the orientation axis instead of the
  last-orientation (which could get out of sync).
2018-11-01 07:56:44 +11:00
Campbell Barton
eb8ddaee4c Transform: support for custom matrix property
Needed for situations when we can't use the orientation.

With extrude the initial extrusion recalculates normals for edges
and vertices which then don't give a useful axis.
2018-11-01 07:55:53 +11:00
Campbell Barton
798cd8a723 Cleanup: style 2018-11-01 07:32:13 +11:00
Clément Foucault
35b888fbda Eevee: Fix compilation issue cause by cleanup 2018-10-31 21:14:32 +01:00
Clément Foucault
97a1561283 Eevee: Cleanup: Remove TODOs about MSM
Soft shadows are supported in another manner, Multiple Shadow Maps are not
needed anymore.
2018-10-31 19:44:01 +01:00
Clément Foucault
f14315bac4 Eevee: Fix wrong default overscan value 2018-10-31 19:40:08 +01:00