5 months agoGPencil: Only brushes with pinned materials have materials
Antonioya [Mon, 25 Mar 2019 16:02:42 +0000 (17:02 +0100)]
GPencil: Only brushes with pinned materials have materials

Using GP_BRUSH_MATERIAL_PINNED to switch between active material and brush material, instead of updating all brushes on active material changes. This will allow brushes to have no material and therefore to not inflate the user count.

This fix T62465.

Patch contributed by @matc
Reviewers: @brecht @antoniov @billreynish @mendio

5 months agoFix T62776: Face maps are initialized incorrectly
Jacques Lucke [Mon, 25 Mar 2019 15:32:01 +0000 (16:32 +0100)]
Fix T62776: Face maps are initialized incorrectly

Reviewers: brecht

Differential Revision:

5 months agoFix T62536: incorrect context when selecting particles
Jacques Lucke [Mon, 25 Mar 2019 14:54:00 +0000 (15:54 +0100)]
Fix T62536: incorrect context when selecting particles

Reviewers: brecht

Differential Revision:

5 months agoFix T62865: Make Single User after Objects to Scene must be done twice.
Bastien Montagne [Mon, 25 Mar 2019 14:22:35 +0000 (15:22 +0100)]
Fix T62865: Make Single User after Objects to Scene must be done twice.

Selected status was not properly moved from new object to new created base.
This prevented next steps (making obdata, materials etc. local) to ever

5 months agoFix T61577: collapse nodes hide arrow hit zone overlaps with node sockets.
Brecht Van Lommel [Mon, 25 Mar 2019 12:59:11 +0000 (13:59 +0100)]
Fix T61577: collapse nodes hide arrow hit zone overlaps with node sockets.

Patch by EitanSomething.

Differential Revision:

5 months agoFix T62891: particle even distribution is not even.
Brecht Van Lommel [Mon, 25 Mar 2019 12:55:03 +0000 (13:55 +0100)]
Fix T62891: particle even distribution is not even.

CD_ORCO coordinates are stored normalized by convention, this code path did
not store them correctly.

5 months agoUI: Add Copy/Paste to top level Outliner context menus
William Reynish [Mon, 25 Mar 2019 12:40:55 +0000 (13:40 +0100)]
UI: Add Copy/Paste to top level Outliner context menus

5 months agoKeymap: Add support for the Cmd key on macOS for copy/paste in the Outliner.
William Reynish [Mon, 25 Mar 2019 12:30:21 +0000 (13:30 +0100)]
Keymap: Add support for the Cmd key on macOS for copy/paste in the Outliner.

Consistent with other areas.

5 months agoMerge branch 'blender2.7'
Sergey Sharybin [Mon, 25 Mar 2019 10:23:00 +0000 (11:23 +0100)]
Merge branch 'blender2.7'

5 months agoCleanup: Spelling in comment
Sergey Sharybin [Mon, 25 Mar 2019 10:02:06 +0000 (11:02 +0100)]
Cleanup: Spelling in comment

5 months agoChange remaining FTP server URIs to HTTP(s)
Stephen Hassard [Mon, 25 Mar 2019 10:14:07 +0000 (11:14 +0100)]
Change remaining FTP server URIs to HTTP(s)

Most of the source tarballs are retrieved via http, but a few remain
that are still downloaded via ftp. This causes some pain with corporate
firewalls, so moving the last two URIs to http helps ease the build process.

Reviewers: sergey

Differential Revision:

5 months agoMerge branch 'blender2.7'
Bastien Montagne [Mon, 25 Mar 2019 10:05:03 +0000 (11:05 +0100)]
Merge branch 'blender2.7'

5 months agoInclude blosc, embree and opencollada into BUILD_NOTES.txt file.
Bastien Montagne [Mon, 25 Mar 2019 10:03:52 +0000 (11:03 +0100)]
Include blosc, embree and opencollada into BUILD_NOTES.txt file.

For custom path selected during '' using '--source'/'--install', paths for blosc, embree and opencollada are not printed/inclued into BUILD_NOTES.txt file.
As '/opt/lib/<package>' paths are hardcoded into CMakes's Find* modules, this error is not noticeable, but for custom paths it is.
This patch includes those fixes/prints for those packages.

Reviewers: mont29

Reviewed By: mont29

Differential Revision:

5 months agoFix T62912: Blender 2.7 keymap missing ctrl+tab select mode switching.
Brecht Van Lommel [Mon, 25 Mar 2019 09:39:59 +0000 (10:39 +0100)]
Fix T62912: Blender 2.7 keymap missing ctrl+tab select mode switching.

5 months agoMerge branch 'blender2.7'
Bastien Montagne [Mon, 25 Mar 2019 09:46:20 +0000 (10:46 +0100)]
Merge branch 'blender2.7'

5 months agoFix T62175: Crash on Undo.
Bastien Montagne [Mon, 4 Mar 2019 15:44:33 +0000 (16:44 +0100)]
Fix T62175: Crash on Undo.

