blender.git
3 months agobuild_environment/Windows: Copy llvm debug headers.
Ray Molenkamp [Fri, 8 Mar 2019 13:59:54 +0000 (06:59 -0700)]
build_environment/Windows: Copy llvm debug headers.

llvm generates some header files at build time that differ between
debug/release causing linker errors when you used the release headers
for a debug build.

3 months agoCodestyle: comments
Jeroen Bakker [Fri, 8 Mar 2019 07:56:16 +0000 (08:56 +0100)]
Codestyle: comments

3 months agoCleanup: remove debug prints.
Brecht Van Lommel [Fri, 8 Mar 2019 14:12:36 +0000 (15:12 +0100)]
Cleanup: remove debug prints.

3 months agoFix T60900, T61111, T61963: node values stuck after clearing keyframes.
Brecht Van Lommel [Fri, 8 Mar 2019 13:59:33 +0000 (14:59 +0100)]
Fix T60900, T61111, T61963: node values stuck after clearing keyframes.

This removes special dependency graph code that was intended to avoid GPU
shader recompiles by preserving the node tree and GPU material in specific
cases. This is no longer needed now that we have a general shader pass
cache that compares the generated shader code. The GPU material is already
being freed in material and world eval as well, so there's no point.

Note also that GPU materials are now safe to free from threads, actual
OpenGL buffer freeing happens delayed.

3 months agoTools: Re-order Weight Paint toolbar
William Reynish [Fri, 8 Mar 2019 14:07:18 +0000 (15:07 +0100)]
Tools: Re-order Weight Paint toolbar

-Group gradient with the other paint tools
-Nest the two Sample tools together
-Keep painting tools first, secondary tools after
-Make sure toolbar doesn't jump when selection is enabled

3 months agoFix T62327: Multires with Particles: Undo not working
Sergey Sharybin [Fri, 8 Mar 2019 13:37:46 +0000 (14:37 +0100)]
Fix T62327: Multires with Particles: Undo not working

Modifier stack was forced to be re-evaluated when it was not
supposed to. Should also improve sculpt performance.

3 months agoFix T59304: boolean modifier does not preserve UV textures.
Brecht Van Lommel [Fri, 8 Mar 2019 13:09:54 +0000 (14:09 +0100)]
Fix T59304: boolean modifier does not preserve UV textures.

In the old derivedmesh function it was merging customdata layers, added
that back for mesh conversion too.

3 months agoFix T62355: Running blender 2.80 headless broken in recent builds
Clément Foucault [Fri, 8 Mar 2019 13:31:58 +0000 (14:31 +0100)]
Fix T62355: Running blender 2.80 headless broken in recent builds

3 months agoBevel: revert idea of always starting in offset mode.
Howard Trickey [Fri, 8 Mar 2019 12:42:16 +0000 (07:42 -0500)]
Bevel: revert idea of always starting in offset mode.

Commit 208fafb to fix bevel tool units included a change to always
start modal in offset mode. This was may or may not be right but
broke a way in which users could set percent mode and then subsequently
start a modal that bevels in that mode. So going back to old way.

3 months agoFix crash reloading images used in compositor node
Sybren A. Stüvel [Fri, 8 Mar 2019 12:40:32 +0000 (13:40 +0100)]
Fix crash reloading images used in compositor node

Similar to what Brecht committed in
38f0d5f75af7d2f30156f4008dc5bc8d8394fbf3.

3 months agoIcons: Desktop icons update for Mac
William Reynish [Fri, 8 Mar 2019 12:23:59 +0000 (13:23 +0100)]
Icons: Desktop icons update for Mac

Previous desktop icon was clipped on one side, and file icon used cropped icon.

3 months agoIcons: Add GPencil Extrude and Radius icons (take 2)
William Reynish [Fri, 8 Mar 2019 12:11:23 +0000 (13:11 +0100)]
Icons: Add GPencil Extrude and Radius icons (take 2)

Also, revision of icons for paint modes, based on suggestions by Aslam Cader.

