15 months agoAdd hide_buttons option to template_ID_preview
Antonioya [Fri, 2 Nov 2018 16:30:09 +0000 (17:30 +0100)]
Add hide_buttons option to template_ID_preview

When use the template in the topbar for only select an ID is very annoying to have the buttons after the name and only adds noise to the selector.

This option hide the number of users, new and delete buttons to get a cleaner topbar selector.

By default the parameter is disabled in order to keep all existing code/UI running.

15 months agoSmall cleanup on curve separation error handling
Dalai Felinto [Fri, 2 Nov 2018 17:11:51 +0000 (14:11 -0300)]
Small cleanup on curve separation error handling

15 months agoMulti-Objects: CURVE_OT_make_segment
Dalai Felinto [Fri, 2 Nov 2018 17:10:20 +0000 (14:10 -0300)]
Multi-Objects: CURVE_OT_make_segment

And another go at a more complete error handling.
I couldn't test all the error throwing cases but hopefully it is all
working as expected.

15 months agoMulti-Objects: CURVE_OT_reveal
Dalai Felinto [Fri, 2 Nov 2018 15:58:57 +0000 (12:58 -0300)]
Multi-Objects: CURVE_OT_reveal

15 months agoMulti-Objects: CURVE_OT_hide
Dalai Felinto [Fri, 2 Nov 2018 15:52:48 +0000 (12:52 -0300)]
Multi-Objects: CURVE_OT_hide

15 months agoMulti-Objects: CURVE_OT_switch_direction
Dalai Felinto [Fri, 2 Nov 2018 15:49:41 +0000 (12:49 -0300)]
Multi-Objects: CURVE_OT_switch_direction

15 months agoMulti-Objects: CURVE_OT_tilt_clear
Dalai Felinto [Fri, 2 Nov 2018 15:46:40 +0000 (12:46 -0300)]
Multi-Objects: CURVE_OT_tilt_clear

15 months agoMulti-Objects: CURVE_OT_handle_type_set
Dalai Felinto [Fri, 2 Nov 2018 15:42:48 +0000 (12:42 -0300)]
Multi-Objects: CURVE_OT_handle_type_set

15 months agoFix T57586: crash linking node group through material properties editor.
Brecht Van Lommel [Fri, 2 Nov 2018 16:49:34 +0000 (17:49 +0100)]
Fix T57586: crash linking node group through material properties editor.

15 months agoUI: add option for permanently allowing execution of scripts to dialog.
Brecht Van Lommel [Fri, 2 Nov 2018 16:24:19 +0000 (17:24 +0100)]
UI: add option for permanently allowing execution of scripts to dialog.

Ref T57197

15 months agoFix missing separators after recent changes.
Brecht Van Lommel [Fri, 2 Nov 2018 16:25:06 +0000 (17:25 +0100)]
Fix missing separators after recent changes.

15 months agoFix T57316: material preview icons not updating.
Brecht Van Lommel [Fri, 2 Nov 2018 15:02:46 +0000 (16:02 +0100)]
Fix T57316: material preview icons not updating.

The editors update callback was getting the COW datablock, it should be the
original where the preview icons are stored.

15 months agoMulti-Objects: CURVE_OT_normals_make_consistent
Dalai Felinto [Fri, 2 Nov 2018 15:37:23 +0000 (12:37 -0300)]
Multi-Objects: CURVE_OT_normals_make_consistent

15 months agoGP: Reduce space between draw option buttons
Antonioya [Fri, 2 Nov 2018 15:35:31 +0000 (16:35 +0100)]
GP: Reduce space between draw option buttons

Using new separator parameter, reduce space. The default value was too much.

15 months agoAdd new factor parameter to layout.separator()
Antonioya [Fri, 2 Nov 2018 15:32:31 +0000 (16:32 +0100)]
Add new factor parameter to layout.separator()

The new parameter allows to define the scale of the space.

15 months agoArmature: Fix stick bones not scaling with pixel size
Clément Foucault [Fri, 2 Nov 2018 15:27:21 +0000 (16:27 +0100)]
Armature: Fix stick bones not scaling with pixel size

15 months agoMulti-Objects: CURVE_OT_separate
Dalai Felinto [Fri, 2 Nov 2018 15:13:44 +0000 (12:13 -0300)]
Multi-Objects: CURVE_OT_separate

This is also a first take on trying to handle errors for partial
succeeded operators. Handling it all manually for now.