Again nodetree broken code... as usual...

5 months agoRNA: add UILayout.prop_with_menu function
Campbell Barton [Mon, 25 Mar 2019 09:31:06 +0000 (20:31 +1100)]
RNA: add UILayout.prop_with_menu function

Matches prop_with_popover, supporting menu types,
useful if we want to control behavior of enum switching.

5 months agoRNA: rename prop_popover_enum to prop_with_popover
Campbell Barton [Mon, 25 Mar 2019 09:10:32 +0000 (20:10 +1100)]
RNA: rename prop_popover_enum to prop_with_popover

A version for menu's is going to be added next and we already have

This name indicates the popover is added behavior instead of a
different kind of widget.

5 months agoCleanup: UI messages of copy/paste in 3DView.
Bastien Montagne [Mon, 25 Mar 2019 09:19:56 +0000 (10:19 +0100)]
Cleanup: UI messages of copy/paste in 3DView.

Remove references to buffer or temp file, some other minor edits.

5 months agoAdd copy/paste of any IDs in Outliner.
Bastien Montagne [Thu, 21 Mar 2019 13:59:25 +0000 (14:59 +0100)]
Add copy/paste of any IDs in Outliner.

This adds entries to copy/paste (selected) IDs in the Outliner, as well
as usual ctrl-C/ctrl-V shortcuts.

Note that the clipboard is shared with other IDs copying (currently, the
one for objects in 3DView).

Reviewers: brecht, dfelinto, billreynish, pablovazquez

Differential Revision:

5 months agoCopy/Paste: refactor to be able to paste any kind of IDs, by type.
Bastien Montagne [Mon, 25 Mar 2019 08:55:36 +0000 (09:55 +0100)]
Copy/Paste: refactor to be able to paste any kind of IDs, by type.

This commit does not add anything new from user perspective, but make it
possible to paste any kind of IDs, not only objects/collections.

Will be used by new copy/paste in the outliner in next commit.

5 months agoUI: replace popovers with prop_popover_enum
Campbell Barton [Mon, 25 Mar 2019 08:30:59 +0000 (19:30 +1100)]
UI: replace popovers with prop_popover_enum

5 months agoUI: add icon_only option to prop_popover_enum
Campbell Barton [Mon, 25 Mar 2019 08:21:55 +0000 (19:21 +1100)]
UI: add icon_only option to prop_popover_enum

5 months agoError in last commit
Campbell Barton [Mon, 25 Mar 2019 08:08:02 +0000 (19:08 +1100)]
Error in last commit

5 months agoUI: add UILayout.prop_popover_enum function
Campbell Barton [Mon, 25 Mar 2019 07:55:38 +0000 (18:55 +1100)]
UI: add UILayout.prop_popover_enum function

Support for RNA enum buttons that activate popovers when clicked.

This means we get useful tooltips, shortcuts and Ctrl-Wheel cycling
over enum items.

It also avoids inconvenient & slow access of enum values currently done
via RNA type lookups on the type to get the name & icon to use for a
regular popover button.

Resolves T57738

5 months agoCleanup: simplify toggle button logic
Campbell Barton [Mon, 25 Mar 2019 05:17:39 +0000 (16:17 +1100)]
Cleanup: simplify toggle button logic

5 months agoGizmo: use fill select for scale/transform center
Campbell Barton [Mon, 25 Mar 2019 04:41:24 +0000 (15:41 +1100)]
Gizmo: use fill select for scale/transform center

Resolves T58072

5 months agoGizmo: add option to move & dial gizmos to select as filled
Campbell Barton [Mon, 25 Mar 2019 04:40:23 +0000 (15:40 +1100)]
Gizmo: add option to move & dial gizmos to select as filled

Draw as an outline while using solid selection.

5 months agoUI: Material slot selector for the shader editor
Campbell Barton [Mon, 25 Mar 2019 03:44:45 +0000 (14:44 +1100)]
UI: Material slot selector for the shader editor

D4583 by @HooglyBoogly

5 months agoRNA: error on register when classes use invalid identifiers
Campbell Barton [Mon, 25 Mar 2019 03:39:55 +0000 (14:39 +1100)]
RNA: error on register when classes use invalid identifiers

Ensure conventions are met since we're in beta and all instances should
be updated before release.

5 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

5 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

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

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

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

5 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

5 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

5 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.

5 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

5 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:

5 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.

5 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

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

5 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

5 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.

5 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

5 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.

5 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

5 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()

5 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.

5 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.

5 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

5 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.

5 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.

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

5 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)

5 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

5 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.

5 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.

5 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

5 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

5 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

5 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

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

5 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.

5 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).

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

5 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.

5 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.

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


5 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.

5 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.

5 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.

5 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.

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

5 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.

5 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.

5 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.

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

5 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.

5 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:

5 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.

5 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.

5 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.

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

5 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.

5 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.

5 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.

5 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:

5 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:

5 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:

5 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

5 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

5 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:

5 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.

5 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.

5 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.

5 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.

5 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.

5 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: