blender.git
12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 6 Dec 2018 00:27:57 +0000 (11:27 +1100)]
Merge branch 'master' into blender2.8

12 months agoFix T58819: Weight paint gradient crash
Campbell Barton [Thu, 6 Dec 2018 00:19:18 +0000 (11:19 +1100)]
Fix T58819: Weight paint gradient crash

12 months agoFix T56362: sub surface scattering does not work on eevee on radeon hd 7600 series
mano-wii [Wed, 5 Dec 2018 23:22:12 +0000 (21:22 -0200)]
Fix T56362: sub surface scattering does not work on eevee on radeon hd 7600 series

12 months agoFix problem with unused color slot in framebuffer on some bugged AMD GPUs
mano-wii [Wed, 5 Dec 2018 22:59:22 +0000 (20:59 -0200)]
Fix problem with unused color slot in framebuffer on some bugged AMD GPUs

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

12 months agoKeymap: only use MMB workaround whe MMB is enabled
Campbell Barton [Wed, 5 Dec 2018 23:02:25 +0000 (10:02 +1100)]
Keymap: only use MMB workaround whe MMB is enabled

Using double-click with selection breaks selection cycling behavior
(making you have to wait to click again to cycle-select the next item).

12 months agoFix T57770: Edit-mesh wireframe cage select fails
Campbell Barton [Wed, 5 Dec 2018 22:38:08 +0000 (09:38 +1100)]
Fix T57770: Edit-mesh wireframe cage select fails

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 5 Dec 2018 21:48:43 +0000 (08:48 +1100)]
Merge branch 'master' into blender2.8

12 months agoCleanup: unused var, style
Campbell Barton [Wed, 5 Dec 2018 21:45:41 +0000 (08:45 +1100)]
Cleanup: unused var, style

12 months agoDRW: Optimize adjacency data creation a bit
Clément Foucault [Wed, 5 Dec 2018 21:38:02 +0000 (22:38 +0100)]
DRW: Optimize adjacency data creation a bit

This is a very small improvement and only concerns wireframe update.

My tests.
old 6fps > new 7fps > baseline (wireframe disabled) 10fps

12 months agoCleanup: no need to access final mesh
Campbell Barton [Wed, 5 Dec 2018 21:36:36 +0000 (08:36 +1100)]
Cleanup: no need to access final mesh

12 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Gaia Clary [Wed, 5 Dec 2018 21:05:19 +0000 (22:05 +0100)]
Merge remote-tracking branch 'origin/master' into blender2.8

12 months agoFix (devtalk 4053): Collada build with older cmake versions broken
Gaia Clary [Wed, 5 Dec 2018 21:04:10 +0000 (22:04 +0100)]
Fix (devtalk 4053): Collada build with older cmake versions broken

12 months agoGHOST: WGL: Silence Errors when testing opengl context versions
Clément Foucault [Wed, 5 Dec 2018 20:57:35 +0000 (21:57 +0100)]
GHOST: WGL: Silence Errors when testing opengl context versions

12 months agoFix T58407: Wire frames are not showing with subdivision surfaces
Clément Foucault [Wed, 5 Dec 2018 19:33:28 +0000 (20:33 +0100)]
Fix T58407: Wire frames are not showing with subdivision surfaces

12 months agoCleanup: unused function
Campbell Barton [Wed, 5 Dec 2018 20:44:25 +0000 (07:44 +1100)]
Cleanup: unused function

12 months agoFix own mistake in recent rB74361eebe68c.
Bastien Montagne [Wed, 5 Dec 2018 19:52:47 +0000 (20:52 +0100)]
Fix own mistake in recent rB74361eebe68c.

One cannot assign to Class.__dict__, that is not a 'real' dictionnary...

Thanks to @JacquesLucke for noting the issue.

12 months agoFix (unreported, related to T58210) LaplacianDeform binding state incorrectly reporte...
Bastien Montagne [Wed, 5 Dec 2018 17:37:29 +0000 (18:37 +0100)]
Fix (unreported, related to T58210) LaplacianDeform binding state incorrectly reported by RNA.

LaplacianDeform binding handling is a catastrophee in CoW context,
because half of the binding (the laplacian solver cache thingy) is not
saved, and can be re-generated on the fly from stored vcos.

This means that binding is not only done when hitting 'bind' button, but
also at file load, and when some things change.

And this utterly breaks with CoW design, not sure how to fix, will add a
task about that.

But this also means that NULL laplacian solver cache pointer is not a
good check to know whether it is binded or not, only stored vcos are
relevant for that (and the binding flag, of course).

12 months agoFix T58210, Part II: Surface Deform modifier (un)binding is broken.
Bastien Montagne [Wed, 5 Dec 2018 17:33:31 +0000 (18:33 +0100)]
Fix T58210, Part II: Surface Deform modifier (un)binding is broken.

This fixes/clarifies Surface Deform evaluation code that does the
binding, since that part should only be called outside of depsgraph
evaluation, with orig data-blocks and not CoW ones.

Now we have a decent amount of asserts and checks to ensure eveything
works as expected.

Also had to add a special case to get target's mesh in binding case,
since often target's evaluated mesh is not available, in that case (and
in that case only), we can actually compute that mesh (because we are
out of depsgraph evaluation).

12 months agoFix T58210, part I: Surface Deform modifier (un)binding is broken.
Bastien Montagne [Wed, 5 Dec 2018 17:22:18 +0000 (18:22 +0100)]
Fix T58210, part I: Surface Deform modifier (un)binding is broken.

Binding and unbinding *has* to happen outside of 'normal' depsgraph
evaluation of modifiers now that we have CoW, otherwise persistent data
stored in modifier data are always lost!

Note that this is only first step of the fix, modifiers code needs also
some work. Surfacedeform one is in next commit, Laplacian case is much,
much more complicated to handle, given how it uses its cached data. :(

12 months agoMinor cleanup in Laplacian deform modifier DNA code.
Bastien Montagne [Wed, 5 Dec 2018 17:21:13 +0000 (18:21 +0100)]
Minor cleanup in Laplacian deform modifier DNA code.

12 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Gaia Clary [Wed, 5 Dec 2018 19:30:46 +0000 (20:30 +0100)]
Merge remote-tracking branch 'origin/master' into blender2.8

12 months agofix: Collada: remove Class from method definition in header file
Gaia Clary [Wed, 5 Dec 2018 19:28:06 +0000 (20:28 +0100)]
fix: Collada: remove Class from method definition in header file

12 months agoUI: reduce area splitting action zone size.
Harley Acheson [Wed, 5 Dec 2018 15:01:45 +0000 (16:01 +0100)]
UI: reduce area splitting action zone size.

This would overlap with buttons in the header. It's smaller to hit, but
still wider than the outlines for resizing, so hopefully it's fine.

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

12 months agoFix T57939: animated values in compositing nodes not working.
Glenn Tester [Wed, 5 Dec 2018 16:44:29 +0000 (17:44 +0100)]
Fix T57939: animated values in compositing nodes not working.

For now this is not part of copy-on-write, and needs extra animation evaluation.

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

12 months agoFix T58679: Missing modifiers update on changes to texture
Sergey Sharybin [Wed, 5 Dec 2018 16:35:13 +0000 (17:35 +0100)]
Fix T58679: Missing modifiers update on changes to texture

12 months agoDepsgrapgh: Use more distinctive opcode for texture and image evaluation
Sergey Sharybin [Wed, 5 Dec 2018 16:13:26 +0000 (17:13 +0100)]
Depsgrapgh: Use more distinctive opcode for texture and image evaluation

12 months agoGP: Tag datablock after mode change
Antonioya [Wed, 5 Dec 2018 16:21:38 +0000 (17:21 +0100)]
GP: Tag datablock after mode change

12 months agoGP: Add icon for Arc primitive
Charlie Jolly [Wed, 5 Dec 2018 16:03:48 +0000 (16:03 +0000)]
GP: Add icon for Arc primitive

12 months agoGP: Fix precision issue with Circle and Arc tools
Charlie Jolly [Tue, 4 Dec 2018 15:21:09 +0000 (15:21 +0000)]
GP: Fix precision issue with Circle and Arc tools

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

12 months agoFix In front option not working in solid mode
Clément Foucault [Wed, 5 Dec 2018 15:15:48 +0000 (16:15 +0100)]
Fix In front option not working in solid mode

12 months agoGPU: Fix gpu workaround detection
Clément Foucault [Wed, 5 Dec 2018 15:02:52 +0000 (16:02 +0100)]
GPU: Fix gpu workaround detection

12 months agoFix T58762: Issue with weight painting on deformed mesh
Sergey Sharybin [Wed, 5 Dec 2018 15:53:45 +0000 (16:53 +0100)]
Fix T58762: Issue with weight painting on deformed mesh

Was initially reported when painting on a mesh with armature,
which was failing due to missing bbone cache. The issue was
deeper, and was related on the way which object was used to
calculate crazyspace.

12 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Wed, 5 Dec 2018 15:46:12 +0000 (08:46 -0700)]
Merge remote-tracking branch 'origin/master' into blender2.8

12 months agodeps: update opencollada to v1.6.68
Ray Molenkamp [Wed, 5 Dec 2018 15:44:19 +0000 (08:44 -0700)]
deps: update opencollada to v1.6.68

12 months agoFix T58391: correctly handle Curve Shape Key layout in Python API.
Alexander Gavrilov [Wed, 5 Dec 2018 15:30:42 +0000 (18:30 +0300)]
Fix T58391: correctly handle Curve Shape Key layout in Python API.

The layout changed when the radius property was added to shape
keys in 2.8, but the RNA code wasn't updated.

Also, even before that, the code didn't do anything to correctly
handle mixing sub-curves of different type (nurbs vs bezier) in
the same Curve object. Now that case is handled correctly but not
very efficiently by allocating a mapping table when necessary. To
recover some performance, a custom index lookup function is added.

12 months agoGP: Disable Draw Modes if enable Annotation
Antonioya [Wed, 5 Dec 2018 15:31:29 +0000 (16:31 +0100)]
GP: Disable Draw Modes if enable Annotation

When enable annotations with a grease pencil object, the GP Object must be set to Object mode because the annotation Draw and the GP draw are incompatible.

12 months agoFix T58764: solid mode error
Clément Foucault [Wed, 5 Dec 2018 14:47:28 +0000 (15:47 +0100)]
Fix T58764: solid mode error

12 months agoFix T58726: Pixels not being drawn if dpi scalling > 1
Clément Foucault [Wed, 5 Dec 2018 14:31:36 +0000 (15:31 +0100)]
Fix T58726: Pixels not being drawn if dpi scalling > 1

12 months agoDon't tag objects from inside function which is used by dependency graph
Sergey Sharybin [Wed, 5 Dec 2018 14:37:25 +0000 (15:37 +0100)]
Don't tag objects from inside function which is used by dependency graph

This partially reverts 9edc64e255b. If tag is needed, do it outside of
dependency graph evaluation.

12 months agoRemove old dependency graph
Sergey Sharybin [Wed, 5 Dec 2018 14:34:50 +0000 (15:34 +0100)]
Remove old dependency graph

Yes, again.

12 months agoFix T58794: extended shading pie menu wrong order in lookdev mode.
Brecht Van Lommel [Wed, 5 Dec 2018 14:19:52 +0000 (15:19 +0100)]
Fix T58794: extended shading pie menu wrong order in lookdev mode.

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 5 Dec 2018 14:15:06 +0000 (15:15 +0100)]
Merge branch 'master' into blender2.8

12 months agoFix (unreported) building Cycles tests with Embree enabled.
Bastien Montagne [Wed, 5 Dec 2018 14:14:16 +0000 (15:14 +0100)]
Fix (unreported) building Cycles tests with Embree enabled.

12 months agoFix T58104: Duplicated previews for Matcaps/HDRIs in portable installs
Philipp Oeser [Mon, 3 Dec 2018 19:55:36 +0000 (20:55 +0100)]
Fix T58104: Duplicated previews for Matcaps/HDRIs in portable installs

Reviewers: brecht

Maniphest Tasks: T58104

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

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 5 Dec 2018 13:41:00 +0000 (14:41 +0100)]
Merge branch 'master' into blender2.8

12 months agoFix T58756: crash changing shading.type in 3D viewport in inactive screen.
Brecht Van Lommel [Wed, 5 Dec 2018 13:35:55 +0000 (14:35 +0100)]
Fix T58756: crash changing shading.type in 3D viewport in inactive screen.

12 months agoColor management: Fix/workaround broken getDefaultDisplay()
Sergey Sharybin [Wed, 5 Dec 2018 12:34:04 +0000 (13:34 +0100)]
Color management: Fix/workaround broken getDefaultDisplay()

This is something what is caused by OCIO library. The patch
has been submitted there:

  https://github.com/imageworks/OpenColorIO/pull/638

For until it is refined and checked we do workaround from
our side.

12 months agoColor management: Query default view from display
Sergey Sharybin [Wed, 5 Dec 2018 11:06:48 +0000 (12:06 +0100)]
Color management: Query default view from display

Solves weird situation when default display name is queried
from OCIO, but Default view being assumed to be set for it.

Now view is initialized to a default view of that display.

12 months agoColor management: Cleanup, typos
Sergey Sharybin [Wed, 5 Dec 2018 10:53:37 +0000 (11:53 +0100)]
Color management: Cleanup, typos

12 months agoFix T58776, T58030: pressure sensitivity on Linux not working for some tablets.
Brecht Van Lommel [Wed, 5 Dec 2018 12:58:38 +0000 (13:58 +0100)]
Fix T58776, T58030: pressure sensitivity on Linux not working for some tablets.

12 months agoInstall_deps: bump collada version to 1.6.68.
Bastien Montagne [Wed, 5 Dec 2018 12:52:39 +0000 (13:52 +0100)]
Install_deps: bump collada version to 1.6.68.

12 months agoUI: rename UV Edit to UV Editor, for consistency.
Brecht Van Lommel [Wed, 5 Dec 2018 12:51:37 +0000 (13:51 +0100)]
UI: rename UV Edit to UV Editor, for consistency.

12 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Wed, 5 Dec 2018 11:54:45 +0000 (12:54 +0100)]
Merge branch 'master' into blender2.8

12 months agoFix build with old CMake versions.
Brecht Van Lommel [Wed, 5 Dec 2018 11:53:08 +0000 (12:53 +0100)]
Fix build with old CMake versions.

12 months agoCleanup: remove deprecated piece of code in library reading code.
Bastien Montagne [Wed, 5 Dec 2018 10:45:01 +0000 (11:45 +0100)]
Cleanup: remove deprecated piece of code in library reading code.

That one was flagged as useless since 2.77, and only kept 'to be sure'
everything was OK. This was years ago now, and never got any report on
this, so 2.8 sounds like a good time to nuke it.

12 months agoFix T58771: Wrong path to Unit Settings
Jacques Lucke [Wed, 5 Dec 2018 10:25:39 +0000 (11:25 +0100)]
Fix T58771: Wrong path to Unit Settings

Reviewers: brecht

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

12 months agoFix T58772: Stray "forward" and "up" options in 2.8 import addons?
Bastien Montagne [Wed, 5 Dec 2018 09:57:08 +0000 (10:57 +0100)]
Fix T58772: Stray "forward" and "up" options in 2.8 import addons?

Nice side-effect of using new __annotations__ thingy to store
dynamically-generated fields in a class: __annotations__ dict is not
ensured to exist for a given class, so we may end up modifying on of the
parents' one!

12 months agoImplement bvhtree.fromObject
Dalai Felinto [Tue, 4 Dec 2018 22:47:13 +0000 (20:47 -0200)]
Implement bvhtree.fromObject

Passing depsgraph instead of scene, since a scene does not fully define the
state of object you want to use for the BVH.

Also, mesh_create_eval_final_view and mesh_create_eval_final_render are pretty
much the same, so mesh_create_eval_no_deform and
mesh_create_eval_no_deform_render are as well.

Issue reported on: T58734

Reviewers: sergey
https://developer.blender.org/D4032

12 months agoGP: Add missing pressure button to Topbar
Antonioya [Wed, 5 Dec 2018 09:46:41 +0000 (10:46 +0100)]
GP: Add missing pressure button to Topbar

12 months agoUI: split UV editor out of the image space
Campbell Barton [Wed, 5 Dec 2018 03:35:45 +0000 (14:35 +1100)]
UI: split UV editor out of the image space

12 months agoGPU: Cleanup: Replace glFlush by GPU_flush
Clément Foucault [Wed, 5 Dec 2018 03:23:45 +0000 (04:23 +0100)]
GPU: Cleanup: Replace glFlush by GPU_flush

12 months agoGPU: Improve detection of intels UHD graphics
Clément Foucault [Wed, 5 Dec 2018 03:22:32 +0000 (04:22 +0100)]
GPU: Improve detection of intels UHD graphics

12 months agoGPU: Print opengl infos if using --debug-gpu-force-workarounds
Clément Foucault [Wed, 5 Dec 2018 03:03:40 +0000 (04:03 +0100)]
GPU: Print opengl infos if using --debug-gpu-force-workarounds

12 months agoFix T58551: Dragged in images do not display orange highlight border when selected
Clément Foucault [Wed, 5 Dec 2018 02:45:02 +0000 (03:45 +0100)]
Fix T58551: Dragged in images do not display orange highlight border when selected

12 months agoUI: Select Linked Instanced Collection still named Dupligroup
Pablo Vazquez [Wed, 5 Dec 2018 02:40:13 +0000 (03:40 +0100)]
UI: Select Linked Instanced Collection still named Dupligroup

Fixes T58747

12 months agoBKE: Add "--debug-gpu-force-workarounds" to force gpu workarounds
Clément Foucault [Wed, 5 Dec 2018 02:05:39 +0000 (03:05 +0100)]
BKE: Add "--debug-gpu-force-workarounds" to force gpu workarounds

This is nice to test workarounds on other configs that may benefits from
the existing workarounds.

12 months agoFix T58733: Segmentation fault at start causes by shader compillation
Clément Foucault [Wed, 5 Dec 2018 01:15:06 +0000 (02:15 +0100)]
Fix T58733: Segmentation fault at start causes by shader compillation

12 months agoWorkbench: Remove specular shadowing for red and blue metal
Clément Foucault [Wed, 5 Dec 2018 01:08:18 +0000 (02:08 +0100)]
Workbench: Remove specular shadowing for red and blue metal

12 months agoWorkbench: Cleanups and reduce shader variations
Clément Foucault [Wed, 5 Dec 2018 01:07:23 +0000 (02:07 +0100)]
Workbench: Cleanups and reduce shader variations

Also optimize deferred engine by only outputing material data if needed.
This make the bare flat shading mode (no effects) only a depth prepass.

12 months agoWorkbench: Fix workbench broken on some config due to usuned fb slot
Clément Foucault [Tue, 4 Dec 2018 19:29:30 +0000 (20:29 +0100)]
Workbench: Fix workbench broken on some config due to usuned fb slot

This seems to be a driver bug. Only windows + Radeon HD 7500M seems
to be affected. Fix can be extended to more config if necessary.

12 months agoWorkbench: Remove unused framebuffer slot.
Clément Foucault [Tue, 4 Dec 2018 19:23:30 +0000 (20:23 +0100)]
Workbench: Remove unused framebuffer slot.

12 months agoObject: select objects when revealing
Campbell Barton [Wed, 5 Dec 2018 01:05:47 +0000 (12:05 +1100)]
Object: select objects when revealing

Matches behavior for other modes.

12 months agoFix T58661: Shading pie doesn't highlight x-ray when on
Campbell Barton [Wed, 5 Dec 2018 00:50:35 +0000 (11:50 +1100)]
Fix T58661: Shading pie doesn't highlight x-ray when on

12 months agoFix T58690: Disable overlay doesn't hide bones
Campbell Barton [Tue, 4 Dec 2018 23:56:16 +0000 (10:56 +1100)]
Fix T58690: Disable overlay doesn't hide bones

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 5 Dec 2018 00:03:48 +0000 (11:03 +1100)]
Merge branch 'master' into blender2.8

12 months agoFix T49624: Fly uses camera settings outside camera view
Campbell Barton [Tue, 4 Dec 2018 21:36:37 +0000 (08:36 +1100)]
Fix T49624: Fly uses camera settings outside camera view

12 months agoGP: Enable Smooth Sculpt brush when press Shift key
Antonioya [Tue, 4 Dec 2018 21:34:50 +0000 (22:34 +0100)]
GP: Enable Smooth Sculpt brush when press Shift key

12 months agoCleanup: Action zone coordinates
Dalai Felinto [Tue, 4 Dec 2018 19:40:28 +0000 (17:40 -0200)]
Cleanup: Action zone coordinates

No functional changes, but it makes all the coordinates more consistent
(going from small to larger values). It helps debugging in the future
to be able to rule out vertex order as a culprit.

12 months agoFix area splitting from action zone flipping viewports
Dalai Felinto [Tue, 4 Dec 2018 19:30:23 +0000 (17:30 -0200)]
Fix area splitting from action zone flipping viewports

The top-left and bottom-right corners were creating the new area in the
wrong place.

Blender 2.7x only had action zone corners in the top-right, and
bottom-left corners. So it had some hardcoded assumptions based on that.

This commit feels a bit like a hack, but I think it may be fine.

Bug reported via IRC, how to reproduce:

* Change shading to Rendered.
* Split viewport from the top-left corner.

12 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Gaia Clary [Tue, 4 Dec 2018 19:31:30 +0000 (20:31 +0100)]
Merge remote-tracking branch 'origin/master' into blender2.8

12 months agofix T58568: used wrong case in variable name
Gaia Clary [Tue, 4 Dec 2018 19:28:20 +0000 (20:28 +0100)]
fix T58568: used wrong case in variable name

12 months agoMerge branch 'master' into blender2.8
Gaia Clary [Tue, 4 Dec 2018 18:48:21 +0000 (19:48 +0100)]
Merge branch 'master' into blender2.8

12 months agofix T58568 build errors when using collada 1.6.68 or newer
Gaia Clary [Tue, 4 Dec 2018 18:11:33 +0000 (19:11 +0100)]
fix T58568 build errors when using collada 1.6.68 or newer

12 months agoFix T58466: bug in macOS GHOST_GetSwapInterval.
Niels [Tue, 4 Dec 2018 17:40:09 +0000 (18:40 +0100)]
Fix T58466: bug in macOS GHOST_GetSwapInterval.

No user level changes since this function is not used in active code.

12 months agoFix T57620: display custom normals in Edit Mode.
Alexander Gavrilov [Tue, 4 Dec 2018 16:52:30 +0000 (19:52 +0300)]
Fix T57620: display custom normals in Edit Mode.

Since it seems that CD_ORIGINDEX is not available for loops,
the only choice is to simply use the loop normals already
computed by depsgraph after evaluating modifiers.

This revealed a bug where the Auto Smooth settings would be lost
from the mesh after complex modifiers, or after edit mesh to mesh
conversion, so restoring them is needed to get correct results.

12 months agoFix T58609 Subdivision Surface modifier, "Optimal Display" not working
Clément Foucault [Tue, 4 Dec 2018 16:52:16 +0000 (17:52 +0100)]
Fix T58609 Subdivision Surface modifier, "Optimal Display" not working

I tried to make it progressive using the wireframe slide but it did not
work well.

So taking the most straight forward way.

12 months agoWireframe: Optimization: Only draw triangles that have edges
Clément Foucault [Tue, 4 Dec 2018 14:39:30 +0000 (15:39 +0100)]
Wireframe: Optimization: Only draw triangles that have edges

This only happens after a certain wireframe threshold.

We sort triangles into 2 bins (start and end of the buffer) based on a
threshold and just draw the first bin if the wireframe slider is low enough.

This optimization is disabled for deformed meshes when playback is active.
This optimization is only implemented for meshes object for now.

This should help resolve (to some extent) T58188.

12 months agoWireframe: Optimization: Only draw triangles that have edges
Clément Foucault [Tue, 4 Dec 2018 00:30:07 +0000 (01:30 +0100)]
Wireframe: Optimization: Only draw triangles that have edges

This only happens after a certain threshold.

We sort triangles into 2 bins (start and end of the buffer) based on a
threshold and just draw the start bin if the wireframe slider is low enough.

This optimization is disabled for deformed meshes.

This should help resolve (to some extent) T58188.

12 months agoWireframe: Optimization: Output degenerate triangles if no edges
Clément Foucault [Tue, 4 Dec 2018 00:16:13 +0000 (01:16 +0100)]
Wireframe: Optimization: Output degenerate triangles if no edges

12 months agoFix T58700: Modifier error msgs not showing.
Bastien Montagne [Tue, 4 Dec 2018 16:07:47 +0000 (17:07 +0100)]
Fix T58700: Modifier error msgs not showing.

We need to copy those back from evaluated modifierdata to orig one (as
part of `BKE_object_synchronize_to_original()`).

12 months agoCleanup: typo in comments.
Bastien Montagne [Tue, 4 Dec 2018 14:21:36 +0000 (15:21 +0100)]
Cleanup: typo in comments.

12 months agoFix T55774: Crash when reloading clip during prefetch
Sergey Sharybin [Tue, 4 Dec 2018 15:39:21 +0000 (16:39 +0100)]
Fix T55774: Crash when reloading clip during prefetch

Simply kill prefetch jobs when reloading. Not sure what else
we can do here..

12 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Tue, 4 Dec 2018 15:35:16 +0000 (16:35 +0100)]
Merge branch 'master' into blender2.8

12 months agoFix T58118: Make duplicates real does nothing
Sergey Sharybin [Tue, 4 Dec 2018 15:04:10 +0000 (16:04 +0100)]
Fix T58118: Make duplicates real does nothing

The issue was caused by transflag set in geometry evaluation
never copied back top original object.

Now we have a dedicated operation which does all sort copy
back to original object, so we don't have to worry about
atomic assignments or what gets set where.

Still need to move boundbox to the same function, but it
needs some careful doublechecking first.

12 months agoBuildbot: enable support for NVIDIA Turing cards in Cycles (like GTX 20xx).
Brecht Van Lommel [Tue, 4 Dec 2018 10:49:57 +0000 (11:49 +0100)]
Buildbot: enable support for NVIDIA Turing cards in Cycles (like GTX 20xx).

We currently only build the sm_7x kernels with CUDA 10.0, older cards still
use 9.1 until rendering errors are solved for them.

12 months agoCycles: add initial CUDA 10.0 support, but only recommend use for Turing cards.
Brecht Van Lommel [Tue, 4 Dec 2018 11:34:59 +0000 (12:34 +0100)]
Cycles: add initial CUDA 10.0 support, but only recommend use for Turing cards.

There may still be rendering errors when used for older graphics cards.

12 months agoFix T58227: Subdivision Surface Type Simple messes up UVs
Sergey Sharybin [Tue, 4 Dec 2018 14:15:14 +0000 (15:15 +0100)]
Fix T58227: Subdivision Surface Type Simple messes up UVs

This seems to be a bug in OpenSubdiv. For now simply use Catmark
subdivision scheme with infinitely sharp edges.

Later on it's either gets fixed in OpenSubdiv or we do bilinear
subdivision on our side.

12 months agoRemove the Draw Curve operator from the Add menu
Philipp Oeser [Tue, 4 Dec 2018 13:42:08 +0000 (14:42 +0100)]
Remove the Draw Curve operator from the Add menu

this operator was only working in editmode and we now have a dedicated
tool for this.

Fixes T58495

thanx @billreynish for usability advice

12 months agoFix for assert failure in material preview
Sergey Sharybin [Tue, 4 Dec 2018 11:30:24 +0000 (12:30 +0100)]
Fix for assert failure in material preview

All localized datablocks are not supposed to have animation
data associated with them.

There was an easy way to reproduce assert failure: toggle
animation decorator for Viewport Display -> Color.

12 months agoFix T58117: Crash with keyframing, take two
Sergey Sharybin [Tue, 4 Dec 2018 11:11:25 +0000 (12:11 +0100)]
Fix T58117: Crash with keyframing, take two

More operators need to become aware of action possibly being gone.