Previous commit accidentally included an extra file.

3 months agoRevert "Icons: Add GPencil Extrude and Radius icons"
William Reynish [Fri, 8 Mar 2019 12:07:20 +0000 (13:07 +0100)]
Revert "Icons: Add GPencil Extrude and Radius icons"

This reverts commit a44d75a9646cc37b3b6b10decd22db90247795d2.

3 months agoIcons: Add GPencil Extrude and Radius icons
William Reynish [Fri, 8 Mar 2019 12:02:46 +0000 (13:02 +0100)]
Icons: Add GPencil Extrude and Radius icons

Also, revision of icons for paint modes, based on suggestions by Aslam Cader.

3 months agoFix T62317: missing Cycles viewport update when changing active camera.
Brecht Van Lommel [Fri, 8 Mar 2019 11:11:42 +0000 (12:11 +0100)]
Fix T62317: missing Cycles viewport update when changing active camera.

3 months agoFix T60978: crash toggling window fullscreen on macOS.
Brecht Van Lommel [Fri, 8 Mar 2019 01:17:31 +0000 (02:17 +0100)]
Fix T60978: crash toggling window fullscreen on macOS.

GHOST event handling does not need a window in the context, and restoring
it to the previous value is problematic if the window was deleted in the
meantime.

3 months agoCleanup: remove unused test break code for handling cancels.
Brecht Van Lommel [Fri, 8 Mar 2019 01:15:24 +0000 (02:15 +0100)]
Cleanup: remove unused test break code for handling cancels.

3 months agoGPencil: Fix field type error in initialization
Antonioya [Fri, 8 Mar 2019 07:49:25 +0000 (08:49 +0100)]
GPencil: Fix field type error in initialization

3 months agoCleanup: spelling
Campbell Barton [Fri, 8 Mar 2019 06:48:49 +0000 (17:48 +1100)]
Cleanup: spelling

3 months agoCleanup: style
Campbell Barton [Fri, 8 Mar 2019 06:16:30 +0000 (17:16 +1100)]
Cleanup: style

3 months agoCleanup: use doxy sections for node select API
Campbell Barton [Fri, 8 Mar 2019 05:59:48 +0000 (16:59 +1100)]
Cleanup: use doxy sections for node select API

3 months agoCleanup: use doxy sections for mask select API
Campbell Barton [Fri, 8 Mar 2019 05:22:38 +0000 (16:22 +1100)]
Cleanup: use doxy sections for mask select API

3 months agoCleanup: use doxy sections for object select API
Campbell Barton [Fri, 8 Mar 2019 04:56:55 +0000 (15:56 +1100)]
Cleanup: use doxy sections for object select API

3 months agoCleanup: make modal event double click handling more straightforward
Campbell Barton [Fri, 8 Mar 2019 03:16:32 +0000 (14:16 +1100)]
Cleanup: make modal event double click handling more straightforward

3 months agoWM: fix double click handling in modal keymaps
Campbell Barton [Fri, 8 Mar 2019 02:35:48 +0000 (13:35 +1100)]
WM: fix double click handling in modal keymaps

Model keymaps wasn't matching double-click events with press
as is done in regular keymap handling.

3 months agoFix T62095: OpenGL render camera image alignment
Campbell Barton [Fri, 8 Mar 2019 01:37:22 +0000 (12:37 +1100)]
Fix T62095: OpenGL render camera image alignment

3 months agoFix: Info window select all toggle broken
Campbell Barton [Fri, 8 Mar 2019 00:55:52 +0000 (11:55 +1100)]
Fix: Info window select all toggle broken

D4477 by @Poulpator

3 months agoCleanup: use macro for listbase collection begin functions
Campbell Barton [Fri, 8 Mar 2019 00:40:37 +0000 (11:40 +1100)]
Cleanup: use macro for listbase collection begin functions

3 months agoRNA: rename bpy.data.grease_pencil to grease_pencils
Campbell Barton [Thu, 7 Mar 2019 22:55:40 +0000 (09:55 +1100)]
RNA: rename bpy.data.grease_pencil to grease_pencils

All other sequences are plural here.

3 months agoCleanup: use plural names for Main lists
Campbell Barton [Thu, 7 Mar 2019 22:29:17 +0000 (09:29 +1100)]
Cleanup: use plural names for Main lists

Convention was not to but after discussion on 918941483f7e we agree its
best to change the convention.

Names now mostly follow RNA.

Some exceptions:

- Use 'nodetrees' instead of 'nodegroups'
  since the struct is called NodeTree.
- Use 'gpencils' instead of 'grease_pencil'
  since 'gpencil' is a common abbreviation in the C code.

Other exceptions:

- Leave 'wm' as it's a list of one.
- Leave 'ipo' as is for versioning.

3 months agofix D4476 collada exporter: in Blender 2.80 we no longer have a specular color.
Gaia Clary [Thu, 7 Mar 2019 22:26:10 +0000 (23:26 +0100)]
fix D4476 collada exporter: in Blender 2.80 we no longer have a specular color.

Specularity is not a color but a factor.
I have replaced the original export code with
a correct export of the Specularity factor.

3 months agoProperties Editor: Grease Pencil and pinning fixes
Dalai Felinto [Thu, 7 Mar 2019 14:55:03 +0000 (14:55 +0000)]
Properties Editor: Grease Pencil and pinning fixes

The UI was trying to use screen_context.c for its poll and draw
functions. So the active object and active object data and active layer
was used in the UI, instead of the context one.

Besides, for the material, the wrong context path was used altogether
when the active object was a greasepencil.

This would lead to all sort of pinning problems:

* A Mesh panel is pinned, but the active object is a grease pencil, the
grease pencil panels would show.

* If a Grease Pencil (data) panel is pinned, but the active object is not
the one pinned, nothing would show.

* Material panels and pinning were totally broken, showing the material
context for pinned mesh data panels even.

I also sanitized the name of the panels, their inheritance and poll
functions.

Reviewers: antoniov, brecht

Subscribers: billrey

Differential Revision: https://developer.blender.org/D4470

3 months agoGPencil: Update stroke when UV factor is changed
Antonioya [Thu, 7 Mar 2019 19:04:00 +0000 (20:04 +0100)]
GPencil: Update stroke when UV factor is changed

The stroke was updated only after doing a refresh operation.

3 months agoFix T62319: changing keyframe properties does not trigger update
Jacques Lucke [Thu, 7 Mar 2019 18:56:13 +0000 (19:56 +0100)]
Fix T62319: changing keyframe properties does not trigger update

Reviewers: brecht

Differential Revision: https://developer.blender.org/D4473

3 months agoFix T62328, T62209: revert recent fix for texture slots updates (T60366).
Brecht Van Lommel [Thu, 7 Mar 2019 18:39:50 +0000 (19:39 +0100)]
Fix T62328, T62209: revert recent fix for texture slots updates (T60366).

This causes other issues, revert for now until a better fix is found.
Reverts commit da1323d1c95095feff98e8aa054d73fd323c363d.

3 months agoCleanup: remove unused parameter.
Brecht Van Lommel [Thu, 7 Mar 2019 11:35:37 +0000 (12:35 +0100)]
Cleanup: remove unused parameter.

3 months agoCleanup: fix compiler warnings.
Brecht Van Lommel [Thu, 7 Mar 2019 11:47:42 +0000 (12:47 +0100)]
Cleanup: fix compiler warnings.

3 months agoFix T62305: Unconnected group vector inputs are mapped incorrectly
Jacques Lucke [Thu, 7 Mar 2019 17:03:20 +0000 (18:03 +0100)]
Fix T62305: Unconnected group vector inputs are mapped incorrectly

The issue was that `bNodeSocketValueVector` and `bNodeSocketValueRGBA`
don't store the value at the same location in the struct.

