6 months agoFix T62859: UV circle select options don't work
Campbell Barton [Mon, 25 Mar 2019 03:12:25 +0000 (14:12 +1100)]
Fix T62859: UV circle select options don't work

6 months agoFix T62866: 3D text not filled by default
Alex Strand [Mon, 25 Mar 2019 02:32:24 +0000 (13:32 +1100)]
Fix T62866: 3D text not filled by default

Regression in bc5b0f7a091c395526370

See D4581

6 months agoCleanup: return argument naming
Campbell Barton [Mon, 25 Mar 2019 01:19:55 +0000 (12:19 +1100)]
Cleanup: return argument naming

6 months agoCleanup: style (render module)
Campbell Barton [Mon, 25 Mar 2019 00:55:36 +0000 (11:55 +1100)]
Cleanup: style (render module)

6 months agoCleanup: style
Campbell Barton [Mon, 25 Mar 2019 00:42:28 +0000 (11:42 +1100)]
Cleanup: style

6 months agoCleanup: use braces for interface code
Campbell Barton [Sun, 24 Mar 2019 23:15:20 +0000 (10:15 +1100)]
Cleanup: use braces for interface code

6 months agoCleanup: pass const image data to IMB_ibImageFromMemory
Campbell Barton [Sun, 24 Mar 2019 22:08:29 +0000 (09:08 +1100)]
Cleanup: pass const image data to IMB_ibImageFromMemory

6 months agoCleanup: style, array wrapping
Campbell Barton [Sun, 24 Mar 2019 05:24:29 +0000 (16:24 +1100)]
Cleanup: style, array wrapping

Add trailing comma for clang-format.

6 months agoFix uninitialized variable use for right aligned checkbox
Campbell Barton [Sun, 24 Mar 2019 20:34:06 +0000 (07:34 +1100)]
Fix uninitialized variable use for right aligned checkbox

6 months agoFix T49979: HSV/HSL 'Far' interpolation in colorbands when both stops have same hue.
Bastien Montagne [Tue, 19 Mar 2019 18:50:30 +0000 (19:50 +0100)]
Fix T49979: HSV/HSL 'Far' interpolation in colorbands when both stops have same hue.

When two stops had the exact same color, 'Far' interpolation would
behave like the three others and generate constant colors, instead of
generating expected 'full turn' in Hue space.

Note that this will break the 'constant' color between two stops with
same value in the 'Far' interpolation mode, but think that change is

This fix also exposed that 'early out' case when we are after last stop
was not working properly, still triggering actual interpolation
computation in all cases, thus the refactor in `BKE_colorband_evaluate()`
itself. We also now avoid computing factors in constant case, and get
out early in all interpolation cases but the 'spline' ones (where color
ramping can start before first stop, and end after last one).

Work initiated by patch from Charlie Jolly (@charlie) in T49979, thanks.

Reviewers: brecht, sergey

Subscribers: charlie

Differential Revision:

6 months agoFix missing version patching from lamp/light and subsurface changes.
Brecht Van Lommel [Sun, 24 Mar 2019 13:48:23 +0000 (14:48 +0100)]
Fix missing version patching from lamp/light and subsurface changes.

6 months agoCleanup: redundant use of string formatting functions
Campbell Barton [Sun, 24 Mar 2019 05:09:46 +0000 (16:09 +1100)]
Cleanup: redundant use of string formatting functions

6 months agoCleanup: redundant NULL initialization
Campbell Barton [Sun, 24 Mar 2019 00:06:18 +0000 (11:06 +1100)]
Cleanup: redundant NULL initialization

6 months agoCleanup: use shader config for worldspace clipping lib
Campbell Barton [Sun, 24 Mar 2019 00:01:28 +0000 (11:01 +1100)]
Cleanup: use shader config for worldspace clipping lib

6 months agoUI: support Ctrl-C copy for popover buttons
Campbell Barton [Sat, 23 Mar 2019 23:50:01 +0000 (10:50 +1100)]
UI: support Ctrl-C copy for popover buttons

Match menu logic that sets the Python expression to call the popover.

