2 years agoCleanup: fix harmless compiler warnings.
Brecht Van Lommel [Thu, 16 Aug 2018 15:10:17 +0000 (17:10 +0200)]
Cleanup: fix harmless compiler warnings.

2 years agoPhysics Rigid Body: Use Single Column and Grid Flow layout
Vuk GardaÅ¡eviÄ\87 [Fri, 17 Aug 2018 10:05:16 +0000 (12:05 +0200)]
Physics Rigid Body: Use Single Column and Grid Flow layout

(and Rigid Body Constraint)

See D3613

2 years agoPhysics Soft Body: Use Single Column and Grid Flow layout
Vuk GardaÅ¡eviÄ\87 [Fri, 17 Aug 2018 10:04:26 +0000 (12:04 +0200)]
Physics Soft Body: Use Single Column and Grid Flow layout

See D3612

2 years agoPhysics Dynamic Paint: Use Grid Flow, sub-panels layout
Vuk GardaÅ¡eviÄ\87 [Fri, 17 Aug 2018 10:03:39 +0000 (12:03 +0200)]
Physics Dynamic Paint: Use Grid Flow, sub-panels layout

See D3611

2 years agoPhysics Force Field and Collision: Use Single Column and Grid Flow layout
Vuk GardaÅ¡eviÄ\87 [Fri, 17 Aug 2018 10:02:33 +0000 (12:02 +0200)]
Physics Force Field and Collision: Use Single Column and Grid Flow layout

See D3609

2 years agoPhysics Common: Use Single Column and Grid Flow layout
Vuk GardaÅ¡eviÄ\87 [Fri, 17 Aug 2018 10:01:13 +0000 (12:01 +0200)]
Physics Common: Use Single Column and Grid Flow layout

See D3605

2 years agoPhysics Smoke: Use Single Column and Grid Flow layout
Vuk GardaÅ¡eviÄ\87 [Fri, 17 Aug 2018 09:58:21 +0000 (11:58 +0200)]
Physics Smoke: Use Single Column and Grid Flow layout

See D3567

2 years agoPhysics Fluid: Use Single Column and Grid Flow layout
Vuk Gardašević [Fri, 17 Aug 2018 09:57:24 +0000 (11:57 +0200)]
Physics Fluid: Use Single Column and Grid Flow layout

2 years agoGP: Fix fast drawing error
Antonioya [Fri, 17 Aug 2018 09:08:56 +0000 (11:08 +0200)]
GP: Fix fast drawing error

During the modifications of the drawing engine, this was changed by error.

2 years agoMultires: Fix wrong creation of multires mesh
Sergey Sharybin [Thu, 16 Aug 2018 15:00:24 +0000 (17:00 +0200)]
Multires: Fix wrong creation of multires mesh

Should use evaluated object to query deformed mesh from.

2 years agoArmature: Add ghosting support (old x-ray)
Clément Foucault [Thu, 16 Aug 2018 21:56:58 +0000 (23:56 +0200)]
Armature: Add ghosting support (old x-ray)

2 years agoNon-Meshes: Add ghosting support (old x-ray)
Clément Foucault [Thu, 16 Aug 2018 21:56:33 +0000 (23:56 +0200)]
Non-Meshes: Add ghosting support (old x-ray)

2 years agoFix T56418: Changing to Solid View crashes Blender
Clément Foucault [Thu, 16 Aug 2018 21:55:11 +0000 (23:55 +0200)]
Fix T56418: Changing to Solid View crashes Blender

Everything seems to behave like it should when drawdata is alloced
on instances.

2 years agoOverlay: Fix crash when ghosting is enabled without wireframe
Clément Foucault [Thu, 16 Aug 2018 21:51:15 +0000 (23:51 +0200)]
Overlay: Fix crash when ghosting is enabled without wireframe

2 years agoCleanup: Remove unused uniform and UBO.
Clément Foucault [Thu, 16 Aug 2018 21:39:23 +0000 (23:39 +0200)]
Cleanup: Remove unused uniform and UBO.

2 years agoFix T55722 : Blender 2.8 crashes on startup on old Nvidia cards
Clément Foucault [Thu, 16 Aug 2018 08:59:41 +0000 (10:59 +0200)]
Fix T55722 : Blender 2.8 crashes on startup on old Nvidia cards

2 years agoOverlays: Support for wireframes and edit mode overlay on xray objects
Clément Foucault [Wed, 15 Aug 2018 15:43:39 +0000 (17:43 +0200)]
Overlays: Support for wireframes and edit mode overlay on xray objects