I kept the cases for `SOCK_VECTOR` and `SOCK_RGBA` completely separate
for now, because they only share code by coincidence and not because
they are actually the same. Eventually there could be a "Vector Input"
node similar to the "RGB" node.

Reviewers: fclem

Differential Revision: https://developer.blender.org/D4472

3 months agoFix T62316: Grease Pencil objects display in front of the grid lines
Antonioya [Thu, 7 Mar 2019 16:51:59 +0000 (17:51 +0100)]
Fix T62316: Grease Pencil objects display in front of the grid lines

The fix was move the grease pencil engine before overlays

This also fix the origin not visible bug T62100

There is a limitation of this fix, but we cannot fix both problems. If you have object behind a transparent graese pencil objects, this objects will not be visible.

Thanks @fclem for his advices to fix this bug.

3 months agoCleanup: remove redundant check
Campbell Barton [Thu, 7 Mar 2019 15:47:00 +0000 (02:47 +1100)]
Cleanup: remove redundant check

3 months agoCleanp: use static sets
Campbell Barton [Thu, 7 Mar 2019 15:43:33 +0000 (02:43 +1100)]
Cleanp: use static sets

3 months agoFix gizmos not responding to theme color updates
Campbell Barton [Thu, 7 Mar 2019 15:06:22 +0000 (02:06 +1100)]
Fix gizmos not responding to theme color updates

Re-create gizmos when changing theme colors, since
theme colors don't change often this allows gizmos to setup their
colors on initialization.

3 months agoModifiers Evaluation: generate loop normals when requested.
Bastien Montagne [Thu, 7 Mar 2019 15:23:58 +0000 (16:23 +0100)]
Modifiers Evaluation: generate loop normals when requested.

This also fixes T62228.

However, datatransfer code is still doing bad things with its source,
still working on proper changes here.

3 months agoMultires: Fix crash on exit when sculpting with modifiers
Sergey Sharybin [Thu, 7 Mar 2019 15:07:34 +0000 (16:07 +0100)]
Multires: Fix crash on exit when sculpting with modifiers

The SubdivCCG structure was re-allocated, but the cached one in
the sculpt session was still pointing to an original one.

This is rather a workaround, but is least evil from what i can
currently think. Remember something similar was also required in
2.7 as well.

Definitely need to revision this change.

3 months agoSculpt; Fix memory leak on redraw normals update
Sergey Sharybin [Thu, 7 Mar 2019 14:40:04 +0000 (15:40 +0100)]
Sculpt; Fix memory leak on redraw normals update

3 months agoFix T62271: Particles with multires crash on sculpt
Sergey Sharybin [Thu, 7 Mar 2019 14:27:31 +0000 (15:27 +0100)]
Fix T62271: Particles with multires crash on sculpt

In fact, any modifier on top of multires would lead to crash.
Was missing pointer update.

Basically, bring the control flow closer to 2.7.

3 months agoFix T61671: Too strong too dark text shadow in Blender Light theme
Jacques Lucke [Thu, 7 Mar 2019 14:55:11 +0000 (15:55 +0100)]
Fix T61671: Too strong too dark text shadow in Blender Light theme

Reviewers: pablovazquez

Differential Revision: https://developer.blender.org/D4468

3 months agoFix T61761: Randomize Transform is an object mode operator
Jacques Lucke [Thu, 7 Mar 2019 14:54:08 +0000 (15:54 +0100)]
Fix T61761: Randomize Transform is an object mode operator

Reviewers: brecht, billreynish

Differential Revision: https://developer.blender.org/D4467

3 months agoUI: Change UI name of Draw Labels to Include Labels
William Reynish [Thu, 7 Mar 2019 14:07:16 +0000 (15:07 +0100)]
UI: Change UI name of Draw Labels to Include Labels

For compliance with recent naming conventions.

3 months agoUI: Use sub-panels inside Grease Pencil Onion Skinning panel
William Reynish [Thu, 7 Mar 2019 13:56:31 +0000 (14:56 +0100)]
UI: Use sub-panels inside Grease Pencil Onion Skinning panel

