22 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 24 Aug 2018 02:39:36 +0000 (12:39 +1000)]
Merge branch 'master' into blender2.8

22 months agoFix T56491: Undo crash while preview jobs run
Campbell Barton [Fri, 24 Aug 2018 02:36:19 +0000 (12:36 +1000)]
Fix T56491: Undo crash while preview jobs run

While the crash is in 2.8, it's possible undo operates on data
which isn't only owned by the current scene (any object for eg).

Thanks to @mont29 for suggesting the fix.

22 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 24 Aug 2018 02:17:33 +0000 (12:17 +1000)]
Merge branch 'master' into blender2.8

22 months agoUI: always align item w/ label
Campbell Barton [Fri, 24 Aug 2018 02:13:28 +0000 (12:13 +1000)]
UI: always align item w/ label

22 months agoFix T56511: UILayout.prop_search misaligned
Campbell Barton [Fri, 24 Aug 2018 02:09:56 +0000 (12:09 +1000)]
Fix T56511: UILayout.prop_search misaligned

Add padding when used with property decorations.

22 months agoUI: remove hack to align search properties
Campbell Barton [Fri, 24 Aug 2018 00:51:53 +0000 (10:51 +1000)]
UI: remove hack to align search properties

22 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 24 Aug 2018 01:54:12 +0000 (11:54 +1000)]
Merge branch 'master' into blender2.8

22 months agoRNA: avoid redundant property lookups in UI API
Campbell Barton [Fri, 24 Aug 2018 01:44:28 +0000 (11:44 +1000)]
RNA: avoid redundant property lookups in UI API

22 months agoCleanup: indentation, style
Campbell Barton [Fri, 24 Aug 2018 00:26:59 +0000 (10:26 +1000)]
Cleanup: indentation, style

22 months agoUI: re-arrange some items in context menu
Pablo Vazquez [Thu, 23 Aug 2018 23:37:55 +0000 (01:37 +0200)]
UI: re-arrange some items in context menu

* Move Add to Quick Favorites before Assign Shortcut, as it is more often
that we add items to favorites, than changing shortcuts.

* Move Header menu last. In some cases the Online Manual for that item
would appear after the header menu.

* No icon for "Remove from Quick Favorites", matches Remove Shortcut

22 months agoUI: Fix area border thickness over top and bottom bar with glScissors
Clément Foucault [Thu, 23 Aug 2018 21:02:38 +0000 (23:02 +0200)]
UI: Fix area border thickness over top and bottom bar with glScissors

22 months agoHide Grease Pencil ornaments if overlay setting is disabled
Pablo Vazquez [Thu, 23 Aug 2018 20:47:53 +0000 (22:47 +0200)]
Hide Grease Pencil ornaments if overlay setting is disabled

22 months agoCleanup: remove unused code
Clément Foucault [Thu, 23 Aug 2018 20:34:25 +0000 (22:34 +0200)]
Cleanup: remove unused code

22 months agoUI: Optimize the area border drawing
Clément Foucault [Thu, 23 Aug 2018 20:29:29 +0000 (22:29 +0200)]
UI: Optimize the area border drawing

It is was not really a bottleneck but it was triggering my OCD when 1/3rd
of the drawcalls in a normal scene were basically only caused by this.

22 months agoWireframe: Add support for sculpt mode
Clément Foucault [Thu, 23 Aug 2018 16:05:50 +0000 (18:05 +0200)]
Wireframe: Add support for sculpt mode

Now wireframe does update in sculpt mode using the sculpt mesh VBOs.

The only thing that does not work is simplified wireframe (the wireframe
slider) when the mesh is shaded flat. In this case all edges are shown.

22 months agoFix T55507: Crash due to GPencil brush icon management, when there is no active object.
Bastien Montagne [Thu, 23 Aug 2018 19:56:11 +0000 (21:56 +0200)]
Fix T55507: Crash due to GPencil brush icon management, when there is no active object.

22 months agoFix T56455: [2.8] Crash when projecting skinwrap curve/path.
Bastien Montagne [Thu, 23 Aug 2018 19:49:14 +0000 (21:49 +0200)]
Fix T56455: [2.8] Crash when projecting skinwrap curve/path.

Shrinkwrap is not only a Mesh modifier...

22 months agoFix T56360: metaball viewport checkbox crash.
Bastien Montagne [Thu, 23 Aug 2018 19:26:44 +0000 (21:26 +0200)]
Fix T56360: metaball viewport checkbox crash.

Do same as for other geometry types to compute bbox, instead of blindly
returning NULL `ob->bb`...

22 months agoFix single column UI: grey out B-Bone properties when not a B-Bone.
Alexander Gavrilov [Thu, 23 Aug 2018 19:37:30 +0000 (22:37 +0300)]
Fix single column UI: grey out B-Bone properties when not a B-Bone.

There was a mistake when the UI was converted to the new layout style.

22 months agoWorkspaces: move delete to right click menu, instead of X on tab.
Brecht Van Lommel [Thu, 23 Aug 2018 17:58:54 +0000 (19:58 +0200)]
Workspaces: move delete to right click menu, instead of X on tab.

These are not intended to be closed as often as e.g. browser tabs, they are
intended to be more persistent and accidental closing should be avoided.

22 months agoUI: rename Grease Pencil panels in toolbar to Annotation.
Brecht Van Lommel [Wed, 22 Aug 2018 14:59:04 +0000 (16:59 +0200)]
UI: rename Grease Pencil panels in toolbar to Annotation.

To match the panels in the N key sidebar.

22 months agoMulti-Objects: MESH_OT_loop_select
Dalai Felinto [Thu, 23 Aug 2018 15:49:56 +0000 (12:49 -0300)]
Multi-Objects: MESH_OT_loop_select

22 months agoUI: Subpanels to Cycles Samples for Branched Path Tracing
William Reynish [Thu, 23 Aug 2018 15:29:05 +0000 (17:29 +0200)]
UI: Subpanels to Cycles Samples for Branched Path Tracing

22 months agoUI: Physics panel minor adjustments
William Reynish [Thu, 23 Aug 2018 15:21:55 +0000 (17:21 +0200)]
UI: Physics panel minor adjustments

Flow panel had a wrong name when the checkmark was used in the header, fixed alignment in softbody panel & fixed wrong active state for Cloth Pin.

22 months agoUI: Dark XYZ characters in the navigation gizmo
Pablo Vazquez [Thu, 23 Aug 2018 15:15:44 +0000 (17:15 +0200)]
UI: Dark XYZ characters in the navigation gizmo

Much easier to read against the usually brighter axes colors.

22 months agoDepsgraph: Bring back visibility checks based on collection restrict flags
Sergey Sharybin [Thu, 23 Aug 2018 14:17:06 +0000 (16:17 +0200)]
Depsgraph: Bring back visibility checks based on collection restrict flags

The title says it all actually, the idea is to speedup the following case:

- Visible duplicator of a restricted collection (reported as T56512),

One of the questionable change is that none of the view layer bases is
ignored now. This ensures corresponding objects will have copy-on-write
component evaluated, making it possible to access those pointers. The
evaluation of those objects is skipped.

Reviewers: brecht

Differential Revision:

22 months agoFix T56347: Driven values not supported in node groups.
Bastien Montagne [Thu, 23 Aug 2018 13:19:08 +0000 (15:19 +0200)]
Fix T56347: Driven values not supported in node groups.

Need to rebuild dependency graph when we add or remove nodes from a tree...

22 months agoRename: *_batch_cache_dirty > *_batch_cache_dirty_tag
Dalai Felinto [Thu, 23 Aug 2018 13:14:29 +0000 (10:14 -0300)]
Rename: *_batch_cache_dirty > *_batch_cache_dirty_tag

22 months agoFix T56500: Origin to geometry crashes on armature
Dalai Felinto [Wed, 22 Aug 2018 20:02:37 +0000 (17:02 -0300)]
Fix T56500: Origin to geometry crashes on armature

Reviewers: sergey

22 months agoIcons: new icons for sculpt border hide/mask
William Reynish [Thu, 23 Aug 2018 12:46:04 +0000 (22:46 +1000)]
Icons: new icons for sculpt border hide/mask

22 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 23 Aug 2018 12:56:42 +0000 (14:56 +0200)]
Merge branch 'master' into blender2.8

22 months agoFix T56506: Different behaviour of Bounds Clamp with positive and negative axis.
Bastien Montagne [Thu, 23 Aug 2018 12:55:40 +0000 (14:55 +0200)]
Fix T56506: Different behaviour of Bounds Clamp with positive and negative axis.

Small typo on minus sign position... ;)

22 months ago3D Grid: Fix grid not showing in camera view
Clément Foucault [Thu, 23 Aug 2018 11:56:25 +0000 (13:56 +0200)]
3D Grid: Fix grid not showing in camera view

22 months ago3D Grid: Fix axes color blending
Clément Foucault [Thu, 23 Aug 2018 11:35:41 +0000 (13:35 +0200)]
3D Grid: Fix axes color blending

22 months ago3D Grid: Fix grid passing through objects too much
Clément Foucault [Thu, 23 Aug 2018 11:35:10 +0000 (13:35 +0200)]
3D Grid: Fix grid passing through objects too much

For this we need to add a bias depending on the viewing angle.
But increasing the hardness of the test make float precision issues in
the mesh transformation more prominent (actual geometry is far below the
surface). So to solve this issue we use a more subdivided grid mesh
8x8 quads instead of 1 triangle.

22 months agoIcons: clamp material color from 0..1
Campbell Barton [Thu, 23 Aug 2018 11:40:30 +0000 (21:40 +1000)]
Icons: clamp material color from 0..1

Warn about out of range colors too.

22 months agoRevert "Icons: avoid error with colors out of 0-255 range"
Campbell Barton [Thu, 23 Aug 2018 11:36:51 +0000 (21:36 +1000)]
Revert "Icons: avoid error with colors out of 0-255 range"

This reverts commit 6e7da7616b6b02d2827f306ea4e55510a79b79de.

22 months agoFix annotate tool in the 3D view
Campbell Barton [Thu, 23 Aug 2018 10:25:25 +0000 (20:25 +1000)]
Fix annotate tool in the 3D view

We can't share tools between space-types since they contain keymaps
that store the space type.

22 months agoCleanup: use staticmethod when class isn't used
Campbell Barton [Thu, 23 Aug 2018 10:16:50 +0000 (20:16 +1000)]
Cleanup: use staticmethod when class isn't used

22 months agoUI: rename "Ruler" to "Measure"
Campbell Barton [Thu, 23 Aug 2018 06:50:43 +0000 (16:50 +1000)]
UI: rename "Ruler" to "Measure"

22 months agoAdd Torus: default generate UV's to true
Campbell Barton [Thu, 23 Aug 2018 06:49:42 +0000 (16:49 +1000)]
Add Torus: default generate UV's to true

22 months agoCompositor: Film-like curve
Jeroen Bakker [Thu, 23 Aug 2018 08:25:54 +0000 (10:25 +0200)]
Compositor: Film-like curve

Film-like curves for the RGB Curve node (Compositor) and Curve Modifier

Film-like curves originated from Adobe.
"It’s an RGB curve where the tone curve is applied on the largest and smallest value, and then the middle value is adapted to keep a constant hue as defined by RGB-HSL/HSV. In terms of look and saturation increase it’s very similar to a pure RGB curve, more so than a HSL-L curve or HSV-V curve, but some color shift problems are avoided."

Other tools like Natron, Krita and RawTherapee have implemented this curve tone.

Reviewers: brecht, campbellbarton

Reviewed By: brecht

Tags: #compositing, #video_sequencer

Differential Revision:

22 months agoFix T56498: Segment fault when change parameter of one operator after undo.
Bastien Montagne [Thu, 23 Aug 2018 06:40:05 +0000 (08:40 +0200)]
Fix T56498: Segment fault when change parameter of one operator after undo.

You cannot store ID (or any other data) pointers accross undo’s/redo’s, those
are reading .blend file and hence invalidating all pointers!

Not that happy with this fix, code is rather convoluted and not elegant
at all, but cannot think of a better solution, so will do for now.

Also found and fixed another 'str ghash used for int keys' case...

22 months agoAdd helper to BKE_library to generate unique string key for an ID.
Bastien Montagne [Thu, 23 Aug 2018 06:37:32 +0000 (08:37 +0200)]
Add helper to BKE_library to generate unique string key for an ID.

Basically just concatenates ID's name (including its IDtype code) and
that library's name, if any. This must give unique string in a given
Main database, suitable for GHash keys e.g.

22 months agoCleanup: trailing space
Campbell Barton [Thu, 23 Aug 2018 06:22:32 +0000 (16:22 +1000)]
Cleanup: trailing space

22 months agoTool System: Popup toolbar keymap improvements
Campbell Barton [Thu, 23 Aug 2018 05:47:19 +0000 (15:47 +1000)]
Tool System: Popup toolbar keymap improvements

- Add support for key_modifiers, so grease pencil gets "D".

- Assign number keys for unmapped items

  This means all tools get keyboard access,
  use number/numpad to avoid confusion with other keymap items
  which directly activate the tool.

22 months agoCleanup: use static functions
Campbell Barton [Thu, 23 Aug 2018 06:17:54 +0000 (16:17 +1000)]
Cleanup: use static functions

22 months agoFix: Silence compiler warnings about size_t's in printf
Joshua Leung [Thu, 23 Aug 2018 04:58:13 +0000 (16:58 +1200)]
Fix: Silence compiler warnings about size_t's in printf

22 months agoDepsgraph: Added note that the filtering function should NOT be called on a filtered...
Joshua Leung [Thu, 23 Aug 2018 04:55:07 +0000 (16:55 +1200)]
Depsgraph: Added note that the filtering function should NOT be called on a filtered graph

22 months agoMotion Path Calcs: Use filtered depsgraph by default
Joshua Leung [Thu, 23 Aug 2018 04:51:54 +0000 (16:51 +1200)]
Motion Path Calcs: Use filtered depsgraph by default

Use debug_value = -1 to disable the use of the filtered depsgraph.
It's still useful to have this for benchmarking + until we're
confident the filtering works safely.

22 months agoCode Cleanup
Joshua Leung [Thu, 23 Aug 2018 04:48:50 +0000 (16:48 +1200)]
Code Cleanup

22 months agoMotion Path Calcs: Minor optimisation tweaks
Joshua Leung [Thu, 23 Aug 2018 04:29:06 +0000 (16:29 +1200)]
Motion Path Calcs: Minor optimisation tweaks

* Don't print on every frame evaluated. This was only needed
  earlier to track the progress (and why things were taking so
  long - answer, it was the Scene COW issue). Saves 50-100 ms

* Remove the extra calculation of the scene after evaluating
  motion paths. This shouldn't be needed now with COW.
  Saves about 20-30 ms

22 months agoFix memory leak - the temporary depsgraph instance was not getting freed after use
Joshua Leung [Thu, 23 Aug 2018 04:02:09 +0000 (16:02 +1200)]
Fix memory leak - the temporary depsgraph instance was not getting freed after use

22 months agoCleanup: Remove the conditional ID node removal stuff, copied from clear_id_nodes()
Joshua Leung [Thu, 23 Aug 2018 03:54:58 +0000 (15:54 +1200)]
Cleanup: Remove the conditional ID node removal stuff, copied from clear_id_nodes()

This was just randomly leaving all the Particle datablocks in the
filtered graph (and causing and extra/excess pass over the ID's
to get run). Unless we actually need those specially kept for
some reason later, it's better to leave those out for now.

22 months agoFaster Motion Path calculations using Depsgraph Filtering
Joshua Leung [Thu, 23 Aug 2018 03:41:08 +0000 (15:41 +1200)]
Faster Motion Path calculations using Depsgraph Filtering

This commit makes the motion path calculations use the
new Depsgraph Filtering API to obtain a more streamlined
copy of the full scene dependency graph, allowing for
faster calculations (as less data needs to be evaluated
for each frame being baked).

For example, in 01_020_A.anim.blend from the Spring production
files, the time needed to calculate paths on several bones
on Autumn went from  39.84 seconds (!) down to 9.90 seconds!

Currently, this works by just replacing the depsgraph instance
passed to the motion path calculation function. This filtered
instance contains just the ID's needed to evaluate the graph
to evaluate a specified target (i.e. the Object owning the pose).

* By default, the filtering is not performed unless debug mode 555
  is activated. Having a debug switch here allows comparing
  performance and disabling it should thing it start crashing.

* It is necessary to pass in the original Scene instance (not the
  COW one owned by the filtered depsgraph), otherwise changing the
  current frame had no effect, due to the COW flushing from original
  Scene to the new Scene overwriting the CFRA changes we make.

* The code here still needs cleaning up to debugging instrumentation, etc.
  and also to optimise further (e.g. caching the filtered depsgraph
  for faster updates when animating on existing paths, or fine-tuning
  the exact set of nodes needed).  I'm just committing this first,
  since this was the quickly hacked-together test code I've been using
  to check that this is all working.

* Further improvements could also be made to the time needed to
  build the full graph instance (about 3.3 sec), by allowing partial
  builds (e.g. by making a filtering proxy/wrapper around existing builders)

22 months agoCleanup: Disable some of the extra debug prints that were slowing things down
Joshua Leung [Thu, 23 Aug 2018 02:41:36 +0000 (14:41 +1200)]
Cleanup: Disable some of the extra debug prints that were slowing things down

22 months agoMotion Path Calculations: Don't pass scene into motionpaths_calc_bake_targets()
Joshua Leung [Thu, 23 Aug 2018 02:06:11 +0000 (14:06 +1200)]
Motion Path Calculations: Don't pass scene into motionpaths_calc_bake_targets()

It's not needed, and actually precludes us from considering parallel
evaluation in future.

22 months agoDepsgraph Filtering: Fix ID node filtering problems
Joshua Leung [Thu, 23 Aug 2018 01:54:07 +0000 (13:54 +1200)]
Depsgraph Filtering: Fix ID node filtering problems

* COW data hasn't been expanded yet when we try to filter the graph
  (you need to have tagged + evaluated it for this data to exist),
  so all the offending nodes would just get left in

* Added more debug prints to verify whether the id_nodes vector is
  getting cleared correctly

22 months agoDepsgraph Filtering: WIP more debugging prints
Joshua Leung [Wed, 22 Aug 2018 23:36:20 +0000 (11:36 +1200)]
Depsgraph Filtering: WIP more debugging prints

22 months agoDepsgraph Filtering: Remove opnodes from entry tags too
Joshua Leung [Wed, 22 Aug 2018 23:35:30 +0000 (11:35 +1200)]
Depsgraph Filtering: Remove opnodes from entry tags too

22 months agoDepsgraph: Fix filtering-related crashes
Joshua Leung [Wed, 22 Aug 2018 15:15:19 +0000 (03:15 +1200)]
Depsgraph: Fix filtering-related crashes

* Simplified operation-relation deletion. Now we collect the relations
  to delete into a vector, then iterate through that, thus solving issues
  with iterator invalidation (+ aborts arising from that)

* DEG_foreach_ancestor_ID() was assuming that all dependencies were
  OperationDepsNodes, when in fact, some could be TimeSource nodes

22 months agoDepsgraph: Print simple stats after filtering graph, to quickly verify if anything...
Joshua Leung [Wed, 22 Aug 2018 14:51:01 +0000 (02:51 +1200)]
Depsgraph: Print simple stats after filtering graph, to quickly verify if anything happened

22 months agoDepsgraph: First draft of graph filtering API implementation
Joshua Leung [Wed, 22 Aug 2018 13:24:48 +0000 (01:24 +1200)]
Depsgraph: First draft of graph filtering API implementation

When this works correctly, we should be able to feed in an existing
depsgraph instance, and get out a "filtered" copy of it that contains
only the subset of nodes needed to evaluate what we're interested in.

The current implementation only filters on ID blocks/nodes,
and starts by building a full new depsgraph instance first.
I'd originally intended to do it per operation instead, copying
over individual nodes as appropriate to have the smallest and least
memory intensive graph possible. However, I ended up running into
into problems with function binding + COW arguments, hence the
current slow solution.

22 months agoTypo fixes
Joshua Leung [Wed, 22 Aug 2018 12:04:38 +0000 (00:04 +1200)]
Typo fixes

22 months agoTool System: Sculpt border hide/mask tools
Campbell Barton [Thu, 23 Aug 2018 02:56:02 +0000 (12:56 +1000)]
Tool System: Sculpt border hide/mask tools

22 months agoCycles: Add option for building CUDA kernels sequentially
Lukas Stockner [Mon, 20 Aug 2018 08:17:34 +0000 (01:17 -0700)]
Cycles: Add option for building CUDA kernels sequentially

Building the CUDA kernels takes quite a bit of memory, and when building all of
them the combined usage can be too much on some systems (especially VMs).

Therefore, this patch adds an option to force the build system to build them
sequentially by making each build step depend on the previous kernel.

Reviewers: brecht, sergey

Differential Revision:

22 months agoTool System: support non paint tools in paint mode
Campbell Barton [Thu, 23 Aug 2018 02:47:32 +0000 (12:47 +1000)]
Tool System: support non paint tools in paint mode

This is needed so non-paint-brush tools can be used in paint modes.

22 months agoTool System: remove cursor tool from paint modes
Campbell Barton [Thu, 23 Aug 2018 02:12:11 +0000 (12:12 +1000)]
Tool System: remove cursor tool from paint modes

22 months agoObject Mode: Add back spot cone display
Clément Foucault [Wed, 22 Aug 2018 16:44:24 +0000 (18:44 +0200)]
Object Mode: Add back spot cone display

22 months agoPaint Overlay: Fix blending of the brush overlay
Clément Foucault [Wed, 22 Aug 2018 14:38:42 +0000 (16:38 +0200)]
Paint Overlay: Fix blending of the brush overlay

22 months agoUI: Minor label tweaks to operators context menu
Pablo Vazquez [Wed, 22 Aug 2018 16:54:06 +0000 (18:54 +0200)]
UI: Minor label tweaks to operators context menu

* Add Shortcut -> Assign Shortcut

* Add to Favorites Menu -> Add to Quick Favorites
To match the menu name and be more general for when the Quick Favorites
are accessible in places other than just menus (like panels).

Add blank icon to Remove Shortcut so it aligns with Change Shortcut
which is usually the item on top of it in the menu.

22 months agoCleanup, unused variable
Sergey Sharybin [Wed, 22 Aug 2018 15:45:56 +0000 (17:45 +0200)]
Cleanup, unused variable

22 months agoMSVS 2017 Bug - Subdiv Mesh
Charlie Jolly [Wed, 22 Aug 2018 15:01:29 +0000 (17:01 +0200)]
MSVS 2017 Bug - Subdiv Mesh

Apparently, struct initialization can not be empty,

Reviewers: sergey

Reviewed By: sergey

Tags: #bf_blender_2.8

Differential Revision:

22 months agoMultires: Bring back operator to reshape from object
Sergey Sharybin [Wed, 22 Aug 2018 14:56:52 +0000 (16:56 +0200)]
Multires: Bring back operator to reshape from object

Limited to mesh type of source, not sure it ever worked for non-meshes.
While it's possible to support reshape from any object, the actual brain
of operation would need to be recoded to go away from requirement of
vertex indices matching in source and destination.

22 months agoMultires: Remove another unused argument from reshape function
Sergey Sharybin [Wed, 22 Aug 2018 14:49:05 +0000 (16:49 +0200)]
Multires: Remove another unused argument from reshape function

22 months agoUI: Show development entries in context menu when Dev. Extras is enabled
Pablo Vazquez [Wed, 22 Aug 2018 14:29:41 +0000 (16:29 +0200)]
UI: Show development entries in context menu when Dev. Extras is enabled

22 months agoMultires: Fix reshape when active level is lower than the total one
Sergey Sharybin [Wed, 22 Aug 2018 14:07:39 +0000 (16:07 +0200)]
Multires: Fix reshape when active level is lower than the total one

22 months agoMultires: Remove unused function argument
Sergey Sharybin [Wed, 22 Aug 2018 13:45:19 +0000 (15:45 +0200)]
Multires: Remove unused function argument

22 months agoPython: Cleanup Noise Module
Andrew Hale [Wed, 22 Aug 2018 13:22:48 +0000 (15:22 +0200)]
Python: Cleanup Noise Module

Implements the changes detailed in T56281

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

22 months agoDRW: Fix wrong framebuffer bound after background pass
Clément Foucault [Wed, 22 Aug 2018 13:22:54 +0000 (15:22 +0200)]
DRW: Fix wrong framebuffer bound after background pass

22 months agoOverlay: Fix wrong framebuffer bound.
Clément Foucault [Wed, 22 Aug 2018 12:18:02 +0000 (14:18 +0200)]
Overlay: Fix wrong framebuffer bound.

22 months ago Multires: Fix reshape of corner vertices
Sergey Sharybin [Wed, 22 Aug 2018 13:19:57 +0000 (15:19 +0200)]
 Multires: Fix reshape of corner vertices

Was only reshaping corner vertex of a single ptex face.

22 months agoImprovement to MESH_OT_shortest_path_pick behaviour
Dalai Felinto [Tue, 21 Aug 2018 16:27:06 +0000 (13:27 -0300)]
Improvement to MESH_OT_shortest_path_pick behaviour

Select a vertex/edge/face if there was nothing previously selected
(if the click hit something, of course).

22 months agoMulti-Objects: MESH_OT_shortest_path_pick
Dalai Felinto [Tue, 21 Aug 2018 16:19:02 +0000 (13:19 -0300)]
Multi-Objects: MESH_OT_shortest_path_pick

This fully works as "expected", however it seems strange when
there is no selected vertex in the non-active object.

In 2.7x if you join two monkeys, select a vertex in one of them and
try to use this operator in the other it will select the lonely newly
selected vertex.

If you split both monkeys and do this in 2.8 while multi-editing them
you won't get nothing when trying to ctrl+RMB any vertex in the monkey
object that has nothing selected yet.

I propose to have this addressed in an upcoming patch where we always
select a vertex if no vertex was previously selected.

22 months agoIcons: missing from last commit
Campbell Barton [Wed, 22 Aug 2018 12:30:31 +0000 (22:30 +1000)]
Icons: missing from last commit

22 months agoFix building without OPENSUBDIV
Dalai Felinto [Wed, 22 Aug 2018 12:03:40 +0000 (09:03 -0300)]
Fix building without OPENSUBDIV

Although we have a stub system there, we were not linking the library.

22 months agoIcons: updated icons
William Reynish [Wed, 22 Aug 2018 12:08:21 +0000 (22:08 +1000)]
Icons: updated icons

Use simplified design.

22 months agoDRW: Fix T56418 and T56474 in a more robust way
Clément Foucault [Wed, 22 Aug 2018 11:41:18 +0000 (13:41 +0200)]
DRW: Fix T56418 and T56474 in a more robust way

22 months agoRevert "Fix T56418: Changing to Solid View crashes Blender"
Clément Foucault [Wed, 22 Aug 2018 11:07:15 +0000 (13:07 +0200)]
Revert "Fix T56418: Changing to Solid View crashes Blender"

This reverts commit 1e26345a89afd24ada035af133a9d5b5ba1ac278.

22 months agoArmature: Fix outline jitter in orthographic mode
Clément Foucault [Tue, 21 Aug 2018 15:35:02 +0000 (17:35 +0200)]
Armature: Fix outline jitter in orthographic mode

22 months agoGPU: Fix issue with multiple Geometry node.
Clément Foucault [Tue, 21 Aug 2018 14:07:13 +0000 (16:07 +0200)]
GPU: Fix issue with multiple Geometry node.

22 months agoFix T56470: unfreed shader in edit mode
Clément Foucault [Tue, 21 Aug 2018 08:30:26 +0000 (10:30 +0200)]
Fix T56470: unfreed shader in edit mode

22 months agoDRW: Fix background image display
Clément Foucault [Tue, 21 Aug 2018 08:22:25 +0000 (10:22 +0200)]
DRW: Fix background image display

This make the workbench draw everything in the background routine just like
eevee. This is because the workbench uses floating point buffers too and
rendering background to this buffer makes it incorrect without proper
color management.

This could be improved because in xray the background is not blended but
dithered as it's drawn after the main pass.

22 months agoGPUMaterial: Geometry Node: Add support for parametric output
Clément Foucault [Mon, 20 Aug 2018 15:59:21 +0000 (17:59 +0200)]
GPUMaterial: Geometry Node: Add support for parametric output

This supports meshes and hairs too. Matches cycles output.

This adds barycentric coords to the GPUBuiltin enum which will also be used
for the wireframe node.

22 months agoGP: Add OPTYPE_USE_EVAL_DATA flag in paste to avoid undo crash
Antonioya [Wed, 22 Aug 2018 11:43:55 +0000 (13:43 +0200)]
GP: Add OPTYPE_USE_EVAL_DATA flag in paste to avoid undo crash

22 months agoUI: Move UV menu to the header.
Pablo Vazquez [Wed, 22 Aug 2018 11:32:14 +0000 (13:32 +0200)]
UI: Move UV menu to the header.

UV Unwrapping is too important to keep it under a sub-menu.

22 months agoFix bevel crash T56287, when face strength goes to 1.
Howard Trickey [Wed, 22 Aug 2018 11:08:42 +0000 (07:08 -0400)]
Fix bevel crash T56287, when face strength goes to 1.

22 months agoMultires: implement reshape operation
Sergey Sharybin [Tue, 21 Aug 2018 13:40:23 +0000 (15:40 +0200)]
Multires: implement reshape operation

The one which is used by applying deformation modifiers on the multires.

22 months agoSubsurf: Implement foreach traversal for subdivsion topology
Sergey Sharybin [Mon, 20 Aug 2018 10:46:44 +0000 (12:46 +0200)]
Subsurf: Implement foreach traversal for subdivsion topology

This makes it more generic process to perform actions which
depend on ptex face + (u, v) and on subdivided vertex index.

Currently it is still just a subdivision calculation process,
but same foreach callbacks can easily be used to propagate
displacement from known vertex locations back to displacement

22 months agoTool System: expose correct UV for vert/edge slide
Campbell Barton [Wed, 22 Aug 2018 07:53:03 +0000 (17:53 +1000)]
Tool System: expose correct UV for vert/edge slide