For the remaining operators I will use changed_multi to get over with
multi-objects. But we can handle their errors in a separate pass.

15 months agoUI: Darken the backdrop of navigation gizmos.
Pablo Vazquez [Fri, 2 Nov 2018 15:16:33 +0000 (16:16 +0100)]
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.

15 months agoEdit Mesh Mode: Improve edge drawing
Clément Foucault [Fri, 2 Nov 2018 14:07:06 +0000 (15:07 +0100)]
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.

15 months agoDRW: Use GPU module wrapper for line width
Clément Foucault [Fri, 2 Nov 2018 14:00:08 +0000 (15:00 +0100)]
DRW: Use GPU module wrapper for line width

15 months agoGPU: Add safety check for max line width
Clément Foucault [Fri, 2 Nov 2018 13:58:49 +0000 (14:58 +0100)]
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

15 months agoUI: disable decorators for color management and motion path panels.
Brecht Van Lommel [Fri, 2 Nov 2018 14:31:17 +0000 (15:31 +0100)]
UI: disable decorators for color management and motion path panels.

15 months agoMultires: Apply uniform scale on displacement when applying scale on object
Sergey Sharybin [Fri, 2 Nov 2018 14:23:06 +0000 (15:23 +0100)]
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.

15 months agoFix issues with hide/restrict icons after recent changes.
Brecht Van Lommel [Fri, 2 Nov 2018 12:05:05 +0000 (13:05 +0100)]
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.

15 months agoUI: Fix 'extra' fake user showing in UI ID template usercount.
Bastien Montagne [Fri, 2 Nov 2018 13:36:41 +0000 (14:36 +0100)]
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.

15 months agoUI: Fix showing '2' number of users in ID templates for fake-user IDs.
Bastien Montagne [Fri, 2 Nov 2018 13:33:38 +0000 (14:33 +0100)]
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...).

15 months agoFix 'id_single_user' wrongly reseting usercount to 0.
Bastien Montagne [Fri, 2 Nov 2018 13:31:13 +0000 (14:31 +0100)]
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.

15 months agoMultires: Cleanup, naming
Sergey Sharybin [Fri, 2 Nov 2018 12:59:04 +0000 (13:59 +0100)]
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.

15 months agoMultires: Prevent crash when joining two multires objects
Sergey Sharybin [Fri, 2 Nov 2018 09:56:20 +0000 (10:56 +0100)]
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).

15 months agoTool System: brushes are now categorized by tool
Campbell Barton [Thu, 1 Nov 2018 22:10:23 +0000 (09:10 +1100)]
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.


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

See T57526 for details.

15 months agoFix assert setting fake user then removing
Campbell Barton [Fri, 2 Nov 2018 05:22:45 +0000 (16:22 +1100)]
Fix assert setting fake user then removing

15 months agoUI: Minor tweaks on User Preferences header.
Pablo Vazquez [Fri, 2 Nov 2018 02:15:38 +0000 (03:15 +0100)]
UI: Minor tweaks on User Preferences header.

* Move Save User Preferences to the right (matches file browser and quit prompt).
* Icons for Import/Export keyconfig
* Match order of install/reset of Themes section
* Rename "Install MatCap/HDRI" to "Add MatCap/HDRI"

15 months agoUI: Rename Save User Settings operator to Save User Preferences.
Pablo Vazquez [Fri, 2 Nov 2018 02:08:58 +0000 (03:08 +0100)]
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.

15 months agoUI Cycles: Open "Sampling" panel by default
Pablo Vazquez [Fri, 2 Nov 2018 01:29:09 +0000 (02:29 +0100)]
UI Cycles: Open "Sampling" panel by default

Now that the Dimensions panel moved to Output, we can have the Sampling panel as the only one open by default.

15 months agoUI: Sort panels in Render and Output
Pablo Vazquez [Fri, 2 Nov 2018 01:21:35 +0000 (02:21 +0100)]
UI: Sort panels in Render and Output

15 months agoUI: tweak panels open by default
Campbell Barton [Fri, 2 Nov 2018 01:04:04 +0000 (12:04 +1100)]
UI: tweak panels open by default

15 months agoUI: add render output tab to properties editor
Brecht Van Lommel [Fri, 2 Nov 2018 00:56:41 +0000 (11:56 +1100)]
UI: add render output tab to properties editor