Reviewers: Antonio Vazquez (antoniov)

Differential Revision: D4465

3 months agoImage: use sample size instead of radius
Campbell Barton [Thu, 7 Mar 2019 13:36:48 +0000 (00:36 +1100)]
Image: use sample size instead of radius

It wasn't possible to sample a 2x2 region.

3 months agoCleanup: redundant select flush
Campbell Barton [Thu, 7 Mar 2019 13:17:52 +0000 (00:17 +1100)]
Cleanup: redundant select flush

3 months agoTool System: use set/add/subtract for all lasso select operators
Campbell Barton [Thu, 7 Mar 2019 12:41:32 +0000 (23:41 +1100)]
Tool System: use set/add/subtract for all lasso select operators

3 months agoFix T62289: crash with texture paint slots and missing node group datablock.
Brecht Van Lommel [Thu, 7 Mar 2019 11:22:38 +0000 (12:22 +0100)]
Fix T62289: crash with texture paint slots and missing node group datablock.

3 months agoMultires: Fiux memory leak
Sergey Sharybin [Thu, 7 Mar 2019 11:16:25 +0000 (12:16 +0100)]
Multires: Fiux memory leak

The work data for materials flags was never freed.

3 months agoRefactor building the draw string for floats and ints
Jacques Lucke [Thu, 7 Mar 2019 11:01:32 +0000 (12:01 +0100)]
Refactor building the draw string for floats and ints

Differential Revision: https://developer.blender.org/D4466

3 months agoFix T62280: driver functions added in load_post broken after recent changes.
Brecht Van Lommel [Thu, 7 Mar 2019 10:40:02 +0000 (11:40 +0100)]
Fix T62280: driver functions added in load_post broken after recent changes.

Evaluate the dependency graph a bit later still. This kind of worked before
because it was using the drive namespace from the previously loaded .blend
file but that's of course wrong.

3 months agoI18n: Enable Thai language.
Bastien Montagne [Thu, 7 Mar 2019 10:45:48 +0000 (11:45 +0100)]
I18n: Enable Thai language.

3 months agoRefactor CDData masks, to have one mask per mesh elem type.
Bastien Montagne [Thu, 7 Mar 2019 10:13:40 +0000 (11:13 +0100)]
Refactor CDData masks, to have one mask per mesh elem type.

We already have different storages for cddata of verts, edges etc.,
'simply' do the same for the mask flags we use all around Blender code
to request some data, or limit some operation to some layers, etc.

Reason we need this is that some cddata types (like Normals) are
actually shared between verts/polys/loops, and we don’t want to generate
clnors everytime we request vnors!

As a side note, this also does final fix to T59338, which was the
trigger for this patch (need to request computed loop normals for
another mesh than evaluated one).

Reviewers: brecht, campbellbarton, sergey

Differential Revision: https://developer.blender.org/D4407

3 months agoTools: Add Radius tool to Grease Pencil toolbar
William Reynish [Thu, 7 Mar 2019 10:12:30 +0000 (11:12 +0100)]
Tools: Add Radius tool to Grease Pencil toolbar

Icon pending.

3 months agoCleanup: de-duplicate selection keymap templates
Campbell Barton [Thu, 7 Mar 2019 09:53:53 +0000 (20:53 +1100)]
Cleanup: de-duplicate selection keymap templates

3 months agoTool System: use set/add/subtract for all box select operators
Campbell Barton [Thu, 7 Mar 2019 09:33:57 +0000 (20:33 +1100)]
Tool System: use set/add/subtract for all box select operators

3 months agoUI: Re-order toolbar in Curve Edit mode
William Reynish [Thu, 7 Mar 2019 08:58:56 +0000 (09:58 +0100)]
UI: Re-order toolbar in Curve Edit mode

Makes it more consistent with Mesh Edit mode, and uses same logic for grouping.

