blender.git
16 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 11 May 2018 18:13:07 +0000 (20:13 +0200)]
Merge branch 'master' into blender2.8

16 months agoEditMesh: remove duplicate rip macro
Campbell Barton [Fri, 11 May 2018 18:02:12 +0000 (20:02 +0200)]
EditMesh: remove duplicate rip macro

Change the fill setting in the keymap,
this allows tool access the macro with either setting.

16 months agoWM: initialize last used macro properties
Campbell Barton [Fri, 11 May 2018 18:01:51 +0000 (20:01 +0200)]
WM: initialize last used macro properties

16 months agoDRW: Add DRW_UNIFORM_FLOAT_COPY and DRW_UNIFORM_BOOL_COPY.
Clément Foucault [Fri, 11 May 2018 17:00:08 +0000 (19:00 +0200)]
DRW: Add DRW_UNIFORM_FLOAT_COPY and DRW_UNIFORM_BOOL_COPY.

And also use a union instead of forcing the cast to void*.

16 months agoDRW: Add DRW_view_layer_engine_data_ensure_ex.
Clément Foucault [Fri, 11 May 2018 08:56:52 +0000 (10:56 +0200)]
DRW: Add DRW_view_layer_engine_data_ensure_ex.

16 months agoModifiers: ported Laplacian Deform DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 15:30:57 +0000 (17:30 +0200)]
Modifiers: ported Laplacian Deform DerivedMesh → Mesh

Reviewers: sybren

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

16 months agoFix: Last of the operators from T54811 now work with Copy on Write
Joshua Leung [Fri, 11 May 2018 15:43:56 +0000 (17:43 +0200)]
Fix: Last of the operators from T54811 now work with Copy on Write

16 months agoWorkbench: StudioLight HDRI's
Jeroen Bakker [Fri, 11 May 2018 14:55:14 +0000 (16:55 +0200)]
Workbench: StudioLight HDRI's

The Studio lights are now loaded from disk. The location is
`datafiles/studiolights` they need to be JPG for now. JPG cannot store
HDRI color range but they are clamped inside the Workbench
engine for speed reason. I didn't select JP2K as it might not be
enabled.

Users can add upto 20 HDRI files. This limitation is inside the
RNA_space.c Currently the icons are calculated when you first open the
selection box for the HDRI's. We could add them to a background
rendering later.

I added 2 test files a sky texture rendered in Cycles and an HDRI from
cloud.blender.org.

16 months agoModifiers: ported Laplacian Smooth DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 14:40:00 +0000 (16:40 +0200)]
Modifiers: ported Laplacian Smooth DerivedMesh → Mesh

Reviewers: sybren

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

16 months agoUse Light Probe icons
Pablo Vazquez [Fri, 11 May 2018 14:02:09 +0000 (16:02 +0200)]
Use Light Probe icons

16 months agoIcon for Light Probes
Pablo Vazquez [Fri, 11 May 2018 13:58:20 +0000 (15:58 +0200)]
Icon for Light Probes

Including Cubemap, Grid and Planar

Designed by @wevon with minor modifications as part of T53840. Thanks!

16 months agoDepsgraph: Fix redundant nodes built when animation shares same action
Sergey Sharybin [Fri, 11 May 2018 13:49:04 +0000 (15:49 +0200)]
Depsgraph: Fix redundant nodes built when animation shares same action

16 months agoParticle mode: Fix memory leak with simple interpolated children
Sergey Sharybin [Fri, 11 May 2018 13:40:14 +0000 (15:40 +0200)]
Particle mode: Fix memory leak with simple interpolated children

16 months agoModifiers: ported UV Project DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 13:28:08 +0000 (15:28 +0200)]
Modifiers: ported UV Project DerivedMesh → Mesh

Reviewers: sybren

Tags: #bf_blender_2.8

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