2 years agoGPUFramebuffer: Fix wrong stencil clearing
Clément Foucault [Wed, 15 Aug 2018 15:41:36 +0000 (17:41 +0200)]
GPUFramebuffer: Fix wrong stencil clearing

2 years agoCorrect error in docstring
Campbell Barton [Thu, 16 Aug 2018 14:07:00 +0000 (00:07 +1000)]
Correct error in docstring

2 years agoDocumentation: fixes for building w/ 2.8
Campbell Barton [Thu, 16 Aug 2018 14:00:58 +0000 (00:00 +1000)]
Documentation: fixes for building w/ 2.8

Note, needs to be supported eventually.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 16 Aug 2018 13:49:33 +0000 (15:49 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix T56404: Shape keys of the curves with multiple splines go haywire in edit mode.
Bastien Montagne [Thu, 16 Aug 2018 13:46:40 +0000 (15:46 +0200)]
Fix T56404: Shape keys of the curves with multiple splines go haywire in edit mode.

Very dummy mistake (someone forgot to increment one of the variables in
one of the loops in that spaghetti nightmare that is nurbs shapekey
code), took half an age to spot it... :/

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 16 Aug 2018 13:22:34 +0000 (15:22 +0200)]
Merge branch 'master' into blender2.8

2 years agobuild_environment: Fix compilation of FFmpeg and OpenColorIO on Linux
Sergey Sharybin [Thu, 16 Aug 2018 13:18:02 +0000 (15:18 +0200)]
build_environment: Fix compilation of FFmpeg and OpenColorIO on Linux

2 years agoCleanup: Use dedicated function to copy mesh during evaluation process
Sergey Sharybin [Thu, 16 Aug 2018 12:20:36 +0000 (14:20 +0200)]
Cleanup: Use dedicated function to copy mesh during evaluation process

It is rather fully annoying to have same sets of obscure flags all over.

2 years agoMultires: Implement function to get mesh at multires position of stack
Sergey Sharybin [Thu, 16 Aug 2018 11:00:24 +0000 (13:00 +0200)]
Multires: Implement function to get mesh at multires position of stack

2 years agoMultires: Cleanup, naming and bool type
Sergey Sharybin [Thu, 16 Aug 2018 10:47:22 +0000 (12:47 +0200)]
Multires: Cleanup, naming and bool type

2 years agoUI: add redo panel to clip editor
Campbell Barton [Thu, 16 Aug 2018 10:23:15 +0000 (20:23 +1000)]
UI: add redo panel to clip editor

2 years agoGP: Add new presets for materials
Antonioya [Thu, 16 Aug 2018 09:24:28 +0000 (11:24 +0200)]
GP: Add new presets for materials

This allow create prests without import materials and include a requested predefined settings for Stroke only, Fill only and Stroke and Fill.

2 years agoStatic Override: fix part of the issues with new Collections.
Bastien Montagne [Thu, 16 Aug 2018 09:05:26 +0000 (11:05 +0200)]
Static Override: fix part of the issues with new Collections.

Still a lot to work here, those are much more complicated to handle than
old Groups. :(

2 years agoCursor Tool: add transform orientation type
Campbell Barton [Thu, 16 Aug 2018 06:14:03 +0000 (16:14 +1000)]
Cursor Tool: add transform orientation type

Support using the current transform orientation when placing the cursor.

See: T55036

2 years agobuild_environment: openvdb 5.1.0
Ray Molenkamp [Thu, 16 Aug 2018 02:47:44 +0000 (20:47 -0600)]
build_environment: openvdb 5.1.0

2 years ago3D View: tweaks to navigation gizmo
Campbell Barton [Thu, 16 Aug 2018 02:47:24 +0000 (12:47 +1000)]
3D View: tweaks to navigation gizmo

- Only show axis backdrop when hovering.
- Move closer to the screen corner.

2 years agoUI: move region toggle closer to the screen edge
Campbell Barton [Thu, 16 Aug 2018 02:43:30 +0000 (12:43 +1000)]
UI: move region toggle closer to the screen edge

Reduces 3d view navigation widget overlap.

2 years agoUI: show +/- icons for fill/deep
Campbell Barton [Thu, 16 Aug 2018 02:15:04 +0000 (12:15 +1000)]
UI: show +/- icons for fill/deep

2 years agoUI: hide redo panel for move up/down operators
Campbell Barton [Wed, 15 Aug 2018 22:41:02 +0000 (08:41 +1000)]
UI: hide redo panel for move up/down operators

2 years agoCamera Background: don't show "Not Set" when using Camera Clip
Dalai Felinto [Wed, 15 Aug 2018 20:08:40 +0000 (17:08 -0300)]
Camera Background: don't show "Not Set" when using Camera Clip

2 years agoCamera Reconstruction: Fix sorted scripts
Dalai Felinto [Wed, 15 Aug 2018 19:10:09 +0000 (16:10 -0300)]
Camera Reconstruction: Fix sorted scripts

* 3D Markers to Mesh
* Link Empty to Track
* Set as Background

Note, the "Setup Tracking Scene" was not addressed. Pending for this script is:
* Update world for EEVEE settings
* Adjust the layer code to use collections
* Remove broken world API

2 years agoCamera Reconstruction: Camera Path
Dalai Felinto [Wed, 15 Aug 2018 15:22:29 +0000 (12:22 -0300)]
Camera Reconstruction: Camera Path

The only difference from 2.7x is that we were using glLineWidth(2.0) before,
which is not supported reliably in the latest OpenGL.

Big thanks to Clément Foucault for helping with this, on the design as well as
debugging the implementation.

For the records, I'm creating and destroying batches for the path geometry at
every draw. The pipeline is as follows:

 1. Create GPUBatch with all the points
 2. Create new shgroup with simple shader
 3. Add call with the gpubatch
 4. Save it in a linked list in stl->g_data
 5. Free it after all drawing is done

2 years agoCamera Reconstruction: Draw solid spheres
Dalai Felinto [Wed, 15 Aug 2018 22:05:20 +0000 (19:05 -0300)]
Camera Reconstruction: Draw solid spheres

If in SOLID "mode", and x-ray, draw the empty spheres still.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 15 Aug 2018 22:18:52 +0000 (08:18 +1000)]
Merge branch 'master' into blender2.8

2 years agoCleanup: unused arg
Campbell Barton [Wed, 15 Aug 2018 22:18:25 +0000 (08:18 +1000)]
Cleanup: unused arg

2 years agoCorrect flag use in recent object select change
Campbell Barton [Wed, 15 Aug 2018 22:17:26 +0000 (08:17 +1000)]
Correct flag use in recent object select change

Confusingly it worked, but was wrong.

2 years agoCleanup: rename transform UI values
Campbell Barton [Wed, 15 Aug 2018 21:59:49 +0000 (07:59 +1000)]
Cleanup: rename transform UI values

See: T54858

2 years agoCleanup: Silent compiler warnings
Antonioya [Wed, 15 Aug 2018 20:53:57 +0000 (22:53 +0200)]
Cleanup: Silent compiler warnings

2 years agoGP: Revert previous commit for fixing compiler error
Antonioya [Wed, 15 Aug 2018 20:11:44 +0000 (22:11 +0200)]
GP: Revert previous commit for fixing compiler error

The function must be static. The error was the definition in header file must be removed. This error was not detected by Microsoft compiler but Linux compiler fails.

2 years agoFix build after GreasePencil commit
Dalai Felinto [Wed, 15 Aug 2018 19:11:18 +0000 (16:11 -0300)]
Fix build after GreasePencil commit

2 years agobuild_environment: opencolorio 1.1.0
Ray Molenkamp [Wed, 15 Aug 2018 18:32:34 +0000 (12:32 -0600)]
build_environment: opencolorio 1.1.0

-Moved from dynamic link to static on windows
-gained lcms/tinyxml/yamlcpp deps, since we need a little more control over the build flags than the build-in options will provide.

2 years agoGP: Add multiframe support to clean loose operator
Antonioya [Wed, 15 Aug 2018 18:27:38 +0000 (20:27 +0200)]
GP: Add multiframe support to clean loose operator

2 years agoGP: New clean loose points operator
Antonioya [Wed, 15 Aug 2018 15:01:27 +0000 (17:01 +0200)]
GP: New clean loose points operator

This operator clean any stroke below a defined number of points. This is used because sometimes when use eraser some points keep missing.

Also some changes in the UI menu.

2 years agoGP: Redesign logic of drawing engine for object instance support
Antonioya [Wed, 15 Aug 2018 14:07:16 +0000 (16:07 +0200)]
GP: Redesign logic of drawing engine for object instance support

The initial design assumed that there was only one object for each unique name, but that was not the case when instances were created.

Now, instances are supported and speed has been greatly improved when repetitions are used.