15 months agoUI: Typo
Pablo Vazquez [Fri, 2 Nov 2018 00:19:34 +0000 (01:19 +0100)]
UI: Typo

15 months agoMulti-Object-Mode: Edit curve draw (deselect all)
Campbell Barton [Thu, 1 Nov 2018 21:31:36 +0000 (08:31 +1100)]
Multi-Object-Mode: Edit curve draw (deselect all)

D3887 by @zazizizou

15 months agoMulti-Object-Mode: Edit curve toggle cyclic
Campbell Barton [Thu, 1 Nov 2018 21:24:17 +0000 (08:24 +1100)]
Multi-Object-Mode: Edit curve toggle cyclic

D3882 by @zazizizou

15 months agoUI: Math Node Menu: Group and reorder
charlie [Thu, 1 Nov 2018 16:08:03 +0000 (16:08 +0000)]
UI: Math Node Menu: Group and reorder

Change menu so that maths functions are grouped together more logically.

15 months agoCleanup: style
Campbell Barton [Thu, 1 Nov 2018 19:59:51 +0000 (06:59 +1100)]
Cleanup: style

15 months agoFix, sentinel was removed by accident
Campbell Barton [Thu, 1 Nov 2018 20:42:09 +0000 (07:42 +1100)]
Fix, sentinel was removed by accident

15 months agoEevee: Fix crash during Light cache baking
Clément Foucault [Thu, 1 Nov 2018 20:23:05 +0000 (21:23 +0100)]
Eevee: Fix crash during Light cache baking

This was caused by some threading conflict.

15 months agoEevee: Opti: Irradiance: Remove sqrt and max on backface test
Clément Foucault [Thu, 1 Nov 2018 17:11:00 +0000 (18:11 +0100)]
Eevee: Opti: Irradiance: Remove sqrt and max on backface test

Did not have any impact in my tests and it saves some instructions.

15 months agoUI: show messages and progress in topbar when status bar is collapsed.
Brecht Van Lommel [Thu, 1 Nov 2018 18:39:40 +0000 (19:39 +0100)]
UI: show messages and progress in topbar when status bar is collapsed.

15 months agoUI: show blocking popup when auto execution of scripts is disabled.
Brecht Van Lommel [Thu, 1 Nov 2018 17:32:37 +0000 (18:32 +0100)]
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.

15 months agoUI: support red alert on labels, not just buttons.
Brecht Van Lommel [Thu, 1 Nov 2018 18:43:46 +0000 (19:43 +0100)]
UI: support red alert on labels, not just buttons.

15 months agoFix T57559: fix wrong disable/mute icons for particles and shape keys.
Brecht Van Lommel [Thu, 1 Nov 2018 16:20:12 +0000 (17:20 +0100)]
Fix T57559: fix wrong disable/mute icons for particles and shape keys.

15 months agoDefaults: leave user prefs temp directory empty, so it gets right value per OS.
Brecht Van Lommel [Thu, 1 Nov 2018 13:45:58 +0000 (14:45 +0100)]
Defaults: leave user prefs temp directory empty, so it gets right value per OS.

15 months agoGP: Separate not related buttons on topbar
Antonioya [Thu, 1 Nov 2018 18:03:06 +0000 (19:03 +0100)]
GP: Separate not related buttons on topbar

15 months agoGP: Reorganize origin popover and top area
Antonioya [Thu, 1 Nov 2018 15:42:34 +0000 (16:42 +0100)]
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

15 months agoUI: Rename "Cursor to Center" to "Cursor to World Origin"
Pablo Vazquez [Thu, 1 Nov 2018 15:12:38 +0000 (16:12 +0100)]
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?

15 months agoUI: Rename Copy Material to Others to Copy Material to Selected.
Pablo Vazquez [Thu, 1 Nov 2018 14:57:17 +0000 (15:57 +0100)]
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

15 months agoUI: Rename AO to Ambient Occlusion in tooltips and labels when possible.
Pablo Vazquez [Thu, 1 Nov 2018 14:56:03 +0000 (15:56 +0100)]
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.

15 months agoSubdiv: Cleanup, better naming yet again
Sergey Sharybin [Thu, 1 Nov 2018 14:45:57 +0000 (15:45 +0100)]
Subdiv: Cleanup, better naming yet again