16 months agoDar manager: Ignore non-particle-edit objects from particle mode
Sergey Sharybin [Fri, 11 May 2018 13:12:24 +0000 (15:12 +0200)]
Dar manager: Ignore non-particle-edit objects from particle mode

16 months agoFix crash going to edit mode of particles with copy on write
Sergey Sharybin [Fri, 11 May 2018 12:54:50 +0000 (14:54 +0200)]
Fix crash going to edit mode of particles with copy on write

We can not rely on edit->psys, it is not set for particle edit,
and there is some logic deeper inside which does different things
dependent on that.

We need to replace those checks with some some HAIR vs. PARTICLES
flag and always set psys pointer.

16 months agoModifiers: ported Screw DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 09:31:21 +0000 (11:31 +0200)]
Modifiers: ported Screw DerivedMesh → Mesh

Reviewers: sybren

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

16 months agoDepsgraph: Remove workaround for scene free
Sergey Sharybin [Fri, 11 May 2018 12:28:03 +0000 (14:28 +0200)]
Depsgraph: Remove workaround for scene free

No functional changes commit ;)

16 months agoRemove debug only code
Sergey Sharybin [Fri, 11 May 2018 12:24:19 +0000 (14:24 +0200)]
Remove debug only code

16 months agoLight Probe type name should be CUBEMAP, not SPHERE.
Pablo Vazquez [Fri, 11 May 2018 11:41:44 +0000 (13:41 +0200)]
Light Probe type name should be CUBEMAP, not SPHERE.

Change requested by @fclem

16 months agoRemove unused functions which will break with copy-on-write
Sergey Sharybin [Fri, 11 May 2018 10:47:27 +0000 (12:47 +0200)]
Remove unused functions which will break with copy-on-write

16 months agoParticle edit: Initial support of edit with copy-on-write
Sergey Sharybin [Fri, 11 May 2018 10:44:43 +0000 (12:44 +0200)]
Particle edit: Initial support of edit with copy-on-write

The idea is that edit mode structure is owned by original object,
and used for drawing. This is a bit confusing, especially since
path cache is also in that structure and needs evaluated object
to calculate cache.

In the future we should split edit data from visualization data,
but that's bigger refactor.

16 months agoParticle edit: Fix missing update after undo
Sergey Sharybin [Fri, 11 May 2018 10:18:37 +0000 (12:18 +0200)]
Particle edit: Fix missing update after undo

Old code was doing draw-time calculations in some cases.
just do the same for now.

16 months agoDraw manager: Use explicit edit structure passed in
Sergey Sharybin [Fri, 11 May 2018 09:35:10 +0000 (11:35 +0200)]
Draw manager: Use explicit edit structure passed in

16 months agoDepsgraph: Move edit mode pointers trickery to own functions
Sergey Sharybin [Fri, 11 May 2018 09:18:41 +0000 (11:18 +0200)]
Depsgraph: Move edit mode pointers trickery to own functions

16 months agoDraw manager: Get number of cached segments from edit
Sergey Sharybin [Fri, 11 May 2018 08:33:08 +0000 (10:33 +0200)]
Draw manager: Get number of cached segments from edit

This way we know it's in sync with edit mode.

16 months agoDraw manager: Add utility function to check whether particle systems are to be drawn
Sergey Sharybin [Wed, 9 May 2018 14:55:09 +0000 (16:55 +0200)]
Draw manager: Add utility function to check whether particle systems are to be drawn

16 months agoAdd comment about weird special handling of scene freeing in depsgraph.
Bastien Montagne [Fri, 11 May 2018 09:34:22 +0000 (11:34 +0200)]
Add comment about weird special handling of scene freeing in depsgraph.

16 months agoFix (unreported) broken freeing code for Sequencer.
Bastien Montagne [Fri, 11 May 2018 09:21:30 +0000 (11:21 +0200)]
Fix (unreported) broken freeing code for Sequencer.

Freeing sequencer would always do usercount, which is now forbidden when
called from main ID freeing code.

