blender.git
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 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.

2 years agoTool System: use preselect highlight w/ poly-build
Campbell Barton [Sun, 9 Sep 2018 06:11:02 +0000 (16:11 +1000)]
Tool System: use preselect highlight w/ poly-build

- Poly build now uses a new gizmo for pre-selection
  which has the same behavior as loop-cut.

  This replaces hack where mouse-move set the active element
  which was no longer working properly because of missing
  depsgraph updates.

- Multi-object support for poly-build.

- Support for deformed cage.

- Fix error where changing active object wasn't properly
  refreshing the preselect gizmo (for loopcut too).

Currently holding Alt to select non-boundary element's isn't working.

2 years agoCleanup: use function to set the active base
Campbell Barton [Mon, 10 Sep 2018 04:21:11 +0000 (14:21 +1000)]
Cleanup: use function to set the active base

2 years agoCleanup: remove unused field args
Campbell Barton [Mon, 10 Sep 2018 04:05:33 +0000 (14:05 +1000)]
Cleanup: remove unused field args

2 years agoEevee: Depth of Feild: Fix ringing issue of background objects
Clément Foucault [Sun, 9 Sep 2018 21:24:06 +0000 (23:24 +0200)]
Eevee: Depth of Feild: Fix ringing issue of background objects

There was an issue caused by Antialiasing being done after DoF. Move TAA
after DOF and Motion Blur.

Also certain pixel with lower CoC would be spread all over the background
because the neighbooring pixel have higher CoC. So we need to apply some
bilateral filtering when downsampling. Currently we limit the influence of
neighbor pixels with a CoC inside the range [MaxCoC-2, MaxCoC].

2 years agoGP: Improve smooth interpolation calc
Antonioya [Sun, 9 Sep 2018 14:06:10 +0000 (16:06 +0200)]
GP: Improve smooth interpolation calc

2 years agoGP: Fix strange pressure values when drawing
Antonioya [Sun, 9 Sep 2018 12:08:18 +0000 (14:08 +0200)]
GP: Fix strange pressure values when drawing

This strange values produced an "explosion" of the stoke and it was very annoying.

2 years agoGP: missing change in previous commit
Antonioya [Sun, 9 Sep 2018 09:48:02 +0000 (11:48 +0200)]
GP: missing change in previous commit

2 years agoGP: Fix scale problem when object is parented
Antonioya [Sun, 9 Sep 2018 09:41:25 +0000 (11:41 +0200)]
GP: Fix scale problem when object is parented

The stroke was not scaled as expected in child objects.

2 years agoFix T56712: Compositor image loader skips frames.
Bastien Montagne [Sat, 8 Sep 2018 14:46:44 +0000 (16:46 +0200)]
Fix T56712: Compositor image loader skips frames.

Bad removal of 'Fields' option for image sequences...

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Sat, 8 Sep 2018 13:32:44 +0000 (15:32 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/intern/lattice.c

2 years agoFix T56720: Lattice: crash on setting points_u/v/w from python.
Bastien Montagne [Sat, 8 Sep 2018 13:29:39 +0000 (15:29 +0200)]
Fix T56720: Lattice: crash on setting points_u/v/w from python.

One need to check that there is something to free, before trying to free it...

2 years agoFix T56722: Crash - Entering mesh Edit Mode.
Bastien Montagne [Sat, 8 Sep 2018 09:19:07 +0000 (11:19 +0200)]
Fix T56722: Crash - Entering mesh Edit Mode.

Seriously...

2 years agoFix extrude gizmo redo after selection glitch
Campbell Barton [Sat, 8 Sep 2018 03:36:47 +0000 (13:36 +1000)]
Fix extrude gizmo redo after selection glitch

It was possible to adjust extrusion after selection.

2 years agoCorrect last commit
Campbell Barton [Sat, 8 Sep 2018 03:22:34 +0000 (13:22 +1000)]
Correct last commit

2 years agoGizmo: fix extrude depth ordering
Campbell Barton [Sat, 8 Sep 2018 02:30:36 +0000 (12:30 +1000)]
Gizmo: fix extrude depth ordering

2 years agoWM: add temporary field to gizmo's
Campbell Barton [Sat, 8 Sep 2018 02:49:21 +0000 (12:49 +1000)]
WM: add temporary field to gizmo's

2 years agoUI: make extrude gizmo similar size to transform
Campbell Barton [Sat, 8 Sep 2018 00:50:53 +0000 (10:50 +1000)]
UI: make extrude gizmo similar size to transform

2 years agoCleanup: remove redundant assignment
Campbell Barton [Fri, 7 Sep 2018 21:29:15 +0000 (07:29 +1000)]
Cleanup: remove redundant assignment

2 years agoFix gizmo poll function
Campbell Barton [Fri, 7 Sep 2018 21:27:29 +0000 (07:27 +1000)]
Fix gizmo poll function

Missed cast switching to bool return type.

2 years agoCleanup: style
Campbell Barton [Fri, 7 Sep 2018 21:02:58 +0000 (07:02 +1000)]
Cleanup: style

2 years agoUI: Disable popup for object mode delete from menu
Campbell Barton [Fri, 7 Sep 2018 20:56:48 +0000 (06:56 +1000)]
UI: Disable popup for object mode delete from menu

Since there are no options to change, delete immediately.

2 years agoCleanup: Update shortcut in comment
Campbell Barton [Fri, 7 Sep 2018 20:54:03 +0000 (06:54 +1000)]
Cleanup: Update shortcut in comment

2 years agoGizmo: update template to use matrix multiply
Campbell Barton [Fri, 7 Sep 2018 20:51:02 +0000 (06:51 +1000)]
Gizmo: update template to use matrix multiply

2 years agoRNA: update gizmo API for changes in Blender
Campbell Barton [Fri, 7 Sep 2018 20:50:02 +0000 (06:50 +1000)]
RNA: update gizmo API for changes in Blender

- gpu module renamed.
- make gizmo.new() take type as a required argument.

2 years agoRNA: Area.header_text_set text is now required
Campbell Barton [Fri, 7 Sep 2018 20:23:25 +0000 (06:23 +1000)]
RNA: Area.header_text_set text is now required

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 7 Sep 2018 20:03:29 +0000 (06:03 +1000)]
Merge branch 'master' into blender2.8

2 years agoCleanup: move area API into own function
Campbell Barton [Fri, 7 Sep 2018 19:59:28 +0000 (05:59 +1000)]
Cleanup: move area API into own function

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 7 Sep 2018 18:41:27 +0000 (20:41 +0200)]
Merge branch 'master' into blender2.8

2 years agoInstall_deps: fix llvm/clang ARCH package names.
Bastien Montagne [Fri, 7 Sep 2018 18:39:42 +0000 (20:39 +0200)]
Install_deps: fix llvm/clang ARCH package names.

Issue raised in T56540, thanks.

Also tried to re-enable using fedora's llvm/clang packages, would hope
and assume old issue here is fixed.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 7 Sep 2018 18:32:41 +0000 (20:32 +0200)]
Merge branch 'master' into blender2.8

2 years agoInstall_deps: Fix wrong URL for ILMBase/OpenEXR source archives.
Bastien Montagne [Fri, 7 Sep 2018 18:31:50 +0000 (20:31 +0200)]
Install_deps: Fix wrong URL for ILMBase/OpenEXR source archives.

They also went to github...

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 7 Sep 2018 18:22:57 +0000 (20:22 +0200)]
Merge branch 'master' into blender2.8

2 years agoInstall_deps: Fix building python on fedora 28
Bastien Montagne [Fri, 7 Sep 2018 18:20:09 +0000 (20:20 +0200)]
Install_deps: Fix building python on fedora 28

Looks like libffi is now a dependency of python as well...

Done it for the other distro as well, just in case. ;)

2 years agoFix operators from W menu for the API changes
Sergey Sharybin [Fri, 7 Sep 2018 14:40:54 +0000 (16:40 +0200)]
Fix operators from W menu for the API changes

2 years agoGP: Replace hide icon in materials
Antonioya [Fri, 7 Sep 2018 13:53:01 +0000 (15:53 +0200)]
GP: Replace hide icon in materials

Now the layers and materials icons are consistent.

2 years agoDepsgraph: Cleanup, naming
Sergey Sharybin [Fri, 7 Sep 2018 13:09:14 +0000 (15:09 +0200)]
Depsgraph: Cleanup, naming

If something is a list of data, it is to be called list, and data
is to be called data. No need to call list a data and data a weird
two letter abbreviation.

Clarity is our friend!

2 years agoAnnotate Tool: allow drawing dots
Campbell Barton [Fri, 7 Sep 2018 11:16:03 +0000 (21:16 +1000)]
Annotate Tool: allow drawing dots

2 years agoCodestyle cleanup: uvedit_smart_stitch.c
Dalai Felinto [Fri, 7 Sep 2018 10:18:29 +0000 (07:18 -0300)]
Codestyle cleanup: uvedit_smart_stitch.c

2 years agoMulti-Objects: UV_OT_stitch
Alan [Fri, 7 Sep 2018 09:45:34 +0000 (06:45 -0300)]
Multi-Objects: UV_OT_stitch

Reviewers: dfelinto
https://developer.blender.org/D3645

2 years agoSilence warning in release mode
Sergey Sharybin [Fri, 7 Sep 2018 09:55:55 +0000 (11:55 +0200)]
Silence warning in release mode

2 years agoSubdiv: Add ptex offsets to a subdiv structure
Sergey Sharybin [Thu, 6 Sep 2018 13:39:27 +0000 (15:39 +0200)]
Subdiv: Add ptex offsets to a subdiv structure

This is something what we need to know quite often from various places.
Added it as a cached value in Subdiv itself, so it can be queried easily
from any area.

Shouldn't be a problem from memory usage point of view, it's 4MB per
1M faces coarse mesh. This is very low percentage of mesh itself, and
even lower percentage of highres subdivided mesh.

2 years agoCleanup: Unused undef
Sergey Sharybin [Thu, 6 Sep 2018 15:45:35 +0000 (17:45 +0200)]
Cleanup: Unused undef

That symbol is never defined.

2 years agoGP: Fix unreported crash when use Alt key in Surface draw
Antonioya [Fri, 7 Sep 2018 07:29:33 +0000 (09:29 +0200)]
GP: Fix unreported crash when use Alt key in Surface draw

2 years agoGizmo: fix extrude handles
Campbell Barton [Fri, 7 Sep 2018 06:36:02 +0000 (16:36 +1000)]
Gizmo: fix extrude handles

Only use the 2D selection function when 3D selection isn't defined.

Regression from e18a2c4ed7b

2 years agoFix T56707: Assert changing grease pencil modes
Campbell Barton [Fri, 7 Sep 2018 03:35:47 +0000 (13:35 +1000)]
Fix T56707: Assert changing grease pencil modes

2 years agoUI: move toolbar arrow closer to button edge
Campbell Barton [Fri, 7 Sep 2018 02:21:24 +0000 (12:21 +1000)]
UI: move toolbar arrow closer to button edge

Could overlap icons.

2 years agoUI: add useful information to 'Measure' tooltip
Campbell Barton [Fri, 7 Sep 2018 01:48:03 +0000 (11:48 +1000)]
UI: add useful information to 'Measure' tooltip

2 years agoFix missing line width for helper line drawing
Campbell Barton [Fri, 7 Sep 2018 01:35:33 +0000 (11:35 +1000)]
Fix missing line width for helper line drawing

Also scale by pixel size.

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

2 years agoFix normal transform orientation calculation
Campbell Barton [Fri, 7 Sep 2018 01:24:37 +0000 (11:24 +1000)]
Fix normal transform orientation calculation

When using the 'normal' orientation, the normal would be ignored
if the plane couldn't be calculated.

Now use only the normal if the plane is zero length,
this was already done, just not in all cases.

2 years agoFix own error in changes to transform logic
Campbell Barton [Fri, 7 Sep 2018 00:59:43 +0000 (10:59 +1000)]
Fix own error in changes to transform logic

Regression in 3c8e4e4180

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Thu, 6 Sep 2018 18:11:18 +0000 (20:11 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: fix compiler warning.
Brecht Van Lommel [Thu, 6 Sep 2018 18:09:13 +0000 (20:09 +0200)]
Cleanup: fix compiler warning.

2 years agoFix T56704: black / NaN values in Cycles normal pass.
Brecht Van Lommel [Thu, 6 Sep 2018 18:06:23 +0000 (20:06 +0200)]
Fix T56704: black / NaN values in Cycles normal pass.

2 years agoFix T56698: saving render result from compositing as EXR is empty.
Brecht Van Lommel [Thu, 6 Sep 2018 15:32:05 +0000 (17:32 +0200)]
Fix T56698: saving render result from compositing as EXR is empty.

2 years agoFix T56643: crash drag & dropping ID onto a text field.
Brecht Van Lommel [Thu, 6 Sep 2018 15:35:16 +0000 (17:35 +0200)]
Fix T56643: crash drag & dropping ID onto a text field.

2 years agoCleanup: remove unused Blender Internal preview.blend.
Brecht Van Lommel [Thu, 6 Sep 2018 15:16:11 +0000 (17:16 +0200)]
Cleanup: remove unused Blender Internal preview.blend.

2 years agoFix T54329: brush texture preview not working.
Sebastian Parborg [Thu, 6 Sep 2018 14:33:41 +0000 (16:33 +0200)]
Fix T54329: brush texture preview not working.

With the removal of blender internal, the texture preview had to be
rewritten. Now we evaluate and write the texture directly to the
preview buffer instead of going through the renderer.

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

2 years agoFix T56705: Z axis do not displays in side views
Clément Foucault [Thu, 6 Sep 2018 12:48:17 +0000 (14:48 +0200)]
Fix T56705: Z axis do not displays in side views

2 years agoFix T56706: Lattice crash when enter in edit mode
Clément Foucault [Thu, 6 Sep 2018 12:27:21 +0000 (14:27 +0200)]
Fix T56706: Lattice crash when enter in edit mode

2 years agoMulti-Objects: orthographic support for UV project
Dalai Felinto [Thu, 6 Sep 2018 12:24:57 +0000 (09:24 -0300)]
Multi-Objects: orthographic support for UV project

D3375 by @Al

I did a few changes before the commit:
* Initialize flot arrays with {0} instead of memset(foo, 0, sizeof(foo)).
* Use add_v4_v4 instead of for loop.
* Rename uv_map_rotation_matrix_w_offset > uv_map_rotation_matrix_ex.

bjects: orthographic support for UV project

2 years agoUI: add mark/clear seam to UV menu in 3D viewport.
William Reynish [Thu, 6 Sep 2018 12:12:16 +0000 (14:12 +0200)]
UI: add mark/clear seam to UV menu in 3D viewport.

2 years agoGP: Add multiframe support to vertex group operators
Antonioya [Thu, 6 Sep 2018 11:37:37 +0000 (13:37 +0200)]
GP: Add multiframe support to vertex group operators

Before, the operators only worked in the current frame

2 years agoUI / Python: rename X-Ray to In Front, Draw to Display.
Brecht Van Lommel [Mon, 3 Sep 2018 16:58:41 +0000 (18:58 +0200)]
UI / Python: rename X-Ray to In Front, Draw to Display.

See T56648.

2 years agoCMake: add missing headers
Campbell Barton [Thu, 6 Sep 2018 11:23:25 +0000 (21:23 +1000)]
CMake: add missing headers

2 years agoMulti object support for UV live unwrap
Campbell Barton [Thu, 6 Sep 2018 10:46:11 +0000 (20:46 +1000)]
Multi object support for UV live unwrap

D3658 by @Al