15 months agoSubdiv: Cleanup, de-duplicate some code
Sergey Sharybin [Thu, 1 Nov 2018 14:20:31 +0000 (15:20 +0100)]
Subdiv: Cleanup, de-duplicate some code

15 months agoSubdiv: Cleanup, de-duplicate tangent matrix calculation
Sergey Sharybin [Thu, 1 Nov 2018 14:12:54 +0000 (15:12 +0100)]
Subdiv: Cleanup, de-duplicate tangent matrix calculation

15 months agoSubdiv: Cleanup. better naming
Sergey Sharybin [Thu, 1 Nov 2018 13:48:00 +0000 (14:48 +0100)]
Subdiv: Cleanup. better naming

15 months agoSubdiv: Cleanup, deduplicate some code
Sergey Sharybin [Thu, 1 Nov 2018 10:06:00 +0000 (11:06 +0100)]
Subdiv: Cleanup, deduplicate some code

15 months agoEevee: Fix nodegroup sockets behaviour
Clément Foucault [Thu, 1 Nov 2018 14:06:23 +0000 (15:06 +0100)]
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).

15 months agoFix for object.set_select not updating selection in viewport
Dalai Felinto [Thu, 1 Nov 2018 12:25:40 +0000 (12:25 +0000)]
Fix for object.set_select not updating selection in viewport

Note: This function changes the active object as well. Not sure it
should do.

15 months agoFix T57553: Python operator popup size does not follow UI scale and DPI.
Brecht Van Lommel [Thu, 1 Nov 2018 11:23:33 +0000 (12:23 +0100)]
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.

15 months agoGP: Fix Stroke mode when annotations not enabled
Antonioya [Thu, 1 Nov 2018 11:02:08 +0000 (12:02 +0100)]
GP: Fix Stroke mode when annotations not enabled

Internally, a drawing is done to calculate z-depth and needs always the drawing.

15 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 1 Nov 2018 05:20:52 +0000 (16:20 +1100)]
Merge branch 'master' into blender2.8

15 months agoCleanup: move progress utility module into bpy_extras
Campbell Barton [Thu, 1 Nov 2018 05:17:40 +0000 (16:17 +1100)]
Cleanup: move progress utility module into bpy_extras

Try avoid having too many toplevel modules with generic names.

15 months agoFont cleanup: use ELEM
Dalai Felinto [Thu, 1 Nov 2018 00:29:37 +0000 (21:29 -0300)]
Font cleanup: use ELEM

15 months agoFix T57540: 3D Cursor snap in editing mode ignoring changed geometry.
mano-wii [Wed, 31 Oct 2018 23:47:51 +0000 (20:47 -0300)]
Fix T57540: 3D Cursor snap in editing mode ignoring changed geometry.

15 months agoFix swapped on/off icons for brush overlays
Dalai Felinto [Wed, 31 Oct 2018 22:12:33 +0000 (19:12 -0300)]
Fix swapped on/off icons for brush overlays

This is the panels that you see when you invoke the painting tools from
the Image Editor.

If you do so from the viewport, the panels are different (and have it
properly swapped already, although the panels should be the same as
those ones I suppose - that said I like the one from the image editor
better, in regard to the overlay panel).

15 months agoFix ui errors for brush toolbar
Dalai Felinto [Wed, 31 Oct 2018 22:18:27 +0000 (19:18 -0300)]
Fix ui errors for brush toolbar

15 months agoEevee: Fix pingpong buffer not using 32bit float buffer when rendering
Clément Foucault [Wed, 31 Oct 2018 21:35:32 +0000 (22:35 +0100)]
Eevee: Fix pingpong buffer not using 32bit float buffer when rendering

15 months agoFix gizmo extrude adjust & normal axis w/o faces
Campbell Barton [Wed, 31 Oct 2018 20:25:04 +0000 (07:25 +1100)]
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).

15 months agoTransform: support for custom matrix property
Campbell Barton [Wed, 31 Oct 2018 20:24:10 +0000 (07:24 +1100)]
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.

15 months agoCleanup: style
Campbell Barton [Wed, 31 Oct 2018 20:31:49 +0000 (07:31 +1100)]
Cleanup: style

15 months agoEevee: Fix compilation issue cause by cleanup
Clément Foucault [Wed, 31 Oct 2018 20:14:32 +0000 (21:14 +0100)]
Eevee: Fix compilation issue cause by cleanup

15 months agoEevee: Cleanup: Remove TODOs about MSM
Clément Foucault [Wed, 31 Oct 2018 18:44:01 +0000 (19:44 +0100)]
Eevee: Cleanup: Remove TODOs about MSM

Soft shadows are supported in another manner, Multiple Shadow Maps are not
needed anymore.

15 months agoEevee: Fix wrong default overscan value
Clément Foucault [Wed, 31 Oct 2018 18:40:00 +0000 (19:40 +0100)]
Eevee: Fix wrong default overscan value

15 months agoGP: Change icon for draw on back
Antonioya [Wed, 31 Oct 2018 18:36:22 +0000 (19:36 +0100)]
GP: Change icon for draw on back

15 months agoUI: Particles improvements
Pablo Vazquez [Wed, 31 Oct 2018 17:38:53 +0000 (18:38 +0100)]
UI: Particles improvements

* Icons in specials menu (Copy and the new Duplicate icon)
* Remove redundant "Settings" label next to ID template widget.
* Remove "Type" label and expand dropdown, since it only has 2 options (emitter/hair), saves 1 click.
* Move "Seed" to and "Hair Segments" to Emission panel
* Rename "Duplicate Particle Systems" to "Duplicate Particle System", since it
only duplicates one (the active one) at a time.

15 months agoUI: Detach Material specials menu from add/remove column.
Pablo Vazquez [Wed, 31 Oct 2018 17:33:23 +0000 (18:33 +0100)]
UI: Detach Material specials menu from add/remove column.

15 months agoEevee: Implement Overscan option
Clément Foucault [Wed, 31 Oct 2018 17:31:14 +0000 (18:31 +0100)]
Eevee: Implement Overscan option

This option make the internal render size larger than the output size in
order to minimize screenspace effects disapearing at the render edges.

The overscan size added around the render is the maximum dimension
multiplied by the overscan percentage.

15 months agoUI: tweak usage of duplicate/add icon for consistency.
Brecht Van Lommel [Wed, 31 Oct 2018 17:30:30 +0000 (18:30 +0100)]
UI: tweak usage of duplicate/add icon for consistency.

Still difficult to know when exactly the operator will duplicate and when
it will add a new one. Some open a menu with different choices too.

15 months agoUI: Small tweaks to Shape Keys/Vertex Groups menus
Pablo Vazquez [Wed, 31 Oct 2018 17:01:23 +0000 (18:01 +0100)]
UI: Small tweaks to Shape Keys/Vertex Groups menus

Mainly added separators to the Vertex Group/Shape Keys specials menu,
separating items by type and removing redundant icons for better readability.

15 months agoAllow changing B-Bone custom handle references from Pose Mode.
Alexander Gavrilov [Wed, 31 Oct 2018 16:12:59 +0000 (19:12 +0300)]
Allow changing B-Bone custom handle references from Pose Mode.

@jpbouza was rather upset these were made read-only, and unlike
parents, it's not that hard to allow changing these Bone fields:
all is needed is to carefully refresh the matching fields in the
relevant bPoseChannel objects and properly tag update.

Reviewers: brecht

Differential Revision:

15 months agoUI: icon set updates by Andrzej Ambroz.
William Reynish [Wed, 31 Oct 2018 16:30:47 +0000 (17:30 +0100)]
UI: icon set updates by Andrzej Ambroz.

New icons for duplicate, driver types, window, hue/saturation.

15 months agoUI: more single column layout for brush and render properties.
William Reynish [Wed, 31 Oct 2018 16:23:43 +0000 (17:23 +0100)]
UI: more single column layout for brush and render properties.

15 months agoOpenSubdiv: API, expose vertex boundary interpolation option
Sergey Sharybin [Wed, 31 Oct 2018 16:46:22 +0000 (17:46 +0100)]
OpenSubdiv: API, expose vertex boundary interpolation option

Only affects internal API, bout could be exposed as an option for
the compatibility reasons with other software.

Is a part of some ongoing development of multires, but might or
might not be used.

15 months agoGP: Fix icons
Antonioya [Wed, 31 Oct 2018 13:44:15 +0000 (14:44 +0100)]
GP: Fix icons

15 months agoGP: Move Autlock to Layer menu
Antonioya [Wed, 31 Oct 2018 13:18:16 +0000 (14:18 +0100)]
GP: Move Autlock to Layer menu

15 months agoImage Empties: More visibility settings
Jacques Lucke [Wed, 31 Oct 2018 12:35:53 +0000 (13:35 +0100)]
Image Empties: More visibility settings

Support for showing images in background/foreground and only in perspective/orthographic view.

Internally the depth of the image is modified in the fragment shader by setting `gl_FragDepth` explicitly.

The UI still needs some work to improve usability, see D3863 for details.
Currently there is one duplicated function, not sure how to best deduplicate it yet. (`is_image_empty_visible`)

Reviewer: fclem, brecht, campbellbarton

Differential Revision:

15 months agoExpose full ID name in RNA as well.
Bastien Montagne [Wed, 31 Oct 2018 12:22:00 +0000 (13:22 +0100)]
Expose full ID name in RNA as well.

That way scripts can have a consitent way to get unique ID key/string,
and can use it for access in collections as well.

Note that this kind of douples the old py API way of doning this
(passing tuple of (ID-name, lib-path) instead of just ID-name).

15 months agoMake new library IDs named from the .blend file.
Bastien Montagne [Wed, 31 Oct 2018 11:41:38 +0000 (12:41 +0100)]
Make new library IDs named from the .blend file.

Now that we do use that ID name of them in UI sometimes...

15 months agoUI/Unique ID name: add library ID name if present.
Bastien Montagne [Wed, 31 Oct 2018 11:18:36 +0000 (12:18 +0100)]
UI/Unique ID name: add library ID name if present.

Also reshuffle a bit that whole code, did some renaming,
`BKE_id_to_unique_string_key()` is now using same base code (instead of
using whole library filepath...), etc.

15 months agoUI: Move Color Management panel from Scene to Render properties.
Pablo Vazquez [Wed, 31 Oct 2018 12:06:44 +0000 (13:06 +0100)]
UI: Move Color Management panel from Scene to Render properties.

It makes more sense to have Color Management under Render properties,
even though they are per scene (so are render dimensions anyway).

15 months agoEevee: Fix dot corruption on intel HD5xx/6xx series
Clément Foucault [Wed, 31 Oct 2018 11:32:09 +0000 (12:32 +0100)]
Eevee: Fix dot corruption on intel HD5xx/6xx series

It is caused by some sync issue apparently. Adding glFlush in these
two places fixes it.

Caveat: it might have a small perf impact (did not measure it).

The fix is limited to the affected driver/operating systems.

15 months agoGPU: Add glFlush and glFinish wrapper
Clément Foucault [Wed, 31 Oct 2018 11:28:59 +0000 (12:28 +0100)]
GPU: Add glFlush and glFinish wrapper

15 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 31 Oct 2018 10:49:04 +0000 (11:49 +0100)]
Merge branch 'master' into blender2.8

15 months agoCycles: Fix wrong BVH used when disabling AVX2 in debug settings
Sergey Sharybin [Wed, 31 Oct 2018 10:46:52 +0000 (11:46 +0100)]
Cycles: Fix wrong BVH used when disabling AVX2 in debug settings

Mainly useful for debugging. Previously, when AVX2 was disabled
in the debug panel but BVH layout was kept on BVH8 nothing was

Needed to make it so supported BVH layout mask for devices is
queried in "dynamic", so it is possible to use DebugFlags there.

15 months agoGP: New Autolock Inactive Layer
Antonioya [Wed, 31 Oct 2018 10:00:02 +0000 (11:00 +0100)]
GP: New Autolock Inactive Layer

This option locks any layer no active to avoid any accidental change.

15 months agoAdd an option to do keyframe insertion in a cycle-aware fashion.
Alexander Gavrilov [Sun, 14 Oct 2018 10:04:34 +0000 (13:04 +0300)]
Add an option to do keyframe insertion in a cycle-aware fashion.

When enabled, inserting keyframes into F-Curves with simple cyclic
extrapolation (the same conditions as required for cycle-aware auto
handle smoothing to activate) will take the cycle into account:

- Keyframes that are being inserted outside of the cycle bounds
  are remapped to be inside the cycle. Thus it is not necessary
  to be within the main iteration of the cycle when tweaking.

  This becomes especially useful in the final animation tweaking
  phase when the channel keys may be staggered for overlap, so
  the actual master period is different for different channels.

- Modifying one of the end points of a cycle also changes the
  other end point when appropriate, to preserve smooth transition.

This feature applies to both manual keyframe insertion using
'I', and auto-keyframing.

Differential Revision: