blender.git
2 years agoCleanup: move theme versioning into own function
Campbell Barton [Wed, 12 Sep 2018 09:58:37 +0000 (19:58 +1000)]
Cleanup: move theme versioning into own function

2 years agoGP: Cleanup unused code
Antonioya [Wed, 12 Sep 2018 09:43:12 +0000 (11:43 +0200)]
GP: Cleanup unused code

2 years agoCleanup: redundant assignment is later overwritten
Campbell Barton [Wed, 12 Sep 2018 09:51:59 +0000 (19:51 +1000)]
Cleanup: redundant assignment is later overwritten

2 years agoRemove ifdef's default audio device
Campbell Barton [Wed, 12 Sep 2018 09:45:43 +0000 (19:45 +1000)]
Remove ifdef's default audio device

If we want to select an audio device based on build flags,
it should be done as a final step.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 12 Sep 2018 09:30:35 +0000 (11:30 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix Cycles issue moving versioning to blenloader
Campbell Barton [Wed, 12 Sep 2018 09:32:54 +0000 (19:32 +1000)]
Fix Cycles issue moving versioning to blenloader

2 years agoCleanup: More correct terminology work
Sergey Sharybin [Wed, 12 Sep 2018 09:00:38 +0000 (11:00 +0200)]
Cleanup: More correct terminology work

Matches threading API.

2 years agoGP: Fix problem with brush angle parameter
Antonioya [Wed, 12 Sep 2018 08:36:12 +0000 (10:36 +0200)]
GP: Fix problem with brush angle parameter

The angle was related to random settings, but this is wrong.

2 years agoCMake: Fix compilation with Bullet enabled
Sergey Sharybin [Wed, 12 Sep 2018 08:34:53 +0000 (10:34 +0200)]
CMake: Fix compilation with Bullet enabled

Obvious bug in recent CName cleanup commit, while BGE library
was indeed mentioned on that line it was to put Bullet libraries
after all the other libraries.

One day we should really switch to a CMake dependency graph to
take care of library dependencies.

2 years agoGP: Change UI panel parameter smooth order
Antonioya [Wed, 12 Sep 2018 08:16:52 +0000 (10:16 +0200)]
GP: Change UI panel parameter smooth order

2 years agoCleanup: move preference versioning into own file
Campbell Barton [Wed, 12 Sep 2018 08:22:00 +0000 (18:22 +1000)]
Cleanup: move preference versioning into own file

It's more convenient to keep version patching in the same place,
this also splits out some function calls from version patching
and supports updating UserDef structs besides the 'U'l global.

2 years agoCleanup: remove BGE references
Campbell Barton [Wed, 12 Sep 2018 07:29:13 +0000 (17:29 +1000)]
Cleanup: remove BGE references

2 years agoCleanup: make shapekey functions local
Campbell Barton [Wed, 12 Sep 2018 07:27:22 +0000 (17:27 +1000)]
Cleanup: make shapekey functions local

Were only exposed for the BGE.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 12 Sep 2018 06:28:50 +0000 (16:28 +1000)]
Merge branch 'master' into blender2.8

2 years agoCMake: add openjpeg 2x search paths
Campbell Barton [Wed, 12 Sep 2018 06:26:15 +0000 (16:26 +1000)]
CMake: add openjpeg 2x search paths

Wasn't finding the include path by on Linux.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 12 Sep 2018 06:21:00 +0000 (16:21 +1000)]
Merge branch 'master' into blender2.8

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 12 Sep 2018 05:54:07 +0000 (15:54 +1000)]
Merge branch 'master' into blender2.8

2 years agoCleanup: remove alpha_check variable from DNA
Campbell Barton [Wed, 12 Sep 2018 05:48:00 +0000 (15:48 +1000)]
Cleanup: remove alpha_check variable from DNA

Just pass as an argument.

2 years agoCleanup: use uint/uchar types in GPU
Campbell Barton [Wed, 12 Sep 2018 02:18:35 +0000 (12:18 +1000)]
Cleanup: use uint/uchar types in GPU

