Commit Graph

75472 Commits

Author SHA1 Message Date
Campbell Barton
7951adfb9c UI: fix redo panel becoming permanently hidden 2018-09-11 22:39:38 +10:00
Brecht Van Lommel
a1651ddc98 Build: require OpenJPEG 2.x minimum, remove bundled version.
* WITH_SYSTEM_OPENJPEG is removed and is now always on, this was already
  the case for macOS and Windows.
* This should not break existing Linx builds. If there is no new enough
  OpenJPEG installed, CMake will no find libopenjp2 and WITH_IMAGE_OPENJPEG
  will be disabled.
* install_deps.sh was updated with new package names, since distributions
  put this version in a new package.

Differential Revision: https://developer.blender.org/D3663
2018-09-11 12:45:05 +02:00
Brecht Van Lommel
e1178266e7 Workspace: support reordering of workspaces from RMB menu.
Drag and drop will follow later, it's a bit complicated to make this work
reliable in the current UI code.
2018-09-11 12:43:28 +02:00
Brecht Van Lommel
6acf8642e5 Cleanup: remove unused GPU code. 2018-09-11 11:53:56 +02:00
Sergey Sharybin
7c64f8537f PBVH: Fix miossing normals for grids 2018-09-11 11:50:22 +02:00
Antonioya
43abc5dabf GP: Use original datablock and not evaluated version
This is required to avoid COW delay while drawing.
2018-09-11 10:33:29 +02:00
Campbell Barton
17e57859e7 Error in last commit 2018-09-11 16:37:56 +10:00
Campbell Barton
f34a2af4b3 Fix scale cage tool never using object boundbox 2018-09-11 16:22:30 +10:00
Campbell Barton
0117a4c351 Cleanup: use UI_ prefix for block flag 2018-09-11 15:08:08 +10:00
Campbell Barton
bdf215ca82 Merge branch 'master' into blender2.8 2018-09-11 15:01:41 +10:00
Campbell Barton
6bf003bce0 Correct own error in recent transform orientation changes 2018-09-11 15:00:50 +10:00
Campbell Barton
c317a21a4c Cleanup: replace magic number 2018-09-11 14:31:19 +10:00
Campbell Barton
a0fdea271b Workaround T56752: redo panel alpha flicker
The bug applies to tooltips, but isn't as noticeable.
2018-09-11 13:50:30 +10:00
Campbell Barton
58a8277098 GPU: utility function to unregister presets 2018-09-11 13:21:47 +10:00
Campbell Barton
0b597bf7b9 UI: use popup draw style for redo panel 2018-09-11 11:22:08 +10:00
Campbell Barton
15bab56fbc Merge branch 'master' into blender2.8 2018-09-11 11:02:37 +10:00
Campbell Barton
5bb11cfde2 UI: split theme draw style into separate field
Was using UI_BLOCK_LOOP to control draw style,
this meant we couldn't use popup theme colors for cases
where it the interface has the same purpose as a popup but happens
not to use this flag.
2018-09-11 10:56:08 +10:00
Campbell Barton
29c2c307f6 UI: workaround for glitch redo panel glitch 2018-09-11 09:20:02 +10:00
Campbell Barton
406554c4db UI: key binding draw code didn't set line-width 2018-09-11 09:20:02 +10:00
Campbell Barton
a1dda992c0 UI: disable register for insert text
Hides redo panel.
2018-09-11 09:20:02 +10:00
Campbell Barton
06ae3d3573 UI: disable register for grease pencil select
Avoid showing in redo panel
2018-09-11 09:20:02 +10:00
Dalai Felinto
207483dbfe Remaining fix for multiple text-boxes
As mentioned in d81aeb60fe the alignment for multiple text boxes should all
respect the same overall padding.

Vertical alignment is fully implemented now.
2018-09-10 18:15:36 -03:00
Antonioya
3319f80e03 GP: Fix performance problem with big files
During drawing, the depsgrah was tagged to update and this produced a full copy of the datablock. This tag was done in order to get the right data in drawing engine, but this added a great overhead while drawing and the response of the pen was not good.

Now, the depsgraph is not tagged and the drawing engine uses the original copy data of the buffer datablock. This is not a problem because only can draw in one window at time.
2018-09-10 20:24:37 +02:00
Charlie Jolly
89295c7f6b Eeevee: update to match recent voronoi GLSL features for Cycles.
Differential Revision: https://developer.blender.org/D3680
2018-09-10 19:48:14 +02:00
Sebastian Parborg
86aa621f4b Texture paint: properly implement image slots for principled BSDF node.
Now we can create new base color, roughness, metallic, specular, normal,
bump and displacement images, and linked them to the appropriate socket.

Also fixes image nodes inside groups not being visible.

Differential Revision: https://developer.blender.org/D3679
2018-09-10 18:56:54 +02:00
Brecht Van Lommel
49dee07e9c Cleanup: fix compiler warnings. 2018-09-10 18:56:54 +02:00
Dalai Felinto
b94d34915f Textbox removal and creation should update text data 2018-09-10 13:41:56 -03:00
Clément Foucault
a01fe76ded Eevee: Fix assert when using transparent shadows
Was missing some UBO bindings.
2018-09-10 18:05:11 +02:00
Clément Foucault
a4b18bd1b9 Fix T56627: Crash because of incomplete LightCache 2018-09-10 18:05:11 +02:00
Clément Foucault
2a907bea9c Fix assert when toggling Xray mode after going to Solid and lookedev/eevee 2018-09-10 18:05:11 +02:00
Clément Foucault
5e7a56dc64 Eevee: Cleanup DoF implementation 2018-09-10 18:05:11 +02:00
Clément Foucault
ec64cad5a8 Eevee: Lookdev: Fix memleak 2018-09-10 18:05:11 +02:00
Dalai Felinto
c0b61cf64b Silence GP warning 2018-09-10 11:40:27 -03:00
Brecht Van Lommel
d483dfd03d Fix T56717: crash removing/adding objects.
Object bases hash always needs to be freed on library remapping.
2018-09-10 16:09:52 +02:00
Antonioya
b2865560a8 GP: Cleanup commented lines 2018-09-10 16:08:55 +02:00
Antonioya
5e89d1d96c GP: Remove annotation stroke mode
This option has not been working since a lot of time and it looks is unused. When we confirm is not used, we can remove it completely.
2018-09-10 16:08:55 +02:00
Dalai Felinto
58622eb3a6 Image/UV Editor: Remove show other option
This is no longer useful now that we have multi-object editing support.
2018-09-10 10:43:30 -03:00
Antonioya
0ee212682e GP: Use correct name for new Stroke object
To follow Blender standards, the name of the new primitive stroke must be different of blank object.

Also changed the default orientation of Suzanne 2D to use the same as other objects (not aligned by default)
2018-09-10 15:29:22 +02:00
Sergey Sharybin
0284392c48 Cleanup: More variables unused in release 2018-09-10 09:56:14 +02:00
Sergey Sharybin
ad713dc457 Cleanup: Warning in release builds 2018-09-10 09:50:50 +02:00
Campbell Barton
c30e12455b Correct argument type 2018-09-10 17:45:54 +10:00
Campbell Barton
18dc84dc35 Poly Build: disable use_boundary_tear
Without this, it's more like deleting the vertex than dissolving.
2018-09-10 17:35:03 +10:00
Campbell Barton
7283179a00 Poly Build: dissolve was using selection, not highlighted
Also no need to clear selection history,
BM_mesh_elem_hflag_disable_all handles this.
2018-09-10 17:29:24 +10:00
Campbell Barton
5b39b83af4 Poly Build: set newly added elements active 2018-09-10 16:24:38 +10:00
Campbell Barton
a4d126cac6 Cleanup: use title caps 2018-09-10 16:14:26 +10:00
Campbell Barton
549ac6ddeb Edit Mesh: pass Base array to picking functions
In some cases we need to use this array afterwards,
so this gives control over which objects are used for picking.

Also use an index argument as return argument
so callers that need to know the index in the array
don't need to calculate it afterwards.
2018-09-10 16:02:12 +10:00
Campbell Barton
fc06bd7236 Cleanup: use 'mesh' in preselect identifiers
We may have preselection for other types later.
2018-09-10 14:44:15 +10:00
Campbell Barton
0c2001e5ef Missing from last commit 2018-09-10 14:40:12 +10:00
Campbell Barton
a331b5dde6 Cleanup: rename edge-ring preselect file
Having all pre-selection in one file isn't so nice,
differentiate edge-ring from element pre-selection.
2018-09-10 14:38:13 +10:00
Campbell Barton
20634fd433 Tool System: use preselect highlight w/ poly-build
- Poly build now uses a new gizmo for pre-selection
  which has the same behavior as loop-cut.

  This replaces hack where mouse-move set the active element
  which was no longer working properly because of missing
  depsgraph updates.

- Multi-object support for poly-build.

- Support for deformed cage.

- Fix error where changing active object wasn't properly
  refreshing the preselect gizmo (for loopcut too).

Currently holding Alt to select non-boundary element's isn't working.
2018-09-10 14:35:04 +10:00