Annoying in 2.7x, much more critical issue in 2.8!

Also, moved RNA sequencer API functions to proper rna_scene_api.c file.

16 months agoMulti-Object: MESH_OT_loop_to_region by Oleg
Dalai Felinto [Fri, 11 May 2018 09:33:30 +0000 (11:33 +0200)]
Multi-Object: MESH_OT_loop_to_region by Oleg

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3253

16 months agoModifiers: ported Corrective Smooth DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 09:20:44 +0000 (11:20 +0200)]
Modifiers: ported Corrective Smooth DerivedMesh → Mesh

Reviewers: sybren

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

16 months agoMulti-Object: MESH_OT_screw by Nick Milios
Dalai Felinto [Fri, 11 May 2018 09:19:21 +0000 (11:19 +0200)]
Multi-Object: MESH_OT_screw by Nick Milios

With small changes.

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3276

16 months agoFix (unreported) broken freeing code for Sequencer.
Bastien Montagne [Fri, 11 May 2018 09:21:30 +0000 (11:21 +0200)]
Fix (unreported) broken freeing code for Sequencer.

Freeing sequencer would always do usercount, which is now forbidden when
called from main ID freeing code.

Annoying in 2.7x, much more critical issue in 2.8!

Also, moved RNA sequencer API functions to proper rna_scene_api.c file.

16 months agoMulti-Object: MESH_OT_select_loose by Falk David
Dalai Felinto [Fri, 11 May 2018 09:08:18 +0000 (11:08 +0200)]
Multi-Object: MESH_OT_select_loose by Falk David

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3276

16 months agoModifiers: ported Decimate DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 08:55:26 +0000 (10:55 +0200)]
Modifiers: ported Decimate DerivedMesh → Mesh

Two things to indicate (which als apply before the DM → M port):

- Face count in the UI is not updated and stays at 0
- When planar mode is used, the result is inverted (mirrored along X)
  compared to 2.79

Reviewers: sybren

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

16 months agoMulti-Object-Editing : MESH_OT_rip by Miguel Pozo
Dalai Felinto [Fri, 11 May 2018 08:54:50 +0000 (10:54 +0200)]
Multi-Object-Editing : MESH_OT_rip by Miguel Pozo

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3266

16 months agoFix memleak on MESH_OT_tris_convert_to_quads
Dalai Felinto [Fri, 11 May 2018 08:52:36 +0000 (10:52 +0200)]
Fix memleak on MESH_OT_tris_convert_to_quads

16 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 11 May 2018 08:49:58 +0000 (10:49 +0200)]
Merge branch 'master' into blender2.8

16 months agoFix (unreported) load image code calling icin/preview update from non-Main thread.
Bastien Montagne [Fri, 11 May 2018 08:48:04 +0000 (10:48 +0200)]
Fix (unreported) load image code calling icin/preview update from non-Main thread.

Icin/preview only works in main thread, while image loading can be done
from others too... This could have generated random crashes and such.

16 months agoAssign totxxx mesh attributes in BKE_mesh_new_nomain
Christian Hubert [Fri, 11 May 2018 08:37:16 +0000 (10:37 +0200)]
Assign totxxx mesh attributes in BKE_mesh_new_nomain

Reviewers: sybren

16 months agoFix bad pointer cast when modifier is used on non-mesh object
Sybren A. Stüvel [Wed, 9 May 2018 15:37:54 +0000 (17:37 +0200)]
Fix bad pointer cast when modifier is used on non-mesh object

16 months agoEditMesh: multi-object triangle fill
Campbell Barton [Fri, 11 May 2018 06:40:18 +0000 (08:40 +0200)]
EditMesh: multi-object triangle fill

D3336 by @nabbydude

16 months agoEditMesh: multi-object select ungrouped
Campbell Barton [Fri, 11 May 2018 06:18:42 +0000 (08:18 +0200)]
EditMesh: multi-object select ungrouped