3 months agoTool System: add radius option to the image sample tool
Campbell Barton [Thu, 7 Mar 2019 07:02:52 +0000 (18:02 +1100)]
Tool System: add radius option to the image sample tool

3 months agoCleanup: use macros to avoid repetition
Campbell Barton [Thu, 7 Mar 2019 03:18:13 +0000 (14:18 +1100)]
Cleanup: use macros to avoid repetition

3 months agoTool System: add annotation tool to image editor
Campbell Barton [Thu, 7 Mar 2019 03:03:59 +0000 (14:03 +1100)]
Tool System: add annotation tool to image editor

Also add place-holder measure tool.

3 months agoFix crash transforming image cursor outside of edit-mode
Campbell Barton [Thu, 7 Mar 2019 02:48:29 +0000 (13:48 +1100)]
Fix crash transforming image cursor outside of edit-mode

3 months agoFix T62066: Seg Fault Baking Light Cache with "--background" Flag
Clément Foucault [Thu, 7 Mar 2019 02:51:00 +0000 (03:51 +0100)]
Fix T62066: Seg Fault Baking Light Cache with "--background" Flag

3 months agoFix T59877: EEVEE: Object Info node random value does not work with Duplis
Clément Foucault [Thu, 7 Mar 2019 02:33:24 +0000 (03:33 +0100)]
Fix T59877: EEVEE: Object Info node random value does not work with Duplis

3 months agoDRW: Fix hair OSX workaround having a cap limit
Clément Foucault [Thu, 7 Mar 2019 02:22:43 +0000 (03:22 +0100)]
DRW: Fix hair OSX workaround having a cap limit

This is still is a dirty workaround.

Note that we are drawing the whole sets of point multiple times. While this
is ineficient, the main bottleneck is CPU transformation.

3 months agoCleanup: use API to reset cursor rotation
Campbell Barton [Thu, 7 Mar 2019 01:58:11 +0000 (12:58 +1100)]
Cleanup: use API to reset cursor rotation

3 months agoCleanup: class name
Campbell Barton [Thu, 7 Mar 2019 01:53:45 +0000 (12:53 +1100)]
Cleanup: class name

3 months agoUI: rename "Camera Lock" to "View Lock"
Campbell Barton [Thu, 7 Mar 2019 01:46:17 +0000 (12:46 +1100)]
UI: rename "Camera Lock" to "View Lock"

Only 1 of the options in this panel apply to cameras.

3 months ago3D View: view selected/all use empty object center
Campbell Barton [Thu, 7 Mar 2019 01:37:47 +0000 (12:37 +1100)]
3D View: view selected/all use empty object center

Empty object skipping now only skips the bounds, since you can select
the empty by it's center point and want to navigate to it.

Also share object skipping check between view all/selected.

3 months agoFix "View All" potential min/max use when all objects were skipped
Campbell Barton [Thu, 7 Mar 2019 01:31:36 +0000 (12:31 +1100)]
Fix "View All" potential min/max use when all objects were skipped

3 months agoFix 3D "View Selected" skip camera option
Campbell Barton [Thu, 7 Mar 2019 01:22:56 +0000 (12:22 +1100)]
Fix 3D "View Selected" skip camera option

3 months ago3D View: skip hidden image empties when viewing all
Campbell Barton [Thu, 7 Mar 2019 00:39:16 +0000 (11:39 +1100)]
3D View: skip hidden image empties when viewing all

D4463 by @pablodp606

3 months agoDRW: show image empty frame when the 'side' is hidden
Campbell Barton [Thu, 7 Mar 2019 00:26:28 +0000 (11:26 +1100)]
DRW: show image empty frame when the 'side' is hidden

This behavior matches back-face culled mesh objects,
where the wire outline doesn't depend on the viewing angle.

Applying this before empty visibility check for view framing,
since it's strange if viewing all gives different results
depending on back-face culling.

