blender.git
3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 2 Aug 2018 07:52:22 +0000 (17:52 +1000)]
Merge branch 'master' into blender2.8

3 years agoRNA: make particle enum public
Campbell Barton [Thu, 2 Aug 2018 07:49:03 +0000 (17:49 +1000)]
RNA: make particle enum public

3 years agoFix T56199: Crash on Annotation in (VSE) Image Preview
Joshua Leung [Thu, 2 Aug 2018 04:34:27 +0000 (16:34 +1200)]
Fix T56199: Crash on Annotation in (VSE) Image Preview

In some cases (e.g. using old userpref settings/keymaps)
it was possible to trigger a crash when the wrong GP/Annotation
operators were triggered in the wrong contexts (e.g. using
the old GPENCIL_OT_paint in annotation-only contexts like
all the 2D editors).

This commit resolves several issues that were caused by sloppy
code-churn + features that had been hacked on.

3 years agoDev Tooling: Instrument motion path calculation operator (for bones) to collect timin...
Joshua Leung [Thu, 2 Aug 2018 02:46:15 +0000 (14:46 +1200)]
Dev Tooling: Instrument motion path calculation operator (for bones) to collect timing data

This will be useful for checking on the progress of our optimisation
efforts, and to generate some nice stats for later.

3 years agoArmature Panel Tweaks - Motion Paths/Ghosting
Joshua Leung [Thu, 2 Aug 2018 02:44:17 +0000 (14:44 +1200)]
Armature Panel Tweaks - Motion Paths/Ghosting

Since most animators find Motion Paths more useful than Armature Ghosting:
* Move Motion Paths before Ghosting settings (less scrolling)
* Collapse Ghosting panel by default
* Open Motion Paths panel by default instead

3 years agoUI: Slightly larger action zone for corner resizing
Pablo Vazquez [Wed, 1 Aug 2018 23:26:58 +0000 (01:26 +0200)]
UI: Slightly larger action zone for corner resizing

Pretty minor, from 0.6 to 0.8, but the improvement is noticeable
especially when using a stylus, without overlapping too much with
the buttons and dropdowns in headers.

3 years agoUI: Group similar Grease Pencil brush settings
Pablo Vazquez [Wed, 1 Aug 2018 22:52:45 +0000 (00:52 +0200)]
UI: Group similar Grease Pencil brush settings

3 years agoUI: Remove OpenGL Render operators from Render menu
Pablo Vazquez [Wed, 1 Aug 2018 22:52:08 +0000 (00:52 +0200)]
UI: Remove OpenGL Render operators from Render menu

Rendering OpenGL/Preview is accessible from each editor.
Render settings are accessible from the Film menu when in OpenGL/Preview engine.
It wasn't always predictable especially with Workspaces without or with many viewports.

Also reordering of items, renaming and removal of superfluous icons.

3 years agoCleanup: warnings, trailing space
Campbell Barton [Wed, 1 Aug 2018 22:26:24 +0000 (08:26 +1000)]
Cleanup: warnings, trailing space

3 years agoGPUMaterial: Normal Map Node: Make default inputs interactives
Clément Foucault [Wed, 1 Aug 2018 20:08:08 +0000 (22:08 +0200)]
GPUMaterial: Normal Map Node: Make default inputs interactives

3 years agoGPUMaterial: Fix assert when shader failed to compile.
Clément Foucault [Wed, 1 Aug 2018 19:45:43 +0000 (21:45 +0200)]
GPUMaterial: Fix assert when shader failed to compile.

3 years agoGPUMaterial: Make Mapping node use UBO storage
Clément Foucault [Wed, 1 Aug 2018 17:37:18 +0000 (19:37 +0200)]
GPUMaterial: Make Mapping node use UBO storage

This means tweaking parameter is now interactive and does not need to
recompile the shaders.

3 years agoGPUMaterial: Make Localize tree live longer
Clément Foucault [Wed, 1 Aug 2018 17:25:58 +0000 (19:25 +0200)]
GPUMaterial: Make Localize tree live longer

This is in order to reference the localized node->storage when populating
the UBO data.