D3295 by @philippe-bachour

16 months agoCleanup: whitespace
Campbell Barton [Fri, 11 May 2018 06:21:06 +0000 (08:21 +0200)]
Cleanup: whitespace

16 months agoT54983: Bone selection overlay
Jeroen Bakker [Fri, 11 May 2018 06:16:41 +0000 (08:16 +0200)]
T54983: Bone selection overlay

Bone selection overlay is only available in pose mode.
and when active overrules the selection buffer.

This is currently `tricked` by switching the draw engines, but this is
an exception. Not sure how to solve this in a better way.

After this is solved we can look at how to localize the dim effect to only the objects connected to the active armatures. Currently it dims the whole screen (including background).

@campbellbarton I added you as reviewer as it you have done a lot in the DRW_draw_select_loop

Reviewers: campbellbarton, fclem

Reviewed By: fclem

Subscribers: campbellbarton

Tags: #bf_blender_2.8, #code_quest

Maniphest Tasks: T54983

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

16 months agoEditMesh: multi-object recalculate normals
Campbell Barton [Fri, 11 May 2018 06:08:01 +0000 (08:08 +0200)]
EditMesh: multi-object recalculate normals

D3298 by @leonlg

16 months agoEditMesh: multi-object select_interior_faces
Campbell Barton [Fri, 11 May 2018 05:59:16 +0000 (07:59 +0200)]
EditMesh: multi-object select_interior_faces

D3334 by @ThaRemo

16 months agoCleanup: whitespace
Campbell Barton [Fri, 11 May 2018 05:55:41 +0000 (07:55 +0200)]
Cleanup: whitespace

16 months agoCleanup: use 'uint' in draw manager
Campbell Barton [Fri, 11 May 2018 05:48:52 +0000 (07:48 +0200)]
Cleanup: use 'uint' in draw manager

16 months agoCleanup: style
Campbell Barton [Fri, 11 May 2018 05:47:25 +0000 (07:47 +0200)]
Cleanup: style

16 months agoCleanup: whitespace, duplicate includes
Campbell Barton [Fri, 11 May 2018 05:43:20 +0000 (07:43 +0200)]
Cleanup: whitespace, duplicate includes

16 months agoFix add-manipulator cursor plane calculation
Campbell Barton [Thu, 10 May 2018 21:06:55 +0000 (23:06 +0200)]
Fix add-manipulator cursor plane calculation

Now use the closest plane facing the view z axis.

16 months agoFix error building
Campbell Barton [Thu, 10 May 2018 19:43:15 +0000 (21:43 +0200)]
Fix error building

16 months agoCleanup: Remove redundant parameter.
Germano [Thu, 10 May 2018 19:32:13 +0000 (16:32 -0300)]
Cleanup: Remove redundant parameter.

16 months agoPaint Stroke: Fix strokes drawing.
Germano [Thu, 10 May 2018 19:29:14 +0000 (16:29 -0300)]
Paint Stroke: Fix strokes drawing.

16 months agoEditMesh: add cube interactive tool
Campbell Barton [Thu, 10 May 2018 18:16:22 +0000 (20:16 +0200)]
EditMesh: add cube interactive tool

Initial add-cube tool which uses the scale cage to resize.

The 3D cursor is currently used to project the cursor onto.

We'll likely have more orientation options in the future.

16 months agoCleanup: warning
Campbell Barton [Thu, 10 May 2018 18:30:45 +0000 (20:30 +0200)]
Cleanup: warning

16 months agoMake current frame indicator smaller with rounded corners.
Pablo Vazquez [Thu, 10 May 2018 17:42:08 +0000 (19:42 +0200)]
Make current frame indicator smaller with rounded corners.

Reviewed by Joshua Leung

16 months agoTimeline Header Cleanup - Part 3: Consolidate options in a "Playback" popover
Joshua Leung [Thu, 10 May 2018 17:28:27 +0000 (19:28 +0200)]
Timeline Header Cleanup - Part 3: Consolidate options in a "Playback" popover