As a result of this change, the option to create objects has been removed in the Instances modifier. This option was strange and was also against Blender's design rules, since a modifier should never create objects. The old functionality of the modifier can be achieved with instances.

Also, several memory leakage problems that were not previously detected have been eliminated, and especially in the grid and in the drawing process

Onion Skin is not supported in multi-user datablocks.  Support this, makes incompatible with instances. We need find a solution in the long term, but now it's better keep disabled and make instances work. Anyway, the new instances makes unnecessary to use muli-user datablocks.

2 years agoFix image editor not vertically centering images with region overlap.
Brecht Van Lommel [Wed, 15 Aug 2018 17:24:00 +0000 (19:24 +0200)]
Fix image editor not vertically centering images with region overlap.

2 years agoCleanup: remove unused R_ORTHO / R_PANORAMA flags.
Brecht Van Lommel [Wed, 15 Aug 2018 16:38:45 +0000 (18:38 +0200)]
Cleanup: remove unused R_ORTHO / R_PANORAMA flags.

2 years agoFix pose mode border deselect not working after recent changes.
Brecht Van Lommel [Wed, 15 Aug 2018 15:44:50 +0000 (17:44 +0200)]
Fix pose mode border deselect not working after recent changes.

2 years agoFix T56012: brush stencil overlay draws in the wrong location.
Brecht Van Lommel [Wed, 15 Aug 2018 15:16:21 +0000 (17:16 +0200)]
Fix T56012: brush stencil overlay draws in the wrong location.

2 years agoCleanup: stop using DerivedMesh in mesh cache modifier.
Brecht Van Lommel [Wed, 15 Aug 2018 14:21:43 +0000 (16:21 +0200)]
Cleanup: stop using DerivedMesh in mesh cache modifier.

2 years agoFix T55587: bugs with popovers in collapsed menus, like the timeline header.
Brecht Van Lommel [Wed, 15 Aug 2018 13:54:58 +0000 (15:54 +0200)]
Fix T55587: bugs with popovers in collapsed menus, like the timeline header.

2 years agoUI: tweak drawing of header status text for transparent headers.
Brecht Van Lommel [Wed, 15 Aug 2018 12:47:48 +0000 (14:47 +0200)]
UI: tweak drawing of header status text for transparent headers.

2 years agoMultires: Initial groundwork to hook up displacement to new Subdiv object
Sergey Sharybin [Tue, 14 Aug 2018 15:05:54 +0000 (17:05 +0200)]
Multires: Initial groundwork to hook up displacement to new Subdiv object

Adds a displacement support for OpenSubdiov based subsurf object implemented
as a callback which gives vector displacement in object space. Currently is
implemented to calculate displacement based on myltires displacement grids,
but we can support things in the future if needed.

Submitting to review to see if there is something obviously wrong in the
direction (old multires code was sharing same displacement code to both
calculate final displaced mesh and reshape an existing one, which is rather
confusing and probably can be done more cleanly?).

Reviewers: brecht

Reviewed By: brecht

Differential Revision:

2 years agoClip Reconstruction: Cleanup - use const for selection synchronize
Dalai Felinto [Wed, 15 Aug 2018 13:00:38 +0000 (10:00 -0300)]
Clip Reconstruction: Cleanup - use const for selection synchronize

In order to avoid the discard qualifier warning I had to change a few extra

2 years agoSkip bundle names when drawing selection pass
Dalai Felinto [Wed, 15 Aug 2018 12:54:31 +0000 (09:54 -0300)]
Skip bundle names when drawing selection pass

2 years agoFix border select operations in object mode
Campbell Barton [Wed, 15 Aug 2018 12:17:03 +0000 (22:17 +1000)]
Fix border select operations in object mode

2 years agoUI: correct selection operation names
Campbell Barton [Wed, 15 Aug 2018 12:52:16 +0000 (22:52 +1000)]
UI: correct selection operation names

2 years agoFix viewport selection of markers not updating in all editors
Dalai Felinto [Mon, 13 Aug 2018 19:59:42 +0000 (16:59 -0300)]
Fix viewport selection of markers not updating in all editors

This includes selections both in the clip editor as the viewport.
The selection is implemented as a synchronization function called from the eval
selection update node in depsgraph.

2 years agoMotion Tracking Reconstruction Viewport Drawing (T51544)
Dalai Felinto [Mon, 13 Aug 2018 14:54:03 +0000 (11:54 -0300)]
Motion Tracking Reconstruction Viewport Drawing (T51544)

* Draw bundle names.
* Draw bundle shapes (but spheres).
* Draw custom colors for bundles.
* Support selecting bundles.
* Object bundles also fully tested.

Missing from this commit:
* Camera path.
* Spheres are not drawn as solid.
* Blue dashed line from camera to tracker objects.

2 years agoSubdiv: Cleanup, dead code
Sergey Sharybin [Wed, 15 Aug 2018 09:38:13 +0000 (11:38 +0200)]
Subdiv: Cleanup, dead code

2 years agoSubdiv: Fix memory leak interpolating CD_MDISP
Sergey Sharybin [Wed, 15 Aug 2018 09:28:00 +0000 (11:28 +0200)]
Subdiv: Fix memory leak interpolating CD_MDISP

Can not copy data without freeing the previous storage.

2 years agoUI: adjust names for select operations
Campbell Barton [Wed, 15 Aug 2018 06:11:41 +0000 (16:11 +1000)]
UI: adjust names for select operations

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 15 Aug 2018 05:55:14 +0000 (15:55 +1000)]
Merge branch 'master' into blender2.8

Fixes enum-flags having no text w/ property-split

2 years agoCleanup: set expand variable for all enum-flags
Campbell Barton [Wed, 15 Aug 2018 05:48:20 +0000 (15:48 +1000)]
Cleanup: set expand variable for all enum-flags

No functional change, needed for fix in 2.8x

2 years agoIcons: regenerate from 'icons_geom.blend'
Campbell Barton [Wed, 15 Aug 2018 03:21:07 +0000 (13:21 +1000)]
Icons: regenerate from 'icons_geom.blend'

Regenerating all to remove zero area triangles.

Previously icons included files not committed to lib/.
This is the output of 'make icons_geom' for svn rev: 62081.

2 years agoIcons: geometry now checks quantized area
Campbell Barton [Wed, 15 Aug 2018 03:13:45 +0000 (13:13 +1000)]
Icons: geometry now checks quantized area

Previously back-facing normal was checked which isn't ideal
because a triangle that starts out zero-area may become
visible once it's coordinates are quantized.

2 years agoFix T56359: Unitialized variable in Cycles OpenCL could cause crashes.
Stefan Werner [Tue, 14 Aug 2018 20:51:53 +0000 (22:51 +0200)]
Fix T56359: Unitialized variable in Cycles OpenCL could cause crashes.

2 years agoGPUShader: Remove some of the unused shaders
Clément Foucault [Tue, 14 Aug 2018 19:37:31 +0000 (21:37 +0200)]
GPUShader: Remove some of the unused shaders

keeping GPU_SHADER_SMOKE until other occurences are removed.

2 years agoGHOST: Make win32 errors more readable on some drivers
Clément Foucault [Tue, 14 Aug 2018 18:28:18 +0000 (20:28 +0200)]
GHOST: Make win32 errors more readable on some drivers

2 years agoDRW: Fix incorrect default stencil value
Clément Foucault [Tue, 14 Aug 2018 18:26:48 +0000 (20:26 +0200)]
DRW: Fix incorrect default stencil value

2 years agoWorkbench: Add support for the xray object option
Clément Foucault [Tue, 14 Aug 2018 18:26:21 +0000 (20:26 +0200)]
Workbench: Add support for the xray object option

Xray object can be see through other objects. They cast shadows as well
but cannot receive then.

2 years agoFix (unreported): misuse of GL Context when creating new window and/or rendering.
mano-wii [Tue, 14 Aug 2018 19:10:35 +0000 (16:10 -0300)]
Fix (unreported): misuse of GL Context when creating new window and/or rendering.

2 years agoEEVEE: Volumes - get current frame from depsgraph
Dalai Felinto [Tue, 14 Aug 2018 18:58:16 +0000 (15:58 -0300)]
EEVEE: Volumes - get current frame from depsgraph

The value from scene is not up to date at all times.

2 years agoFix viewport background video/clip not updating on playback
Dalai Felinto [Tue, 14 Aug 2018 18:52:11 +0000 (15:52 -0300)]
Fix viewport background video/clip not updating on playback

CFRA should be avoided, it is not the depsgraph current frame, it is only
updated on cow flush.

2 years agoFix gpu building after cleanup
Dalai Felinto [Tue, 14 Aug 2018 19:07:19 +0000 (16:07 -0300)]
Fix gpu building after cleanup

Broken since: a3c9f4de7041993ace15078e9943dc2e2c7c1fff

2 years agoCleanup: remove unused theme color functions using legacy GL.
Brecht Van Lommel [Tue, 14 Aug 2018 18:03:08 +0000 (20:03 +0200)]
Cleanup: remove unused theme color functions using legacy GL.

2 years agoCleanup: remove unused basic shader, we use many specialized shaders now.
Brecht Van Lommel [Tue, 14 Aug 2018 17:56:43 +0000 (19:56 +0200)]
Cleanup: remove unused basic shader, we use many specialized shaders now.

2 years agoFix masks not drawing with draw type set to dashed.
Brecht Van Lommel [Tue, 14 Aug 2018 17:54:33 +0000 (19:54 +0200)]
Fix masks not drawing with draw type set to dashed.

2 years agoFix uneven column widths in user preferences interface and editing.
Brecht Van Lommel [Tue, 14 Aug 2018 17:27:59 +0000 (19:27 +0200)]
Fix uneven column widths in user preferences interface and editing.

2 years agoCleanup: unused variables
Campbell Barton [Tue, 14 Aug 2018 15:52:39 +0000 (01:52 +1000)]
Cleanup: unused variables

2 years ago3D View boarder/lasso select tool options
Campbell Barton [Tue, 14 Aug 2018 00:28:41 +0000 (10:28 +1000)]
3D View boarder/lasso select tool options

Add tool options to control how select operates (add/sub/set/and/xor).

Note: edit mode armature select still needs to support all options,
this is complicated by how it handles partial end-point selection.

2 years agoFix T55719: crash with sculpt dyntopo and constant detail resolution sampling.
Brecht Van Lommel [Tue, 14 Aug 2018 14:36:45 +0000 (16:36 +0200)]
Fix T55719: crash with sculpt dyntopo and constant detail resolution sampling.

2 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Tue, 14 Aug 2018 14:00:49 +0000 (08:00 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

2 years agomake.bat: fix ninja support.
Ray Molenkamp [Tue, 14 Aug 2018 13:57:21 +0000 (07:57 -0600)]
make.bat: fix ninja support.

only worked with a fresh build folder.

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Tue, 14 Aug 2018 13:41:11 +0000 (15:41 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix use of uninitialized variable in some cases, in recent bugfix.
Brecht Van Lommel [Tue, 14 Aug 2018 13:27:25 +0000 (15:27 +0200)]
Fix use of uninitialized variable in some cases, in recent bugfix.

2 years agoSync rna_access rna property update cow check with depsgraph
Dalai Felinto [Tue, 14 Aug 2018 13:12:05 +0000 (10:12 -0300)]
Sync rna_access rna property update cow check with depsgraph

This is a manual synchronization. If we need to re-use the same util in both
areas it would be welcomed as well. For now this at least get things back to a
working state.

2 years agoBMesh: define suptype for bevel normals.out
Campbell Barton [Tue, 14 Aug 2018 12:26:19 +0000 (22:26 +1000)]
BMesh: define suptype for bevel normals.out

Not doing this broke doc building.

2 years agoCorrect error in py doc generation
Campbell Barton [Tue, 14 Aug 2018 12:18:24 +0000 (22:18 +1000)]
Correct error in py doc generation

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 14 Aug 2018 12:10:47 +0000 (14:10 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix T56363: Blender crash when deleting a curve object.
Bastien Montagne [Tue, 14 Aug 2018 12:05:09 +0000 (14:05 +0200)]
Fix T56363: Blender crash when deleting a curve object.

Conversion code could leave object with inconsistent material data
compared to its new obdata.

Ideally, various conversion code would handle that properly, conserving
materials when possible, but for now at least ensure we get valid

2 years agoFix object copying not ensuring validity of material arrays.
Bastien Montagne [Tue, 14 Aug 2018 11:35:51 +0000 (13:35 +0200)]
Fix object copying not ensuring validity of material arrays.

Related to T56363, this is not fixing the root of the bug, but ID
copying should always be a good occasion to ensure sanity of our data
(and error checking is always better than a crash!).

2 years agoFix modifier operators not working from Python API as before.
Brecht Van Lommel [Tue, 14 Aug 2018 10:39:52 +0000 (12:39 +0200)]
Fix modifier operators not working from Python API as before.

The poll function required the modifier to be in the context, but these
operators also accept a "modifier" string property as well.

2 years agoMultires: Begin hooking it up to the new subdiv code
Sergey Sharybin [Tue, 14 Aug 2018 10:17:10 +0000 (12:17 +0200)]
Multires: Begin hooking it up to the new subdiv code

Currently behaves same as subsurf, support of displacement is the
next task in the line to tackle!