2 years agoCleanup: use _len suffix
Campbell Barton [Wed, 12 Sep 2018 02:07:35 +0000 (12:07 +1000)]
Cleanup: use _len suffix

2 years agoFix scale-cage editmode pivot point
Campbell Barton [Tue, 11 Sep 2018 21:27:17 +0000 (07:27 +1000)]
Fix scale-cage editmode pivot point

2 years agoFix scale-cage refresh w/ view orientation
Campbell Barton [Tue, 11 Sep 2018 21:19:37 +0000 (07:19 +1000)]
Fix scale-cage refresh w/ view orientation

2 years agoTool System: show bisect tool options
Campbell Barton [Tue, 11 Sep 2018 20:24:15 +0000 (06:24 +1000)]
Tool System: show bisect tool options

2 years agoFix T56752: Tooltip flicker alpha on redraw
Clément Foucault [Tue, 11 Sep 2018 20:11:05 +0000 (22:11 +0200)]
Fix T56752: Tooltip flicker alpha on redraw

2 years agoCleanup: style
Campbell Barton [Tue, 11 Sep 2018 19:57:18 +0000 (05:57 +1000)]
Cleanup: style

2 years agoMultires: Fix memory leak on reshape
Sergey Sharybin [Tue, 11 Sep 2018 15:36:39 +0000 (17:36 +0200)]
Multires: Fix memory leak on reshape

Was happening when number of vertices didn't match.

2 years agoDRW: Convert common theme color to linear for viewport render
Clément Foucault [Tue, 11 Sep 2018 15:05:07 +0000 (17:05 +0200)]
DRW: Convert common theme color to linear for viewport render

This is not 100% correct (it should use a transfer function depending
on the display profile) but this is already much better than using srgb.

2 years agoSubdiv: Initial implementation of CCG
Sergey Sharybin [Thu, 6 Sep 2018 15:06:17 +0000 (17:06 +0200)]
Subdiv: Initial implementation of CCG

Attempts to substitude CCGDM with an OpenSubdiv based structure
which has less abstraction levels. The missing part in this
substitude is a face pointers which old CCGDM/multires code was
using to stitch faces (averaging boundaries).

Another curial bit missing: "reshaping" of multires CD_MDISPS
to the state of new PBVH grids.

The new code is only available when OpenSubdiv modifier is
enabled (WITH_OPENSUBDIV_MODIFIER=ON) and with debug value of
128. This is so this WIP code is not interfering with current
production machines in the studio.

Reviewers: brecht

Reviewed By: brecht

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

2 years agoDRW: Don't highjack all debug values (cont)
Clément Foucault [Tue, 11 Sep 2018 14:34:52 +0000 (16:34 +0200)]
DRW: Don't highjack all debug values (cont)

2 years agoDRW: Don't highjack all debug values
Clément Foucault [Tue, 11 Sep 2018 14:27:49 +0000 (16:27 +0200)]
DRW: Don't highjack all debug values

2 years agoFix workspace order and shortcut keys not matching.
Brecht Van Lommel [Tue, 11 Sep 2018 14:20:29 +0000 (16:20 +0200)]
Fix workspace order and shortcut keys not matching.

2 years agoEevee: Prepare for fullres tracing
Clément Foucault [Tue, 11 Sep 2018 14:15:34 +0000 (16:15 +0200)]
Eevee: Prepare for fullres tracing

2 years agoEevee: Fix downsampling shader with textureGather
Clément Foucault [Tue, 11 Sep 2018 14:14:29 +0000 (16:14 +0200)]
Eevee: Fix downsampling shader with textureGather

This was leading to issues with all raytracing and AO algorithm.

Fix T55619

2 years agoGPUMaterial: Fix issue with coloramp and constant interpolation
Clément Foucault [Mon, 10 Sep 2018 16:29:14 +0000 (18:29 +0200)]
GPUMaterial: Fix issue with coloramp and constant interpolation

It was not respecting the clamp to edge texture param because we use
texelFetch directly in this case.

2 years agoCloth: Fix mistake in recent angular bending commit (b6f0f8a5b5a)
Luca Rood [Tue, 11 Sep 2018 14:09:45 +0000 (16:09 +0200)]
Cloth: Fix mistake in recent angular bending commit (b6f0f8a5b5a)

The angular spring force computation function was being called even in
linear mode, with empty angular springs.

2 years agoFollowup for previous PBVH commit
Sergey Sharybin [Tue, 11 Sep 2018 13:32:02 +0000 (15:32 +0200)]
Followup for previous PBVH commit

Didn't realize the index buffer is stored once in a BVH
and same pointer is reused. Surprisingly, simple files
were fixed with the previous fix.

Now disabled the optimization all together, and it was
simpler to just completely remove all residue of the
code. It is likely to be a different implementation
anyway, so no need to try to keep code in a semi-broken
state.

2 years agoGPUVertBuf.fill: support for objects with buffer interface.
mano-wii [Tue, 11 Sep 2018 13:03:53 +0000 (10:03 -0300)]
GPUVertBuf.fill: support for objects with buffer interface.

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

2 years agoFIx/workaround wrong number of primitives in PBVG grid buffers
Sergey Sharybin [Tue, 11 Sep 2018 12:41:39 +0000 (14:41 +0200)]
FIx/workaround wrong number of primitives in PBVG grid buffers

Nodes can have different number of grids, so can not so simply
re-use index buffer across nodes. For now allow re-using buffer
if number of grids matches.

The issue is, number of grids is probably almost never matches,
so in order to have this optimization working need more tricks.
Maybe we can "instance" index buffers?

2 years agoUI: fix redo panel becoming permanently hidden
Campbell Barton [Tue, 11 Sep 2018 12:39:38 +0000 (22:39 +1000)]
UI: fix redo panel becoming permanently hidden

2 years agoBuild: require OpenJPEG 2.x minimum, remove bundled version.
Brecht Van Lommel [Thu, 30 Aug 2018 12:20:19 +0000 (14:20 +0200)]
Build: require OpenJPEG 2.x minimum, remove bundled version.

* WITH_SYSTEM_OPENJPEG is removed and is now always on, this was already
  the case for macOS and Windows.
* This should not break existing Linx builds. If there is no new enough
  OpenJPEG installed, CMake will no find libopenjp2 and WITH_IMAGE_OPENJPEG
  will be disabled.
* install_deps.sh was updated with new package names, since distributions
  put this version in a new package.

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

2 years agoWorkspace: support reordering of workspaces from RMB menu.
Brecht Van Lommel [Thu, 23 Aug 2018 14:13:52 +0000 (16:13 +0200)]
Workspace: support reordering of workspaces from RMB menu.

Drag and drop will follow later, it's a bit complicated to make this work
reliable in the current UI code.

2 years agoCleanup: remove unused GPU code.
Brecht Van Lommel [Tue, 11 Sep 2018 09:34:03 +0000 (11:34 +0200)]
Cleanup: remove unused GPU code.

2 years agoPBVH: Fix miossing normals for grids
Sergey Sharybin [Tue, 11 Sep 2018 09:50:09 +0000 (11:50 +0200)]
PBVH: Fix miossing normals for grids

2 years agoGP: Use original datablock and not evaluated version
Antonioya [Tue, 11 Sep 2018 08:29:33 +0000 (10:29 +0200)]
GP: Use original datablock and not evaluated version

This is required to avoid COW delay while drawing.

2 years agoCleanup: remove dead code
Campbell Barton [Tue, 11 Sep 2018 08:30:55 +0000 (18:30 +1000)]
Cleanup: remove dead code

2 years agoCleanup: unused variables
Campbell Barton [Tue, 11 Sep 2018 08:15:55 +0000 (18:15 +1000)]
Cleanup: unused variables

2 years agoCorrect merge conflict
Campbell Barton [Tue, 11 Sep 2018 07:47:30 +0000 (17:47 +1000)]
Correct merge conflict

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 11 Sep 2018 07:45:38 +0000 (17:45 +1000)]
Merge branch 'master' into blender2.8

2 years agoCleanup: unused variables
Campbell Barton [Tue, 11 Sep 2018 07:30:05 +0000 (17:30 +1000)]
Cleanup: unused variables