The "Playback" popover now combines options from several old menus
and scattered around in other places.

16 months agoTimeline Header Cleanup - Part 2: Rearrange buttons (WIP)
Joshua Leung [Thu, 10 May 2018 17:04:14 +0000 (19:04 +0200)]
Timeline Header Cleanup - Part 2: Rearrange buttons  (WIP)

NOTE: This is all still heavily WIP, and still requires some additional
layout engine magic to make it all nice.

* Moved current frame, and start/end frame buttons to the end
* Put playback controls in the center
* Remove other more obscure buttons (e.g. Frame menu, lock frame to frame range)

More to follow in next commit...

16 months agoTimeline Header Cleanup - Part 1: Move Keying Set + Autokeying Settings to Properties...
Joshua Leung [Thu, 10 May 2018 16:33:41 +0000 (18:33 +0200)]
Timeline Header Cleanup - Part 1: Move Keying Set + Autokeying Settings to Properties Region (NKEY)

Now all Keying Set and Auto Keyframing settings can be found the in NKEY
Properties Region (right-hand-side hidden tab/drawer).

This way, we have more room to display the full names of the settings,
without clogging up the timeline header.

16 months agoCleanup: warnings
Campbell Barton [Thu, 10 May 2018 17:08:53 +0000 (19:08 +0200)]
Cleanup: warnings

16 months agoCleanup: warnings
Campbell Barton [Thu, 10 May 2018 17:07:03 +0000 (19:07 +0200)]
Cleanup: warnings

16 months agoTransform: Make snapDerivedMesh use bvhtrees from loose edges and bvhtrees from loose...
Germano [Thu, 10 May 2018 16:40:30 +0000 (13:40 -0300)]
Transform: Make snapDerivedMesh use bvhtrees from loose edges and bvhtrees from loose verts.

Bvhtrees take up a lot of memory space, reusing the common bvhtree of looptris to snap to vertices and edges is a good way to save memory.
Unfortunately we have a worsening performance in the snapping operation around 63% (addition to the original time).
But as we often do not need to build a bvhtree of loose verts and loose edges, we have an improvement in cache time :)

Since the CPU time of snapping operations (no matter how higth poly the object is) corresponds to less than 0.01% of all CPU time of a blender frame, that change is not really significant.

Snapping operations on a mesh in edit mode have not changed significantly.

Signed-off-by: Germano <germano.costa@ig.com.br>
16 months agoBKE: bvhutils: Added support for bvhtrees from loose verts and bvhtree from loose...
Germano [Thu, 10 May 2018 16:35:48 +0000 (13:35 -0300)]
BKE: bvhutils: Added support for bvhtrees from loose verts and bvhtree from loose edges

16 months agoUI: Fix time cursor number box styling for Clip Editor's Dopesheet/Graph views
Joshua Leung [Thu, 10 May 2018 15:56:12 +0000 (17:56 +0200)]
UI: Fix time cursor number box styling for Clip Editor's Dopesheet/Graph views

16 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 10 May 2018 12:27:24 +0000 (14:27 +0200)]
Merge branch 'master' into blender2.8

16 months ago3D View: utility to get matrix from cursor
Campbell Barton [Thu, 10 May 2018 10:24:07 +0000 (12:24 +0200)]
3D View: utility to get matrix from cursor

16 months agoManipulator: API call to invoke on setup
Campbell Barton [Wed, 9 May 2018 20:43:24 +0000 (22:43 +0200)]
Manipulator: API call to invoke on setup

Needed for manipulators that start out interactive,
similar use-case to modal operators, except these can be tweaked after.

16 months agoManipulator: support direct cage3d adjustment
Campbell Barton [Wed, 9 May 2018 20:37:09 +0000 (22:37 +0200)]
Manipulator: support direct cage3d adjustment