6 months agoGPU: State: Replace GL_LINE_SMOOTH by GPU_line_smooth
Clément Foucault [Sat, 23 Mar 2019 22:54:01 +0000 (23:54 +0100)]
GPU: State: Replace GL_LINE_SMOOTH by GPU_line_smooth

6 months agoGPU: State: Disable polygon smooth and line smooth when running --debug-gpu
Clément Foucault [Sat, 23 Mar 2019 22:47:12 +0000 (23:47 +0100)]
GPU: State: Disable polygon smooth and line smooth when running --debug-gpu

This might prove usefull when debugging some driver perf issues.

6 months agoGPU: Replace glEnable/glDisable but GPU_state calls
Clément Foucault [Sat, 23 Mar 2019 22:43:26 +0000 (23:43 +0100)]
GPU: Replace glEnable/glDisable but GPU_state calls

6 months agoGPU: Remove unused and deprecated GPU_line_stipple()
Clément Foucault [Sat, 23 Mar 2019 22:42:30 +0000 (23:42 +0100)]
GPU: Remove unused and deprecated GPU_line_stipple()

6 months agoFix T62884 Missing control point in unselected mask handles
Clément Foucault [Sat, 23 Mar 2019 21:46:15 +0000 (22:46 +0100)]
Fix T62884 Missing control point in unselected mask handles

The fix is a bit dirty. Force alpha 1.0 for these colors by using
immUniformThemeColorShadeAlpha with 255 as alpha_offset.

6 months agoFix T62869 Transparent background not working in Xray Mode / Wireframe
Clément Foucault [Sat, 23 Mar 2019 21:13:57 +0000 (22:13 +0100)]
Fix T62869 Transparent background not working in Xray Mode / Wireframe

This was due to the forward part of the engine not supporting rendered
alpha channel.

6 months agoFix T62873 GPUShader: compile error (when clipping in viewport)
Clément Foucault [Sat, 23 Mar 2019 18:31:20 +0000 (19:31 +0100)]
Fix T62873 GPUShader: compile error (when clipping in viewport)

Props to @matc for the fix

6 months agoFix T62097 Bone transparancy not enabled when Xray enabled
Clément Foucault [Sat, 23 Mar 2019 18:28:13 +0000 (19:28 +0100)]
Fix T62097 Bone transparancy not enabled when Xray enabled

This forces bone transparency / wireframe display when Xray is enabled.
This makes sense as the bone transparency is a kind of Xray and should
be linked to the Xray display.

6 months agoEevee: Opti: Don't consider lights that have no power
Clément Foucault [Sat, 23 Mar 2019 18:18:51 +0000 (19:18 +0100)]
Eevee: Opti: Don't consider lights that have no power

This may be usefull if power is animated ans is to be activated at one
particular point in time.

6 months agoCleanup: Remove printf
Clément Foucault [Sat, 23 Mar 2019 18:16:55 +0000 (19:16 +0100)]
Cleanup: Remove printf

6 months agoFix T62845 VSE preview crash when setting rendered (EEVEE/Workbench)
Clément Foucault [Sat, 23 Mar 2019 18:09:25 +0000 (19:09 +0100)]
Fix T62845 VSE preview crash when setting rendered (EEVEE/Workbench)

6 months agoEdit Mesh: Rework "in front" + "hidden wire" drawing
Clément Foucault [Sat, 23 Mar 2019 17:46:29 +0000 (18:46 +0100)]
Edit Mesh: Rework "in front" + "hidden wire" drawing

Instead of doing some fancy stencil buffer tricks, just clear the depth
buffer before the "in front" meshes.

Fix T58841 Hidden Wire when in Edit Mode disables In Front Option

6 months agoFix workbench object outline ignoring clipping
Campbell Barton [Sat, 23 Mar 2019 03:25:29 +0000 (14:25 +1100)]
Fix workbench object outline ignoring clipping

Workbench forward engine wasn't recompiling shaders when clipping
changed, use GPUShaderConfigData when creating shaders.

6 months agoCleanp: remove redundant clipping uniform
Campbell Barton [Sat, 23 Mar 2019 02:30:02 +0000 (13:30 +1100)]
Cleanp: remove redundant clipping uniform

workbench_material_shgroup_uniform handles this.

6 months agoUI: show camera sensor 'Width' as 'Size' for 'Auto' fit
Campbell Barton [Sat, 23 Mar 2019 01:29:49 +0000 (12:29 +1100)]
UI: show camera sensor 'Width' as 'Size' for 'Auto' fit

6 months agoFix auto sensor size for camera gizmo
Campbell Barton [Sat, 23 Mar 2019 01:29:03 +0000 (12:29 +1100)]
Fix auto sensor size for camera gizmo

6 months agoCleanup: style, use const args where possible
Campbell Barton [Sat, 23 Mar 2019 01:16:38 +0000 (12:16 +1100)]
Cleanup: style, use const args where possible

6 months agoCleanup: add doxy sections to interface_ops.c
Campbell Barton [Sat, 23 Mar 2019 01:07:05 +0000 (12:07 +1100)]
Cleanup: add doxy sections to interface_ops.c

6 months agoCleanup: doxy sections & function name
Campbell Barton [Sat, 23 Mar 2019 00:55:36 +0000 (11:55 +1100)]
Cleanup: doxy sections & function name

6 months agoFix T62815: Camera frame shift issue + stereo frame working
Dalai Felinto [Fri, 22 Mar 2019 21:38:54 +0000 (18:38 -0300)]
Fix T62815: Camera frame shift issue + stereo frame working

While I broke the non-stereo camera frame in rBf1fef41863b I came to
realize after further tests that the stereo camera frame was NEVER

It is now, regardless of the camera shift, the camera pivot, if you are
looking through the left, right or stereo eyes.

In the end all that was missing was to multiply the shift we needed to
offset the frame, by the frame width.

I also took the opportunity to perform some cleanup/refactor regarding
names. It was too confusing even for me.

Note: Non-uniformally scaled cameras still draw slightly wrong.

6 months agoViewport Refactor: Move camera tracking reconstruction in own function
Dalai Felinto [Fri, 22 Mar 2019 20:30:12 +0000 (17:30 -0300)]
Viewport Refactor: Move camera tracking reconstruction in own function

I'm going through my own messy stereo code, and came to realized that
this should be out in its own function a long time ago (as we have in 2.7x).

6 months agoCleanup: fix compiler warning.
Brecht Van Lommel [Fri, 22 Mar 2019 19:30:24 +0000 (20:30 +0100)]
Cleanup: fix compiler warning.

6 months agoFix COLLADA build after recent changes.
Brecht Van Lommel [Fri, 22 Mar 2019 19:29:44 +0000 (20:29 +0100)]
Fix COLLADA build after recent changes.

6 months agoSilence false positive uninitialized warning
Dalai Felinto [Fri, 22 Mar 2019 19:28:17 +0000 (16:28 -0300)]
Silence false positive uninitialized warning

Techically we would never get to the part where we would use the
uninitialized value due to an assert.

6 months agoMerge branch 'blender2.7'
mano-wii [Fri, 22 Mar 2019 19:23:23 +0000 (16:23 -0300)]
Merge branch 'blender2.7'


6 months agoMSVC: add C4115 and C4189 warnings.
mano-wii [Fri, 22 Mar 2019 19:15:46 +0000 (16:15 -0300)]
MSVC: add C4115 and C4189 warnings.

This matches the warnings of the other compilers commonly used in Blender.

6 months agoFix warning for uninitialized icon_only
Dalai Felinto [Fri, 22 Mar 2019 19:01:25 +0000 (16:01 -0300)]
Fix warning for uninitialized icon_only

Warning/issue introduced on rBcaa357dae70322e.

6 months agoFix: VSE preview not showing stereo drawing (unreported)
Dalai Felinto [Fri, 22 Mar 2019 18:08:22 +0000 (15:08 -0300)]
Fix: VSE preview not showing stereo drawing (unreported)

SpaceSeq main stereo drawing is for ar->regiontype RGN_TYPE_PREVIEW, but
the drawing code was assuming RGN_TYPE_WINDOW was the only one to be
considered for all the regions.

SpaceSeq still needs stereo drawing in RGN_TYPE_WINDOW but only when
backdrop is enabled.

Bug introduced on rBe01cadd657c76267.

6 months agoFix T60969 Eevee: Volumetrics broken with dupli objects
Clément Foucault [Fri, 22 Mar 2019 18:39:56 +0000 (19:39 +0100)]
Fix T60969 Eevee: Volumetrics broken with dupli objects

The volumeObjectMatrix uniform was referencing memory from the temp dupli
object. Create temp storage to store the matrix.

6 months agoGPU: Cleanup: Code Style
Clément Foucault [Fri, 22 Mar 2019 18:38:03 +0000 (19:38 +0100)]
GPU: Cleanup: Code Style

6 months agoFix T57617 Volumetrics doesn't work on the Orthographic Camera
Clément Foucault [Fri, 22 Mar 2019 17:06:24 +0000 (18:06 +0100)]
Fix T57617 Volumetrics doesn't work on the Orthographic Camera

common_data.view_vecs were not updated before use.

6 months agoFix T58392 Texture limit size not working
Clément Foucault [Fri, 22 Mar 2019 14:38:41 +0000 (15:38 +0100)]
Fix T58392 Texture limit size not working

It was removed by inadvertence.

6 months agoFix T59962, T60130: error adding image sequence with node wrangler.
Brecht Van Lommel [Fri, 22 Mar 2019 17:59:40 +0000 (18:59 +0100)]
Fix T59962, T60130: error adding image sequence with node wrangler.

The region should be restored correctly, there is already a similar test for
areas to be preserved.

6 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Fri, 22 Mar 2019 17:18:37 +0000 (18:18 +0100)]
Merge branch 'blender2.7'

6 months agoRevert "Cleanup: remove legacy mesh save support"
Brecht Van Lommel [Fri, 22 Mar 2019 17:16:46 +0000 (18:16 +0100)]
Revert "Cleanup: remove legacy mesh save support"

Fixes T62793. Leave this in the blender2.7 branch for those that still rely
on it, but it will remain removed in master.

6 months agoModifiers: add minimum number of vertices to triangulate modifier.
Ish Bosamiya [Fri, 22 Mar 2019 16:55:51 +0000 (17:55 +0100)]
Modifiers: add minimum number of vertices to triangulate modifier.

This lets you only triangulate n-gons when setting the number to 5 or more.

Differential Revision:

6 months agoFix T62844: Cycles crash with bevel and degenerate geometry.
Brecht Van Lommel [Fri, 22 Mar 2019 16:01:33 +0000 (17:01 +0100)]
Fix T62844: Cycles crash with bevel and degenerate geometry.

6 months agoUI: move stereo panel above output.
Brecht Van Lommel [Fri, 22 Mar 2019 15:01:15 +0000 (16:01 +0100)]
UI: move stereo panel above output.

Otherwise clicking the stereo panel moves it.

6 months agoFix T58517: Multi-view issues with OpenGL render + scene settings
Dalai Felinto [Fri, 22 Mar 2019 16:15:05 +0000 (13:15 -0300)]
Fix T58517: Multi-view issues with OpenGL render + scene settings

Patch by Shinsuke Irie.

* * *

Note from reviewer/committer (dfelinto):

OpenGL render from the VSE preview window is working, while the VSE
preview window itself does not show stereo.

That said the patch is ok, and I was able to test that the VSE preview
OpenGL still works. I will tackle VSE preview itself separately myself.

6 months agoSilence warnings
Dalai Felinto [Fri, 22 Mar 2019 16:20:45 +0000 (13:20 -0300)]
Silence warnings

6 months agoFix overlay being ignored in functions that read the depth buffer.
mano-wii [Fri, 22 Mar 2019 16:04:23 +0000 (13:04 -0300)]
Fix overlay being ignored in functions that read the depth buffer.

This corresponds to the behavior of blender 2.79.

6 months agoDRW Manager: create and use new DRW_framebuffer_depth_read utility.
mano-wii [Fri, 22 Mar 2019 15:53:50 +0000 (12:53 -0300)]
DRW Manager: create and use new DRW_framebuffer_depth_read utility.