3 months agoFix T62259: RGB Curves behave differently in Cycles and Eevee
Clément Foucault [Wed, 6 Mar 2019 22:53:35 +0000 (23:53 +0100)]
Fix T62259: RGB Curves behave differently in Cycles and Eevee

This was due to curve being not extrapolated correctly. Also curvemap range
was not taken into account.

3 months agoUI: correct label
Campbell Barton [Wed, 6 Mar 2019 23:12:13 +0000 (10:12 +1100)]
UI: correct label

3 months agoCleanup: pylint warnings
Campbell Barton [Wed, 6 Mar 2019 14:35:58 +0000 (01:35 +1100)]
Cleanup: pylint warnings

3 months agoUnits: Fix unreported. Audio volume is not a percentage
William Reynish [Wed, 6 Mar 2019 22:19:48 +0000 (23:19 +0100)]
Units: Fix unreported. Audio volume is not a percentage

3 months agoGPencil: Fix unreported segment fault drawing with dots
Antonioya [Wed, 6 Mar 2019 18:31:01 +0000 (19:31 +0100)]
GPencil: Fix unreported segment fault drawing with dots

3 months agoGPencil: Improve quality to stroke encaps for textured materials
Antonioya [Wed, 6 Mar 2019 16:56:55 +0000 (17:56 +0100)]
GPencil: Improve quality to stroke encaps for textured materials

Before, the caps were not generated for texture materials, now, the endcaps are generated and  adapt the texture.

3 months agoMinor UI fix: Disable stereo volume alpha when stereo volume is disabled
Dalai Felinto [Wed, 6 Mar 2019 16:54:51 +0000 (13:54 -0300)]
Minor UI fix: Disable stereo volume alpha when stereo volume is disabled

3 months agoFix build for Linux systems
Dalai Felinto [Wed, 6 Mar 2019 16:51:27 +0000 (13:51 -0300)]
Fix build for Linux systems

Error introduced on rBff8a2df829fcce8780d26a18f3070ab8e850b2e6.
The folders with binary icons were deleted.

3 months agoFix stereoscopy convergence plane placement
Dalai Felinto [Wed, 6 Mar 2019 15:39:07 +0000 (12:39 -0300)]
Fix stereoscopy convergence plane placement

Note this was broken even in 2.7x.

We had a different logic for the plane wire, as for the plane itself.
And they were both wrong when changing the camera shift or the stereo
pivot.

Both of their logic is now unified and correct.

Also I had to create a new gpu batch for the quad wires, since there is
no state that allows me to filter out the geometry, and the square gpu
batch is quite different than the quad one (2d x 3d and orientation).

3 months agoFix stereo plane pass and state
Dalai Felinto [Wed, 6 Mar 2019 15:53:58 +0000 (12:53 -0300)]
Fix stereo plane pass and state

This was introduced on the MSAA fix for transparent passes (61039bf71376).

3 months agoLinux/X11: update icon in taskbar to match new icons.
Brecht Van Lommel [Wed, 6 Mar 2019 15:32:15 +0000 (16:32 +0100)]
Linux/X11: update icon in taskbar to match new icons.

Adds a few different resolutions for better quality when scaling up/down.

3 months agoLinux/freedesktop: update Blender app icon based on new guidelines.
Jakub Steiner [Fri, 1 Mar 2019 13:42:12 +0000 (14:42 +0100)]
Linux/freedesktop: update Blender app icon based on new guidelines.

* Use only scalable SVG icon.
* Add symbolic variant for accessibility.
* Remove shadow, this is added automatically.

For more information see:
https://gitlab.gnome.org/GNOME/Initiatives/issues/2
https://developer.gnome.org/hig/stable/icon-design.html.en

3 months agoUI: Name changes
William Reynish [Wed, 6 Mar 2019 15:43:37 +0000 (16:43 +0100)]
UI: Name changes

In accordance with T56648.
- Render Border -> Render Region
- Clipping Border -> Clipping Region
- Instancing 'Scale' -> 'Scale to Face Size'
- Instancing 'Rotation' -> 'Align to Vertex Normal'