Scale cage relied on transform code,
this adds support for the manipulator corners being modified directly.

16 months agoCleanup: Remove redundant bvh_cache initialization.
Germano [Wed, 9 May 2018 16:28:59 +0000 (13:28 -0300)]
Cleanup: Remove redundant bvh_cache initialization.

16 months agoClay: Cleanup, reduce indentation level
Sergey Sharybin [Wed, 9 May 2018 14:45:04 +0000 (16:45 +0200)]
Clay: Cleanup, reduce indentation level

16 months agoEevee: Cleanup, use NULL instead of static matrix
Sergey Sharybin [Wed, 9 May 2018 14:42:15 +0000 (16:42 +0200)]
Eevee: Cleanup, use NULL instead of static matrix

Those are the same thing now. So no need to keep initializing matrix
over and over.

16 months agoCorrect previous commit
Sergey Sharybin [Wed, 9 May 2018 14:38:38 +0000 (16:38 +0200)]
Correct previous commit

16 months agoEevee: Cleanup, reduce indentation level
Sergey Sharybin [Wed, 9 May 2018 14:36:09 +0000 (16:36 +0200)]
Eevee: Cleanup, reduce indentation level

16 months agoWorkbench: Make hair populating function shorter and nicer
Sergey Sharybin [Wed, 9 May 2018 14:20:38 +0000 (16:20 +0200)]
Workbench: Make hair populating function shorter and nicer

16 months agoDepsgraph: Tag object for copy-on-write update when toggling particle edit mode
Sergey Sharybin [Wed, 9 May 2018 14:15:40 +0000 (16:15 +0200)]
Depsgraph: Tag object for copy-on-write update when toggling particle edit mode

16 months agoDepsgraph: Remove particle edit code from evaluation
Sergey Sharybin [Wed, 9 May 2018 13:44:49 +0000 (15:44 +0200)]
Depsgraph: Remove particle edit code from evaluation

Everything seems to be working without this, which makes since there is no
evaluation-time edit code in master. The only tricky part here would be that
this means we might want to ensure edit structure exists from inside particle
mode in draw manager.

Other point for not having this code in evaluation is that it's possible to
have same object evaluated in different contexts at the same time, and since
edit structures are supposed to be in original object we might run into
threading conflict.

16 months agoParticle edit mode: Make selection settings to work with CoW
Sergey Sharybin [Wed, 9 May 2018 13:37:41 +0000 (15:37 +0200)]
Particle edit mode: Make selection settings to work with CoW

16 months agoRename: RNA_property_override_status > RNA_property_static_override_status
Dalai Felinto [Wed, 9 May 2018 14:17:15 +0000 (16:17 +0200)]
Rename: RNA_property_override_status > RNA_property_static_override_status

16 months agoModifiers: ported Triangulate DerivedMesh → Mesh
Christian Hubert [Wed, 9 May 2018 14:00:12 +0000 (16:00 +0200)]
Modifiers: ported Triangulate DerivedMesh → Mesh

Reviewers: sybren

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

16 months agoFix T55015: Crash on selection after recent BVH changes
Dalai Felinto [Wed, 9 May 2018 13:38:58 +0000 (15:38 +0200)]
Fix T55015: Crash on selection after recent BVH changes

Runtime data should always be initialized to NULL on read-time.

16 months agoFix broken 'check/validate libs' code with indirect libs.
Bastien Montagne [Wed, 9 May 2018 13:46:22 +0000 (15:46 +0200)]
Fix broken 'check/validate libs' code with indirect libs.

Readcode always set relative paths of indirectly linked libs relative to
*current* .blend file, not to the library using it.