3 years agoGPUMaterial: Fix nearest sampling
Clément Foucault [Wed, 1 Aug 2018 16:07:19 +0000 (18:07 +0200)]
GPUMaterial: Fix nearest sampling

texelFetch return vec4(0.0) if the target pixel is outside the texture
rect. So we mimic the default repeate mode that we have for linear
interpolation.

Fix T56156 Mapping-Node doesn't work

3 years agoGPUUniformBuffer: Fix bad memcpy error catched by asan
Clément Foucault [Wed, 1 Aug 2018 16:02:57 +0000 (18:02 +0200)]
GPUUniformBuffer: Fix bad memcpy error catched by asan

We need to copy the size of the gputype not the padded type.

3 years agoFix T56197: Cycles OpenCL build error after recent changes.
Brecht Van Lommel [Wed, 1 Aug 2018 17:31:27 +0000 (19:31 +0200)]
Fix T56197: Cycles OpenCL build error after recent changes.

3 years agoSubsurf: Evaluate all UV layers
Sergey Sharybin [Wed, 1 Aug 2018 16:31:05 +0000 (18:31 +0200)]
Subsurf: Evaluate all UV layers

Before that it was only first UV layer which was properly evaluated,
the rest were ignored. Now all layers are being properly handled.

3 years agoSubsurf: Add API to provide vertex sharpness
Sergey Sharybin [Wed, 1 Aug 2018 14:04:22 +0000 (16:04 +0200)]
Subsurf: Add API to provide vertex sharpness

Currently unused, added for the future and API completeness.

3 years agoSubsurf: Support subdivision of mesh with just loose elements
Sergey Sharybin [Wed, 1 Aug 2018 13:43:57 +0000 (15:43 +0200)]
Subsurf: Support subdivision of mesh with just loose elements

3 years agoSubsurf: Cleanup, remove unused mappings and topology queries
Sergey Sharybin [Wed, 1 Aug 2018 13:21:14 +0000 (15:21 +0200)]
Subsurf: Cleanup, remove unused mappings and topology queries

3 years agoSubsurf: Fix/workaround crashes and failures with non-manifold geometry
Sergey Sharybin [Wed, 1 Aug 2018 12:48:32 +0000 (14:48 +0200)]
Subsurf: Fix/workaround crashes and failures with non-manifold geometry

The idea is simple: do not provide full topology to OpenSubdiv, leave
edges creation to OpenSubdiv itself. This solves issues with non-manifold
meshes which were known to fail, including the ones from T52059.

On a positive side we can simplify our side of converter, keeping code
shorter.

it is still possible that we'll need to ensure all loops has same
winding, but that is less things to worry about.

3 years agoSubsurf: Use edge sharpness directly from converter
Sergey Sharybin [Wed, 1 Aug 2018 13:13:24 +0000 (15:13 +0200)]
Subsurf: Use edge sharpness directly from converter

Seems it's behaving correct now, surely more tests needed, but
this is required for now to move forward.

3 years agoSubsurf: Support subdivision of loose elements
Sergey Sharybin [Tue, 31 Jul 2018 13:09:29 +0000 (15:09 +0200)]
Subsurf: Support subdivision of loose elements

Applies to vertices and edges. Biggest annoyance here is that OpenSubdiv's
topology converter expects that there is no loose geometry, otherwise it
is getting confused.

For now solution is to create some sort of mapping from real Mesh vertex
and edge index to a non-loose-index. Now the annoying part is that this
is an extra step to calculate before we can compare topology, meaning FPS
will not be as great as if we knew for sure that topology didn't change.

Loose edges subdivision is different from what it used to be with old
subdivision code, but probably nice feature now is that endpoints of loose
edges are stay at the coarse vertex locations. This allows to have things
like plane with hair strands, without need to duplicate edge vertices at
endpoints.

All this required some re-work of topology refiner creation, which is now
only passing edges and vertices which are adjacent to face. This is how
topology refiner is supposed to be used, and this is how its validator
also works. Vertices which are adjacent to loose edges are marked as
infinite sharp. This seems to be good-enough approximation for now. In the
future we might tweaks things a bit and push such vertices in average
direction of loose edges, to match old subdivision code closer.