6 months agoGPU: Create and use new GPU_texture_read_rect utility.
mano-wii [Fri, 22 Mar 2019 15:52:38 +0000 (12:52 -0300)]
GPU: Create and use new GPU_texture_read_rect utility.

6 months agoNodeEditor: Connect Viewer To Socket Selection
Jeroen Bakker [Fri, 22 Mar 2019 16:03:02 +0000 (17:03 +0100)]
NodeEditor: Connect Viewer To Socket Selection

Request from the Spring team. When compositing the CTRL-Shift Click on a
node cycles the viewnode with an output socket. When you have many
render layers you spend time cycling to the desired socket. This patch
allows the user to CTRL-Shift Click on a socket to connect directly to
that socket.

Reviewed By: brecht

Maniphest Tasks: T62785

Differential Revision:

6 months agoUI: Rename editor "Compositing" to "Compositor"
Adrian Newton [Fri, 22 Mar 2019 15:45:30 +0000 (16:45 +0100)]
UI: Rename editor "Compositing" to "Compositor"

Reviewers: brecht, billreynish

Differential Revision:

6 months agoFix T62348: Cycles - Viewport rendering not update on switching viewlayer
Dalai Felinto [Fri, 22 Mar 2019 15:45:42 +0000 (12:45 -0300)]
Fix T62348: Cycles - Viewport rendering not update on switching viewlayer

It updates only the main window you edit and the non-main window
children of this main one.

Reviewers: sergey, brecht

Differential Revision:

6 months agoDRW: minor optimization accessing the loop between a face and edge
Campbell Barton [Fri, 22 Mar 2019 15:44:22 +0000 (02:44 +1100)]
DRW: minor optimization accessing the loop between a face and edge

6 months agoFix T62841: Hidden collection shortcut should be work in edit mode
Dalai Felinto [Fri, 22 Mar 2019 14:58:44 +0000 (11:58 -0300)]
Fix T62841: Hidden collection shortcut should be work in edit mode

This is a full revert of b6c61945aed51d86dc474df616761f9a25d71d09.

But ammended to include the object.hide_collection() operator to the
pose keymap as well.

While trying to expose the shortcuts to pose mode, I ended up exposing
them for all the modes. It is now only available for object and mode

6 months agoFix T61816: Crash No Face Index Array Modifier
Jeroen Bakker [Fri, 22 Mar 2019 14:18:07 +0000 (15:18 +0100)]
Fix T61816: Crash No Face Index Array Modifier

Differential Revision:

6 months agoCamera: change how the minimum near clip depth is set
Campbell Barton [Fri, 22 Mar 2019 14:13:04 +0000 (01:13 +1100)]
Camera: change how the minimum near clip depth is set

do_clip wasn't working for its intended purpose,
replace with a simpler method.

6 months agoRNA: Camera.view_frame no longer uses near clip for the camera frame
Campbell Barton [Fri, 22 Mar 2019 14:12:43 +0000 (01:12 +1100)]
RNA: Camera.view_frame no longer uses near clip for the camera frame

Use the same values used for drawing.

6 months agoStyle: describe code using comments instead of preprocessing directives.
mano-wii [Fri, 22 Mar 2019 13:32:57 +0000 (10:32 -0300)]
Style: describe code using comments instead of preprocessing directives.

6 months agoFix T62839 object scale changes normal map output in eevee
Clément Foucault [Fri, 22 Mar 2019 13:30:37 +0000 (14:30 +0100)]
Fix T62839 object scale changes normal map output in eevee

Was using the wrong vector length.

6 months agoFix/workaround some types of black dots in denoising with bright speculars.
Brecht Van Lommel [Fri, 22 Mar 2019 13:05:18 +0000 (14:05 +0100)]
Fix/workaround some types of black dots in denoising with bright speculars.

This is not a real solution and colored dots still remain, just rejecting some
pixels that seem clearly wrong.

6 months agoEEVEE: Memleak Volumetrics Rendering
Jeroen Bakker [Fri, 22 Mar 2019 13:19:54 +0000 (14:19 +0100)]
EEVEE: Memleak Volumetrics Rendering