But BKE_library_filepath_set was then setting them relative to their
parent library, breaking checking code (and saved files even :((( ).

16 months agoModifiers: ported Boolean DerivedMesh → Mesh
Christian Hubert [Wed, 9 May 2018 12:55:56 +0000 (14:55 +0200)]
Modifiers: ported Boolean DerivedMesh → Mesh

Reviewers: sybren

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

16 months agoExpanded BMALLOC_TEMPLATE_FROM_ME to accept two meshes
Sybren A. Stüvel [Wed, 9 May 2018 13:15:06 +0000 (15:15 +0200)]
Expanded BMALLOC_TEMPLATE_FROM_ME to accept two meshes

16 months agoOutliner: move filter options to popover.
Brecht Van Lommel [Wed, 9 May 2018 11:40:34 +0000 (13:40 +0200)]
Outliner: move filter options to popover.

16 months agoT55014: Optionally: objects not cast shadows in workbench
Jeroen Bakker [Wed, 9 May 2018 13:13:12 +0000 (15:13 +0200)]
T55014: Optionally: objects not cast shadows in workbench

16 months agoMerge branch 'master' into blender2.8
Philipp Oeser [Wed, 9 May 2018 13:08:13 +0000 (15:08 +0200)]
Merge branch 'master' into blender2.8

16 months agoDraw manager: Implement point selection modes for particle edit mode
Sergey Sharybin [Wed, 9 May 2018 12:59:29 +0000 (14:59 +0200)]
Draw manager: Implement point selection modes for particle edit mode

16 months agoDraw manager: Initial implementation of key points visualization
Sergey Sharybin [Wed, 9 May 2018 12:08:44 +0000 (14:08 +0200)]
Draw manager: Initial implementation of key points visualization

Does all points all the time, ignoring the setting in viewport header.
This is to be addressed by the next commit.

16 months agoDraw manager: Start using more explicit API for particle edit mode
Sergey Sharybin [Wed, 9 May 2018 09:14:27 +0000 (11:14 +0200)]
Draw manager: Start using more explicit API for particle edit mode

16 months agoModifiers: ported Hook DerivedMesh → Mesh
Christian Hubert [Wed, 9 May 2018 10:38:52 +0000 (12:38 +0200)]
Modifiers: ported Hook DerivedMesh → Mesh

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

16 months agoFix T54992: Lattice modifier on another Lattice object does not take the
Philipp Oeser [Tue, 8 May 2018 09:05:42 +0000 (11:05 +0200)]
Fix T54992: Lattice modifier on another Lattice object does not take the
Influence vertexgroup into account

16 months agoBKE_id_free(): avoid UI and DEG calls when tagged with LIB_TAG_NO_MAIN
Sybren A. Stüvel [Wed, 9 May 2018 12:36:04 +0000 (14:36 +0200)]
BKE_id_free(): avoid UI and DEG calls when tagged with LIB_TAG_NO_MAIN

This prevents threading issues & crashes from modifiers that create
temporary meshes.

16 months agoMerge branch 'master' into blender2.8
Philipp Oeser [Wed, 9 May 2018 12:37:25 +0000 (14:37 +0200)]
Merge branch 'master' into blender2.8

16 months agoEditMesh: multi-edit merge
Campbell Barton [Wed, 9 May 2018 12:32:15 +0000 (14:32 +0200)]
EditMesh: multi-edit merge

D3226 by @pragma37

Note: edited so first/last option only applies to active mesh
since this doesn't make much sense to apply across objects.

16 months agoFix T54997: simple typo in property description
Philipp Oeser [Wed, 9 May 2018 12:26:47 +0000 (14:26 +0200)]
Fix T54997: simple typo in property description

16 months agoFix crash moving grease pencil frames
Campbell Barton [Wed, 9 May 2018 12:09:05 +0000 (14:09 +0200)]
Fix crash moving grease pencil frames

16 months agoCleanup: unused vars
Campbell Barton [Wed, 9 May 2018 12:08:56 +0000 (14:08 +0200)]
Cleanup: unused vars

16 months agoCleanup: quiet shadow warning
Campbell Barton [Wed, 9 May 2018 11:53:01 +0000 (13:53 +0200)]
Cleanup: quiet shadow warning