3 years agoFix mistake in atomic bitmap
Sergey Sharybin [Wed, 1 Aug 2018 08:52:01 +0000 (10:52 +0200)]
Fix mistake in atomic bitmap

Internally values are stored as 32bit integers, no idea why i thought
they were 8 bit.

3 years agoSubsurf: Cleanup, remove dead code
Sergey Sharybin [Wed, 1 Aug 2018 08:42:18 +0000 (10:42 +0200)]
Subsurf: Cleanup, remove dead code

3 years agoFix missing poll function for flip_matcap operator (see T56183).
Bastien Montagne [Wed, 1 Aug 2018 15:28:30 +0000 (17:28 +0200)]
Fix missing poll function for flip_matcap operator (see T56183).

3 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 1 Aug 2018 14:13:13 +0000 (16:13 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix T56195: Typo in BLI_array_utils.h.
Bastien Montagne [Wed, 1 Aug 2018 14:12:36 +0000 (16:12 +0200)]
Fix T56195: Typo in BLI_array_utils.h.

3 years agoFix Cycles headless render failing, after grease pencil merge.
Brecht Van Lommel [Wed, 1 Aug 2018 12:21:50 +0000 (14:21 +0200)]
Fix Cycles headless render failing, after grease pencil merge.

Now it should at least succeed when there are no grease pencil objects.

3 years agoCleanup: Remove ToDo comment
Antonioya [Wed, 1 Aug 2018 09:21:37 +0000 (11:21 +0200)]
Cleanup: Remove ToDo comment

3 years agoFix context problem when render in background mode
Antonioya [Wed, 1 Aug 2018 08:58:10 +0000 (10:58 +0200)]
Fix context problem when render in background mode

Bug reported by Sergey.

3 years agoCleanup: Replace "Move Color" to "Assign Material"
Antonioya [Wed, 1 Aug 2018 08:39:16 +0000 (10:39 +0200)]
Cleanup: Replace "Move Color" to "Assign Material"

3 years agoFix T56187: Crash using cursor tool in Edit/Sculpt and Weight Paint mode
Antonioya [Wed, 1 Aug 2018 08:17:05 +0000 (10:17 +0200)]
Fix T56187: Crash using cursor tool in Edit/Sculpt and Weight Paint mode

The transform tried to calculate the multiframe falloff, but there was not any stroke to do that.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 1 Aug 2018 06:39:34 +0000 (16:39 +1000)]
Merge branch 'master' into blender2.8

3 years agoCleanup: remove unused array member
Campbell Barton [Wed, 1 Aug 2018 06:32:22 +0000 (16:32 +1000)]
Cleanup: remove unused array member

3 years agoUI: add 3D view check for grease pencil tool
Campbell Barton [Wed, 1 Aug 2018 06:04:21 +0000 (16:04 +1000)]
UI: add 3D view check for grease pencil tool

3 years agoRNA: add space_type to tool
Campbell Barton [Wed, 1 Aug 2018 06:02:20 +0000 (16:02 +1000)]
RNA: add space_type to tool

3 years agoUI: correct grease pencil placement text
Campbell Barton [Wed, 1 Aug 2018 02:24:32 +0000 (12:24 +1000)]
UI: correct grease pencil placement text

3 years agoKeymap: use Q key for quick menu in gpencil mode
Campbell Barton [Wed, 1 Aug 2018 02:19:46 +0000 (12:19 +1000)]
Keymap: use Q key for quick menu in gpencil mode

Note, the keys for changing line display are now more obscure
(Shift-Q, Shift-Alt-Q), and might be changed.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 31 Jul 2018 23:01:29 +0000 (09:01 +1000)]
Merge branch 'master' into blender2.8

3 years agoCleanup: declare vars or make static
Campbell Barton [Tue, 31 Jul 2018 22:57:31 +0000 (08:57 +1000)]
Cleanup: declare vars or make static

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 31 Jul 2018 22:42:00 +0000 (08:42 +1000)]
Merge branch 'master' into blender2.8