Volumetric textures were not freed when doing final rendering.

Maniphest Tasks: T62356

Differential Revision:

6 months agoCleanup: minor UI code changes
Campbell Barton [Fri, 22 Mar 2019 13:18:16 +0000 (00:18 +1100)]
Cleanup: minor UI code changes

- Rename ui_but_find_active_in_region -> ui_region_find_active_but
- Remove ui_but_is_active (use ui_region_find_active_but instead)
- Re-order ui_but_* functions take the button as their first arg.

6 months agoFix checkboxes being right aligned when property split is disabled
Campbell Barton [Fri, 22 Mar 2019 13:02:07 +0000 (00:02 +1100)]
Fix checkboxes being right aligned when property split is disabled

6 months agoCleanup: typo in variable name
Campbell Barton [Fri, 22 Mar 2019 13:01:00 +0000 (00:01 +1100)]
Cleanup: typo in variable name

6 months agoUI: refactor queries into interface_query.c
Campbell Barton [Fri, 22 Mar 2019 07:51:04 +0000 (18:51 +1100)]
UI: refactor queries into interface_query.c

interface_handlers.c is quite large (over 10k lines),
move general button utility functions into a separate file.

6 months agoFix incorrect hard limits on motion blur shutter time.
Brecht Van Lommel [Fri, 22 Mar 2019 11:09:02 +0000 (12:09 +0100)]
Fix incorrect hard limits on motion blur shutter time.

6 months agoUI: Move Adjust Strength for Spacing next to the stroke Spacing control
William Reynish [Fri, 22 Mar 2019 10:27:56 +0000 (11:27 +0100)]
UI: Move Adjust Strength for Spacing next to the stroke Spacing control

These items are related.

6 months agoFix T62835: Color picker template value slider does not scale correctly with UI scale
William Reynish [Fri, 22 Mar 2019 09:59:12 +0000 (10:59 +0100)]
Fix T62835: Color picker template value slider does not scale correctly with UI scale

Missing multiplication with UI_DPI_FAC.

6 months agoImplement Stencil Mask Drawing for Texture Painting
Jeroen Bakker [Thu, 21 Mar 2019 15:44:01 +0000 (16:44 +0100)]
Implement Stencil Mask Drawing for Texture Painting

Stencil mask drawing was not implemented yet. This commit will implement this for texture painting.
It brings the state back to how it was for B279.

Reviewed By: fclem

Maniphest Tasks: T58727

Differential Revision:

6 months agoCleanup: move widget enum into source file
Campbell Barton [Fri, 22 Mar 2019 06:56:58 +0000 (17:56 +1100)]
Cleanup: move widget enum into source file

6 months agoFix T62814: Camera frame invisible with large near-clip value
Campbell Barton [Fri, 22 Mar 2019 06:27:39 +0000 (17:27 +1100)]
Fix T62814: Camera frame invisible with large near-clip value

6 months agoUI: use checkbox text for property split layout
Campbell Barton [Fri, 22 Mar 2019 04:29:25 +0000 (15:29 +1100)]
UI: use checkbox text for property split layout

Use right aligned checkboxes when 'use_property_split' is enabled
instead of a separate label.

6 months agoUI: support for showing checkboxes after text
Campbell Barton [Fri, 22 Mar 2019 03:28:06 +0000 (14:28 +1100)]
UI: support for showing checkboxes after text

Needed so the new layouts that show right aligned checkboxes can have
clickable text (as left aligned checkboxes do already).

6 months agoUI: refactor color picker flags out of buttons
Campbell Barton [Fri, 22 Mar 2019 03:01:11 +0000 (14:01 +1100)]
UI: refactor color picker flags out of buttons

These are specialized color picker options which don't need to be
stored in the button (frees of flags for buttons too).

6 months agoDRW: show clipping border for solid mode
Campbell Barton [Fri, 22 Mar 2019 02:23:07 +0000 (13:23 +1100)]
DRW: show clipping border for solid mode

Solid + xray is still not supported.

6 months agoCleanup: use 'use' as prefix for booleans
Campbell Barton [Thu, 21 Mar 2019 14:07:24 +0000 (01:07 +1100)]
Cleanup: use 'use' as prefix for booleans

6 months agoFix T57580: Update windows installer package to have the GPL3 as EULA.
Ray Molenkamp [Fri, 22 Mar 2019 03:25:20 +0000 (21:25 -0600)]
Fix T57580: Update windows installer package to have the GPL3 as EULA.

6 months agoEevee: Add small optimisation for Curve Mapping nodes
Clément Foucault [Fri, 22 Mar 2019 02:53:13 +0000 (03:53 +0100)]
Eevee: Add small optimisation for Curve Mapping nodes

This remove the RGB texture lookups if the curve is only used for "Luma"
correction and does not affect individual RGB channels.

6 months agoUI: Fix curve extention filling on curve widgets
Clément Foucault [Fri, 22 Mar 2019 02:48:41 +0000 (03:48 +0100)]
UI: Fix curve extention filling on curve widgets

6 months agoGPU Matrix: Increase precision of GPU_matrix_unproject.
mano-wii [Fri, 22 Mar 2019 01:23:09 +0000 (22:23 -0300)]
GPU Matrix: Increase precision of GPU_matrix_unproject.

6 months agoBLI Math: Add and use new `projmat_dimensions` utility.
mano-wii [Fri, 22 Mar 2019 01:20:13 +0000 (22:20 -0300)]
BLI Math: Add and use new `projmat_dimensions` utility.

6 months agoEevee: Cleanup
Clément Foucault [Thu, 21 Mar 2019 22:53:33 +0000 (23:53 +0100)]
Eevee: Cleanup

Remove unneeded normalization.

6 months agoEevee: Fix tangent vector not normalized before interpolation.
Clément Foucault [Thu, 21 Mar 2019 22:53:24 +0000 (23:53 +0100)]
Eevee: Fix tangent vector not normalized before interpolation.

6 months agoEevee: Normalize Tangents after transform to world space
Clément Foucault [Thu, 21 Mar 2019 22:52:44 +0000 (23:52 +0100)]
Eevee: Normalize Tangents after transform to world space

Fix T62621 without breaking everything else.

6 months agoRevert "Fix T62621 object scale changes tangent node output in Eevee"
Clément Foucault [Thu, 21 Mar 2019 22:30:24 +0000 (23:30 +0100)]
Revert "Fix T62621 object scale changes tangent node output in Eevee"

This reverts commit 86646dab7c455e739e5d648d0857bf30fd81afb9.

6 months agoFix T59890: regression of the precision when projecting the cursor.
mano-wii [Thu, 21 Mar 2019 20:02:41 +0000 (17:02 -0300)]
Fix T59890: regression of the precision when projecting the cursor.

Basically the framebuffer size was different from the glViewport size.
This made the depth read in glReadPixel not corresponding to the center of the pixel.

Another thing that reduced precision compared to blender 2.79 is the `GPU_matrix_unproject` that now computes using `float`s instead of `double`s.
But this may be for another commit.

6 months agoUI: Use better flow layout
William Reynish [Thu, 21 Mar 2019 17:25:01 +0000 (18:25 +0100)]
UI: Use better flow layout

Flow layout needs columns defined to work properly

7 months agoUI: Spelling: fix wrong apostrophe
William Reynish [Thu, 21 Mar 2019 15:36:29 +0000 (16:36 +0100)]
UI: Spelling: fix wrong apostrophe

7 months agoUI: Fix wrong spelling
William Reynish [Thu, 21 Mar 2019 15:31:46 +0000 (16:31 +0100)]
UI: Fix wrong spelling

Effect vs Affect

7 months agoUI: make UI label clearer for Affect Rotation
William Reynish [Thu, 21 Mar 2019 15:30:55 +0000 (16:30 +0100)]
UI: make UI label clearer for Affect Rotation

7 months agoUI: align header to the left
William Reynish [Thu, 21 Mar 2019 15:30:09 +0000 (16:30 +0100)]
UI: align header to the left

Since it's a header, this makes the hierarchy clearer