2 years agoUI: use property split for motion paths
William Reynish [Tue, 11 Sep 2018 06:49:52 +0000 (16:49 +1000)]
UI: use property split for motion paths

2 years agoError in last commit
Campbell Barton [Tue, 11 Sep 2018 06:37:56 +0000 (16:37 +1000)]
Error in last commit

2 years agoFix scale cage tool never using object boundbox
Campbell Barton [Tue, 11 Sep 2018 06:19:07 +0000 (16:19 +1000)]
Fix scale cage tool never using object boundbox

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Tue, 11 Sep 2018 06:03:31 +0000 (08:03 +0200)]
Merge branch 'master' into blender2.8

2 years agoBuild: update for new macOS libraries.
Brecht Van Lommel [Mon, 10 Sep 2018 20:24:37 +0000 (22:24 +0200)]
Build: update for new macOS libraries.

Run "make update", or "svn update" in lib/darwin to get the matching
precompiled libraries.

2 years agoBuild Environment: updates for macOS.
Brecht Van Lommel [Mon, 10 Sep 2018 12:25:06 +0000 (14:25 +0200)]
Build Environment: updates for macOS.

Mainly this is following Linux to build own xml2/lzma/ssl/sqlite and linking
them all statically. This ensures the Python ssl module uses a recent openssl
version rather than a very old one shipped with macOS.

2 years agoCleanup: use UI_ prefix for block flag
Campbell Barton [Tue, 11 Sep 2018 05:08:08 +0000 (15:08 +1000)]
Cleanup: use UI_ prefix for block flag

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 11 Sep 2018 05:01:41 +0000 (15:01 +1000)]
Merge branch 'master' into blender2.8

2 years agoCorrect own error in recent transform orientation changes
Campbell Barton [Tue, 11 Sep 2018 05:00:50 +0000 (15:00 +1000)]
Correct own error in recent transform orientation changes

2 years agoCleanup: replace magic number
Campbell Barton [Tue, 11 Sep 2018 04:31:19 +0000 (14:31 +1000)]
Cleanup: replace magic number

2 years agoWorkaround T56752: redo panel alpha flicker
Campbell Barton [Tue, 11 Sep 2018 03:49:37 +0000 (13:49 +1000)]
Workaround T56752: redo panel alpha flicker

The bug applies to tooltips, but isn't as noticeable.

2 years agoGPU: utility function to unregister presets
Campbell Barton [Tue, 11 Sep 2018 03:17:30 +0000 (13:17 +1000)]
GPU: utility function to unregister presets

2 years agoUI: use popup draw style for redo panel
Campbell Barton [Tue, 11 Sep 2018 01:22:08 +0000 (11:22 +1000)]
UI: use popup draw style for redo panel

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 11 Sep 2018 01:01:39 +0000 (11:01 +1000)]
Merge branch 'master' into blender2.8

2 years agoUI: split theme draw style into separate field
Campbell Barton [Tue, 11 Sep 2018 00:56:08 +0000 (10:56 +1000)]
UI: split theme draw style into separate field

Was using UI_BLOCK_LOOP to control draw style,
this meant we couldn't use popup theme colors for cases
where it the interface has the same purpose as a popup but happens
not to use this flag.

2 years agoUI: workaround for glitch redo panel glitch
Campbell Barton [Mon, 10 Sep 2018 23:18:26 +0000 (09:18 +1000)]
UI: workaround for glitch redo panel glitch

2 years agoUI: key binding draw code didn't set line-width
Campbell Barton [Mon, 10 Sep 2018 21:46:06 +0000 (07:46 +1000)]
UI: key binding draw code didn't set line-width

2 years agoUI: disable register for insert text
Campbell Barton [Mon, 10 Sep 2018 21:24:33 +0000 (07:24 +1000)]
UI: disable register for insert text

Hides redo panel.

2 years agoUI: disable register for grease pencil select
Campbell Barton [Mon, 10 Sep 2018 21:20:27 +0000 (07:20 +1000)]
UI: disable register for grease pencil select

Avoid showing in redo panel

2 years agoRemaining fix for multiple text-boxes
Dalai Felinto [Mon, 10 Sep 2018 21:13:08 +0000 (18:13 -0300)]
Remaining fix for multiple text-boxes

As mentioned in d81aeb60fe75 the alignment for multiple text boxes should all
respect the same overall padding.

Vertical alignment is fully implemented now.

2 years agoRevert wrong add-on folder update
Antonioya [Mon, 10 Sep 2018 20:04:53 +0000 (22:04 +0200)]
Revert wrong add-on folder update

2 years agoGP: Fix performance problem with big files
Antonioya [Mon, 10 Sep 2018 18:24:05 +0000 (20:24 +0200)]
GP: Fix performance problem with big files

During drawing, the depsgrah was tagged to update and this produced a full copy of the datablock. This tag was done in order to get the right data in drawing engine, but this added a great overhead while drawing and the response of the pen was not good.

Now, the depsgraph is not tagged and the drawing engine uses the original copy data of the buffer datablock. This is not a problem because only can draw in one window at time.

2 years agoEeevee: update to match recent voronoi GLSL features for Cycles.
Charlie Jolly [Mon, 10 Sep 2018 17:39:48 +0000 (19:39 +0200)]
Eeevee: update to match recent voronoi GLSL features for Cycles.

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

2 years agoTexture paint: properly implement image slots for principled BSDF node.
Sebastian Parborg [Mon, 10 Sep 2018 16:18:04 +0000 (18:18 +0200)]
Texture paint: properly implement image slots for principled BSDF node.

Now we can create new base color, roughness, metallic, specular, normal,
bump and displacement images, and linked them to the appropriate socket.

Also fixes image nodes inside groups not being visible.

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

2 years agoCleanup: fix compiler warnings.
Brecht Van Lommel [Mon, 10 Sep 2018 14:12:11 +0000 (16:12 +0200)]
Cleanup: fix compiler warnings.

2 years agoFix Cycles principled BSDF black with transmission and IOR 1.0.
Brecht Van Lommel [Mon, 10 Sep 2018 16:49:47 +0000 (18:49 +0200)]
Fix Cycles principled BSDF black with transmission and IOR 1.0.

2 years agoTextbox removal and creation should update text data
Dalai Felinto [Mon, 10 Sep 2018 16:40:20 +0000 (13:40 -0300)]
Textbox removal and creation should update text data

2 years agoEevee: Fix assert when using transparent shadows
Clément Foucault [Mon, 10 Sep 2018 16:05:00 +0000 (18:05 +0200)]
Eevee: Fix assert when using transparent shadows

Was missing some UBO bindings.

2 years agoFix T56627: Crash because of incomplete LightCache
Clément Foucault [Mon, 10 Sep 2018 15:34:36 +0000 (17:34 +0200)]
Fix T56627: Crash because of incomplete LightCache

2 years agoFix assert when toggling Xray mode after going to Solid and lookedev/eevee
Clément Foucault [Mon, 10 Sep 2018 14:27:01 +0000 (16:27 +0200)]
Fix assert when toggling Xray mode after going to Solid and lookedev/eevee

2 years agoEevee: Cleanup DoF implementation
Clément Foucault [Mon, 10 Sep 2018 14:26:18 +0000 (16:26 +0200)]
Eevee: Cleanup DoF implementation

2 years agoEevee: Lookdev: Fix memleak
Clément Foucault [Mon, 10 Sep 2018 10:40:52 +0000 (12:40 +0200)]
Eevee: Lookdev: Fix memleak

2 years agoFix object_utils.py's matrix multiplication (use new @ syntax).
Bastien Montagne [Mon, 10 Sep 2018 16:03:40 +0000 (18:03 +0200)]
Fix object_utils.py's matrix multiplication (use new @ syntax).

2 years agoFix image_utils.py's load_image() helper.
Bastien Montagne [Mon, 10 Sep 2018 15:34:48 +0000 (17:34 +0200)]
Fix image_utils.py's load_image() helper.

2 years agoSilence GP warning
Dalai Felinto [Mon, 10 Sep 2018 14:40:27 +0000 (11:40 -0300)]
Silence GP warning

2 years agoFix T56717: crash removing/adding objects.
Brecht Van Lommel [Mon, 10 Sep 2018 14:06:58 +0000 (16:06 +0200)]
Fix T56717: crash removing/adding objects.

Object bases hash always needs to be freed on library remapping.

2 years agoGP: Cleanup commented lines
Antonioya [Mon, 10 Sep 2018 14:06:27 +0000 (16:06 +0200)]
GP: Cleanup commented lines

2 years agoGP: Remove annotation stroke mode
Antonioya [Mon, 10 Sep 2018 14:06:05 +0000 (16:06 +0200)]
GP: Remove annotation stroke mode

This option has not been working since a lot of time and it looks is unused. When we confirm is not used, we can remove it completely.

2 years agoImage/UV Editor: Remove show other option
Dalai Felinto [Mon, 10 Sep 2018 13:41:36 +0000 (10:41 -0300)]
Image/UV Editor: Remove show other option

This is no longer useful now that we have multi-object editing support.

2 years agoGP: Use correct name for new Stroke object
Antonioya [Mon, 10 Sep 2018 13:29:22 +0000 (15:29 +0200)]
GP: Use correct name for new Stroke object

To follow Blender standards, the name of the new primitive stroke must be different of blank object.

Also changed the default orientation of Suzanne 2D to use the same as other objects (not aligned by default)

2 years agoCleanup: More variables unused in release
Sergey Sharybin [Mon, 10 Sep 2018 07:56:14 +0000 (09:56 +0200)]
Cleanup: More variables unused in release

2 years agoCleanup: Warning in release builds
Sergey Sharybin [Mon, 10 Sep 2018 07:50:50 +0000 (09:50 +0200)]
Cleanup: Warning in release builds

2 years agoCorrect argument type
Campbell Barton [Mon, 10 Sep 2018 07:45:54 +0000 (17:45 +1000)]
Correct argument type

2 years agoPoly Build: disable use_boundary_tear
Campbell Barton [Mon, 10 Sep 2018 07:35:03 +0000 (17:35 +1000)]
Poly Build: disable use_boundary_tear

Without this, it's more like deleting the vertex than dissolving.

2 years agoPoly Build: dissolve was using selection, not highlighted
Campbell Barton [Mon, 10 Sep 2018 07:26:22 +0000 (17:26 +1000)]
Poly Build: dissolve was using selection, not highlighted

Also no need to clear selection history,
BM_mesh_elem_hflag_disable_all handles this.

2 years agoPoly Build: set newly added elements active
Campbell Barton [Mon, 10 Sep 2018 06:24:38 +0000 (16:24 +1000)]
Poly Build: set newly added elements active

2 years agoCleanup: use title caps
Campbell Barton [Mon, 10 Sep 2018 06:14:26 +0000 (16:14 +1000)]
Cleanup: use title caps

2 years agoEdit Mesh: pass Base array to picking functions
Campbell Barton [Mon, 10 Sep 2018 05:42:40 +0000 (15:42 +1000)]
Edit Mesh: pass Base array to picking functions

In some cases we need to use this array afterwards,
so this gives control over which objects are used for picking.

Also use an index argument as return argument
so callers that need to know the index in the array
don't need to calculate it afterwards.

2 years agoCleanup: use 'mesh' in preselect identifiers
Campbell Barton [Mon, 10 Sep 2018 04:44:15 +0000 (14:44 +1000)]
Cleanup: use 'mesh' in preselect identifiers

We may have preselection for other types later.

2 years agoMissing from last commit
Campbell Barton [Mon, 10 Sep 2018 04:40:12 +0000 (14:40 +1000)]
Missing from last commit

2 years agoCleanup: rename edge-ring preselect file
Campbell Barton [Mon, 10 Sep 2018 04:38:13 +0000 (14:38 +1000)]
Cleanup: rename edge-ring preselect file

Having all pre-selection in one file isn't so nice,
differentiate edge-ring from element pre-selection.