Python API is left as-is, for now.

DIfferential revision: D4435

3 months agoFix T62220: Solid shading mode - Shadow glitch
Clément Foucault [Wed, 6 Mar 2019 15:15:26 +0000 (16:15 +0100)]
Fix T62220: Solid shading mode - Shadow glitch

The degenerate triangle threshold was too big. Making it an equal test can
introduce problems in other cases but I could not make it fail.

3 months agoFix T62262: Light "Show Cone" & stereoscopy volumes broken by MSAA
Clément Foucault [Wed, 6 Mar 2019 14:48:15 +0000 (15:48 +0100)]
Fix T62262: Light "Show Cone" & stereoscopy volumes broken by MSAA

Volume itself was working, but buggy. The issue was that transparent shapes
does not write to depth buffer. But the custom MSAA resolve shader discard
pixels that did not write to depth making them transparent.

Transparent passes should not be inside the MSAA passes, this is also
a matter of performance.

3 months agoCollection duplication from Outliner: add a 'duplicate hierarchy' operation.
Bastien Montagne [Wed, 6 Mar 2019 14:09:16 +0000 (15:09 +0100)]
Collection duplication from Outliner: add a 'duplicate hierarchy' operation.

Point is, you may want to duplicate your set of collections, but not
duplicate all their objects.

Some notes:
* Am rather skeptical about the practice of using operator name to
define behavior of some common exec code. Imho, that should be a single
operator with an enum to refine its behavior (@cambpellbarton may also
have an opinion here?). Left it as-is for now, because this seems to be
used by other operators too in that code. :/
* @dfelinto, @pablovazquez, @billreynish am not so happy with current
names, but cannot find really good short ones either... Also, shouldn't
we move those into a dedicated `Duplicate` sub-menu?

3 months agoFix (unreported) broken usercount of collections after duplication.
Bastien Montagne [Wed, 6 Mar 2019 13:49:27 +0000 (14:49 +0100)]
Fix (unreported) broken usercount of collections after duplication.

Was missing proper flag in library_query code, collections are also
id-users of their children collections.

3 months agoCleanup: remove no-op BKE_collection_copy_full().
Bastien Montagne [Wed, 6 Mar 2019 10:42:19 +0000 (11:42 +0100)]
Cleanup: remove no-op BKE_collection_copy_full().

That one was an empty place-holder, BKE_collection_duplicate() is now
doing that. And its call from full scene copying is not needed
currently, 'deep copy' in that case is handled in editor's
`ED_scene_add()`.

Note that at some point, we might want to move that logic into BKE, but
for now let's keep thing as they are - working.

3 months agoFix T62613: In duplicated collections objects loses patrenting.
Bastien Montagne [Wed, 6 Mar 2019 10:38:06 +0000 (11:38 +0100)]
Fix T62613: In duplicated collections objects loses patrenting.

We need to remap duplicated IDs' ID pointers to new ones if they exist.

3 months agoCleanup: remove useless extra-processing after BKE_id_new_name_validate() call.
Bastien Montagne [Wed, 6 Mar 2019 10:20:23 +0000 (11:20 +0100)]
Cleanup: remove useless extra-processing after BKE_id_new_name_validate() call.

This function already handles sorting of ID in its listbase.

3 months agoCleanup: use default ID type's name instead of generic 'Untitled' for new IDs.
Bastien Montagne [Wed, 6 Mar 2019 10:16:48 +0000 (11:16 +0100)]
Cleanup: use default ID type's name instead of generic 'Untitled' for new IDs.

3 months agoCleanup: rename BKE_library's `new_id()` to `BKE_id_new_name_validate()`.
Bastien Montagne [Wed, 6 Mar 2019 10:10:45 +0000 (11:10 +0100)]
Cleanup: rename BKE_library's `new_id()` to `BKE_id_new_name_validate()`.

The former was probably one of the worst function names in our whole
code base, totally misleading, and quiet often used as a variable name too.