Move 'View3D.flag3' options into 'gp_flag'.

3 years agoDNA: remove View3D.flag3
Campbell Barton [Tue, 31 Jul 2018 22:08:59 +0000 (08:08 +1000)]
DNA: remove View3D.flag3

Having 'flag, flag2, flag3' is getting out of hand especially
when we support increasing the size of types.

Make flag2 into an int.

Note, this looses the 'show world' option,
but it's not such an important setting.

3 years agoFix T56181: Annotations hide proportionnal editing UI buttons
Antonioya [Tue, 31 Jul 2018 20:27:13 +0000 (22:27 +0200)]
Fix T56181: Annotations hide proportionnal editing UI buttons

3 years agoKnifeTool: Use GPUBatch API instead of IMM to fix buffer overflow issue
Clément Foucault [Tue, 31 Jul 2018 18:10:14 +0000 (20:10 +0200)]
KnifeTool: Use GPUBatch API instead of IMM to fix buffer overflow issue

This also include a small optimisation (remove of a double loop and half of
the memory allocation for hit points)

This should fix T55946 Crash using knife tool on mesh with large number of
vertices.

Tried with a 500K vert suzanne and it seems fine.

3 years agoRevert "Gitignore: Ignore diffs in all subdirs"
Aaron Carlisle [Tue, 31 Jul 2018 17:03:48 +0000 (13:03 -0400)]
Revert "Gitignore: Ignore diffs in all subdirs"

This is an issue for some file in the extern dir

This reverts commit d940a081a9f1f4106a5d2d155682695b0a6b0cb6.

3 years agoGitignore: Ignore diffs in all subdirs
Aaron Carlisle [Tue, 26 Jun 2018 17:53:54 +0000 (13:53 -0400)]
Gitignore: Ignore diffs in all subdirs

3 years agoFix crash when rendering viewport within another area
Clément Foucault [Tue, 31 Jul 2018 16:20:57 +0000 (18:20 +0200)]
Fix crash when rendering viewport within another area

This also Fix T55574 Crash on sequencer preview

3 years agoGPUFrameBuffer: Put active framebuffer in GPUContext
Clément Foucault [Tue, 31 Jul 2018 16:16:08 +0000 (18:16 +0200)]
GPUFrameBuffer: Put active framebuffer in GPUContext

instead of being ThreadLocal and leading to incorrect usage.

We still enforce no framebuffer when changing context. We can lift this
restriction later.

3 years agoGPU: Replace malloc/calloc/realloc/free with MEM_* counterpart
Clément Foucault [Tue, 31 Jul 2018 14:54:58 +0000 (16:54 +0200)]
GPU: Replace malloc/calloc/realloc/free with MEM_* counterpart

3 years agoFix set_pixel overflow in fill brush
Antonioya [Tue, 31 Jul 2018 15:02:50 +0000 (17:02 +0200)]
Fix set_pixel overflow in fill brush

The value of the index was above the size of image

3 years agoFix: Motion Paths were still visible after clearing them
Joshua Leung [Tue, 31 Jul 2018 13:27:47 +0000 (01:27 +1200)]
Fix: Motion Paths were still visible after clearing them

After clearing motion paths from objects, those objects needed to be
tagged for copy on write so that the copied data (i.e. viewport)
recieve the changes (i.e. removed paths)

Reported by Hjalti

3 years agoUI: Grease Pencil Simplify tweaks
Pablo Vazquez [Tue, 31 Jul 2018 14:14:05 +0000 (16:14 +0200)]
UI: Grease Pencil Simplify tweaks

Single-column layout and tweaks to tooltips.

3 years agoChange Brush smooth factor to 0.1 by default
Antonioya [Tue, 31 Jul 2018 14:04:57 +0000 (16:04 +0200)]
Change Brush smooth factor to 0.1 by default

The old values were too high.

3 years agoSet overlay default values
Antonioya [Tue, 31 Jul 2018 13:57:11 +0000 (15:57 +0200)]
Set overlay default values

3 years agoEnable ghost onion skin by default
Antonioya [Tue, 31 Jul 2018 13:38:45 +0000 (15:38 +0200)]
Enable ghost onion skin by default

This option was changed by error when implement annotations.

3 years agoFix grease pencil line toggle
Campbell Barton [Tue, 31 Jul 2018 13:36:01 +0000 (23:36 +1000)]
Fix grease pencil line toggle

Replace with generic context toggle operator.

3 years agoFix T55718: Blender 2.8 crashes when converting to Curve from Mesh.
Bastien Montagne [Tue, 31 Jul 2018 13:29:51 +0000 (15:29 +0200)]
Fix T55718: Blender 2.8 crashes when converting to Curve from Mesh.

We only want to care about runtime.mesh_orig if… data is indeed a Mesh! ;)

3 years agoUI: Grease Pencil Onion Skin minor tweaks
Pablo Vazquez [Tue, 31 Jul 2018 13:13:08 +0000 (15:13 +0200)]
UI: Grease Pencil Onion Skin minor tweaks

Avoid double label for same properties in single-column.
Onion Skinning: Group custom colors together, and frame before/after together.

Small changes to tooltips.

3 years agoUI: remove grease pencil settings from topbar
Campbell Barton [Tue, 31 Jul 2018 13:00:17 +0000 (23:00 +1000)]
UI: remove grease pencil settings from topbar

Top bar is only for settings that apply to the next action
not a way to change existing data.

If each stroke could have a different color this would work as expected,
however it was adjusting the current layer color.

3 years agoFix cmake external library build for blosc/freetype on some systems.
Brecht Van Lommel [Tue, 31 Jul 2018 12:22:32 +0000 (14:22 +0200)]
Fix cmake external library build for blosc/freetype on some systems.

3 years agoUI: Metadata panel tweaks
Pablo Vazquez [Tue, 31 Jul 2018 12:31:34 +0000 (14:31 +0200)]
UI: Metadata panel tweaks

Rename "Seq. Strip" to Strip Name, "Sequence Strip" to Use Strip Metadata.
Plus re-arrange of properties and separators for sections.

Thanks @fsiddi for the feedback.

3 years agoFix (unreported) wrong logic in gpencil UI code.
Bastien Montagne [Tue, 31 Jul 2018 11:37:23 +0000 (13:37 +0200)]
Fix (unreported) wrong logic in gpencil UI code.

3 years agoCleanup: pep8, windows line endings
Campbell Barton [Tue, 31 Jul 2018 11:06:08 +0000 (21:06 +1000)]
Cleanup: pep8, windows line endings

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 31 Jul 2018 11:27:51 +0000 (21:27 +1000)]
Merge branch 'master' into blender2.8

3 years agoFix T56170: Fake dependency cycle in new depsgraph + interleaved armature update...
Sergey Sharybin [Tue, 31 Jul 2018 11:23:01 +0000 (13:23 +0200)]
Fix T56170: Fake dependency cycle in new depsgraph + interleaved armature update + proxy

Make proxy copy result more atomic operation.

3 years agoFix memory leak in DRW_cache_gpencil_axes_get
Antonioya [Tue, 31 Jul 2018 11:21:04 +0000 (13:21 +0200)]
Fix memory leak in DRW_cache_gpencil_axes_get

The Batch was created using old function without  GPU_BATCH_OWNS_VBO and the batch was not removed from memory

3 years agoUI: Annotations tool color setting in toolbar
Pablo Vazquez [Tue, 31 Jul 2018 11:08:30 +0000 (13:08 +0200)]
UI: Annotations tool color setting in toolbar

3 years agoFix building w/ FreeBSD
Campbell Barton [Tue, 31 Jul 2018 10:52:36 +0000 (20:52 +1000)]
Fix building w/ FreeBSD

fileno could be a macro which can't take a void pointer.

3 years agoUI: Annotations panel tweak
Pablo Vazquez [Tue, 31 Jul 2018 10:46:50 +0000 (12:46 +0200)]
UI: Annotations panel tweak

"New Note" and "New" datablock do the same, only show one.
Minor code comments cleanup.

3 years agoCleanup: use static variables
Campbell Barton [Tue, 31 Jul 2018 10:44:49 +0000 (20:44 +1000)]
Cleanup: use static variables

3 years agoCleanup: Fix weird comparisons
Antonioya [Tue, 31 Jul 2018 10:44:01 +0000 (12:44 +0200)]
Cleanup: Fix weird comparisons

3 years agoCleanup: Remove overflow array element
Antonioya [Tue, 31 Jul 2018 10:38:44 +0000 (12:38 +0200)]
Cleanup: Remove overflow array element

3 years agoFix assert when load file with shading enabled
Antonioya [Tue, 31 Jul 2018 10:37:58 +0000 (12:37 +0200)]
Fix assert when load file with shading enabled

Credits for this fix goes to Clément Foucault.

3 years agoUI: Collapse Annotations panel by default
Pablo Vazquez [Tue, 31 Jul 2018 10:26:06 +0000 (12:26 +0200)]
UI: Collapse Annotations panel by default

3 years agoCleanup: style, duplicate includes
Campbell Barton [Tue, 31 Jul 2018 10:11:55 +0000 (20:11 +1000)]
Cleanup: style, duplicate includes

3 years agoFix crash opening .blend files with palettes.
Brecht Van Lommel [Tue, 31 Jul 2018 09:45:15 +0000 (11:45 +0200)]
Fix crash opening .blend files with palettes.

Palettes were incorrectly set as having animation data.

3 years agoCleanup: fix compiler warnings.
Brecht Van Lommel [Tue, 31 Jul 2018 09:30:24 +0000 (11:30 +0200)]
Cleanup: fix compiler warnings.

3 years agoRespect ID user count when creating pose on object copy
Sergey Sharybin [Tue, 31 Jul 2018 09:38:10 +0000 (11:38 +0200)]
Respect ID user count when creating pose on object copy

This solves wrong user counter of custom shape when duplicating bone
few times and then undoing all the duplications.

3 years agoDepsgraph: Fix crash on undo of new bone added
Sergey Sharybin [Tue, 31 Jul 2018 09:32:38 +0000 (11:32 +0200)]
Depsgraph: Fix crash on undo of new bone added

Pose is not brought up to date for until exit of edit mode,
so can not use.

3 years agoCleanup: style
Campbell Barton [Tue, 31 Jul 2018 09:21:04 +0000 (19:21 +1000)]
Cleanup: style

3 years agoSubsurf: Disable oprtion for now
Sergey Sharybin [Tue, 31 Jul 2018 09:17:51 +0000 (11:17 +0200)]
Subsurf: Disable oprtion for now

Committed by accident, is too early for this yet.

3 years agoCleanup: trailing space
Campbell Barton [Tue, 31 Jul 2018 09:07:56 +0000 (19:07 +1000)]
Cleanup: trailing space

3 years agoNew Grease Pencil object for 2D animation
Antonioya [Tue, 31 Jul 2018 08:22:19 +0000 (10:22 +0200)]
New Grease Pencil object for 2D animation

This commit merge the full development done in greasepencil-object branch and include mainly the following features.

- New grease pencil object.
- New drawing engine.
- New grease pencil modes Draw/Sculpt/Edit and Weight Paint.
- New brushes for grease pencil.
- New modifiers for grease pencil.
- New shaders FX.
- New material system (replace old palettes and colors).
- Split of annotations (old grease pencil) and new grease pencil object.
- UI adapted to blender 2.8.

You can get more info here:

https://code.blender.org/2017/12/drawing-2d-animation-in-blender-2-8/
https://code.blender.org/2018/07/grease-pencil-status-update/

This is the result of nearly two years of development and I want thanks firstly the other members of the grease pencil team: Daniel M. Lara, Matias Mendiola and Joshua Leung for their support, ideas and to keep working in the project all the time, without them this project had been impossible.

Also, I want thanks other Blender developers for their help, advices and to be there always to help me, and specially to Clément Foucault, Dalai Felinto, Pablo Vázquez and Campbell Barton.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 31 Jul 2018 08:43:37 +0000 (18:43 +1000)]
Merge branch 'master' into blender2.8

3 years agoFix Shape Key retime starting at frame 10
Campbell Barton [Tue, 31 Jul 2018 08:42:22 +0000 (18:42 +1000)]
Fix Shape Key retime starting at frame 10

D3571 by @alm

3 years agoWorkbench: Correct ifndef after recent changes
Sergey Sharybin [Tue, 31 Jul 2018 08:25:54 +0000 (10:25 +0200)]
Workbench: Correct ifndef after recent changes

Usage of matcap image uniform had different ifdef than definition
of that uniform. Assuming the usage was correct, and the definition
needed an update.

Prevents shader from compilation failure and from aborts in debug
builds.

3 years agoSubsurf: Rework in a way that patches boundaries are merged together
Sergey Sharybin [Wed, 25 Jul 2018 14:51:48 +0000 (16:51 +0200)]
Subsurf: Rework in a way that patches boundaries are merged together

The idea is to create vertices along the coarse edges once, without
splitting coarse edges on separate ptex faces. This requires some
indexing magic, vertices within a patch are no longer sequential.

Not sure how to make it nicer without such a black magic looking
calculations (which are basically boiling down to mimicking order
of verts/edges creation).

In the current offsets calculation loose verts and edges are not
properly taken into account, but those are causing topology refiner
to fail anyway, so it needs a bit deeper change.

Reviewers: brecht

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

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 31 Jul 2018 07:03:28 +0000 (17:03 +1000)]
Merge branch 'master' into blender2.8

3 years agoBLF: replace global aa pref w/ monochrome flag
Campbell Barton [Tue, 31 Jul 2018 06:57:05 +0000 (16:57 +1000)]
BLF: replace global aa pref w/ monochrome flag

Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.

3 years agoFix crash w/ missing matcaps
Campbell Barton [Tue, 31 Jul 2018 06:44:35 +0000 (16:44 +1000)]
Fix crash w/ missing matcaps

Building w/o EXR caused this.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 31 Jul 2018 06:24:12 +0000 (16:24 +1000)]
Merge branch 'master' into blender2.8

3 years agoUI: use text hinting (now user preference)
Campbell Barton [Tue, 31 Jul 2018 06:05:31 +0000 (16:05 +1000)]
UI: use text hinting (now user preference)

D3201 by @ambient w/ edits not to impact fonts used for rendering
(only change display for UI text).

3 years agoUI: consistent names for edit-mode overlay
Campbell Barton [Tue, 31 Jul 2018 02:59:48 +0000 (12:59 +1000)]
UI: consistent names for edit-mode overlay

3 years agoFix T56155: Header shows in popover context menu
Campbell Barton [Tue, 31 Jul 2018 00:45:35 +0000 (10:45 +1000)]
Fix T56155: Header shows in popover context menu

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 31 Jul 2018 00:42:19 +0000 (10:42 +1000)]
Merge branch 'master' into blender2.8

3 years agoUI: add check for any kind of popup
Campbell Barton [Tue, 31 Jul 2018 00:37:46 +0000 (10:37 +1000)]
UI: add check for any kind of popup

Fixes T56155 when merging into 2.8

3 years agoFix build error in new build after recent merge.
Brecht Van Lommel [Mon, 30 Jul 2018 21:01:20 +0000 (23:01 +0200)]
Fix build error in new build after recent merge.

3 years agoViewport: use Filmic without scene exposure/gamma/curves for workbench.
Brecht Van Lommel [Mon, 30 Jul 2018 13:44:25 +0000 (15:44 +0200)]
Viewport: use Filmic without scene exposure/gamma/curves for workbench.

This ignores the scene color managment view settings for solid mode and
lookdev when not using scene lights and world. The scene settings are
intended for tweaking renders and should not affect studio lighting and
matcaps.

There may be cases where a simple sRGB transform is better than Filmic
and we could add configuration for this. Not sure if it really matters
and it may be better if we just assume matcaps and studiolights are all
created for one view transform.

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

3 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Mon, 30 Jul 2018 16:38:27 +0000 (18:38 +0200)]
Merge branch 'master' into blender2.8