blender.git
14 months agoMerge branch 'blender2.8' into temp-unified-collections temp-unified-collections
Brecht Van Lommel [Thu, 17 May 2018 18:09:03 +0000 (20:09 +0200)]
Merge branch 'blender2.8' into temp-unified-collections

14 months agoCleanup: move unneeded struct out of DNA.
Brecht Van Lommel [Thu, 17 May 2018 13:05:17 +0000 (15:05 +0200)]
Cleanup: move unneeded struct out of DNA.

The real reason is that there is a conflict between Carbon header defining
a "Collection" struct, and this works around it.

14 months agoOutliner: add ID type filter option for Blender File and Orphaned Data.
Brecht Van Lommel [Thu, 17 May 2018 11:40:59 +0000 (13:40 +0200)]
Outliner: add ID type filter option for Blender File and Orphaned Data.

14 months agoOutliner: move filter menu to the left in header.
Brecht Van Lommel [Thu, 17 May 2018 10:27:22 +0000 (12:27 +0200)]
Outliner: move filter menu to the left in header.

14 months agoOutliner: in Blender File, use upper case names and icons.
Brecht Van Lommel [Thu, 17 May 2018 10:20:40 +0000 (12:20 +0200)]
Outliner: in Blender File, use upper case names and icons.

14 months agoOutliner: rename Data-Blocks to Data API, to make clear it's low level stuff.
Brecht Van Lommel [Thu, 17 May 2018 10:20:10 +0000 (12:20 +0200)]
Outliner: rename Data-Blocks to Data API, to make clear it's low level stuff.

14 months agoModifiers: ported Particle Instance DerivedMesh → Mesh
Sybren A. Stüvel [Thu, 17 May 2018 11:45:47 +0000 (13:45 +0200)]
Modifiers: ported Particle Instance DerivedMesh → Mesh

14 months agoParticle System: fixed dupliobject drawing by getting time from depsgraph
Sybren A. Stüvel [Thu, 17 May 2018 09:42:13 +0000 (11:42 +0200)]
Particle System: fixed dupliobject drawing by getting time from depsgraph

14 months agoFix menu navigation and modal tools affecting the active region.
Brecht Van Lommel [Thu, 17 May 2018 08:56:36 +0000 (10:56 +0200)]
Fix menu navigation and modal tools affecting the active region.

We updated the active region during redraw to fix missing updates on
file load, restrict it more now to avoid unwanted updates.

14 months agoArmature: Fix non working Wireframe option on bones.
Clément Foucault [Thu, 17 May 2018 09:11:53 +0000 (11:11 +0200)]
Armature: Fix non working Wireframe option on bones.

14 months agoT55090: Proxy bones were not selectable
Jeroen Bakker [Thu, 17 May 2018 06:54:40 +0000 (08:54 +0200)]
T55090: Proxy bones were not selectable

 - Implemented custom selection in pose mode overriding the rest. This
selection mode is only done for bone selection right now

14 months agoCleanup: Use `ED_view3d_win_to_ray_ex` to get the ray and remove unused parameter.
Germano [Thu, 17 May 2018 02:04:28 +0000 (23:04 -0300)]
Cleanup: Use `ED_view3d_win_to_ray_ex` to get the ray and remove unused parameter.

14 months agoTransform: Use `isect_ray_seg_v3` instead `dist_squared_ray_to_seg_v3` in the functio...
Germano [Thu, 17 May 2018 01:04:41 +0000 (22:04 -0300)]
Transform: Use `isect_ray_seg_v3` instead `dist_squared_ray_to_seg_v3` in the function that tests the snap on edges.

14 months agoBLI_math_geom: Separate the `isect_ray_seg_v3` from `dist_squared_ray_to_seg_v3`.
Germano [Thu, 17 May 2018 00:36:41 +0000 (21:36 -0300)]
BLI_math_geom: Separate the `isect_ray_seg_v3` from `dist_squared_ray_to_seg_v3`.

14 months agoTransform: Fix bugs for the latest changes to the snap system.
Germano [Thu, 17 May 2018 00:32:52 +0000 (21:32 -0300)]
Transform: Fix bugs for the latest changes to the snap system.

14 months agoEEVEE Scene: Set all variable as overridable
Dalai Felinto [Wed, 16 May 2018 20:25:13 +0000 (22:25 +0200)]
EEVEE Scene: Set all variable as overridable

14 months agoRemove ViewLayer settings - cleanup 2/2
Dalai Felinto [Wed, 16 May 2018 20:03:25 +0000 (22:03 +0200)]
Remove ViewLayer settings - cleanup 2/2

14 months agoRemove ViewLayer settings - cleanup 1/2
Dalai Felinto [Wed, 16 May 2018 19:40:05 +0000 (21:40 +0200)]
Remove ViewLayer settings - cleanup 1/2

14 months agoMove Clay properties into scene
Dalai Felinto [Wed, 16 May 2018 19:28:05 +0000 (21:28 +0200)]
Move Clay properties into scene

Per collection overrides are gone now.

14 months agoMove EEVEE properties into scene
Dalai Felinto [Wed, 16 May 2018 17:34:24 +0000 (19:34 +0200)]
Move EEVEE properties into scene

We handle doversion for the scene properties, but not for the
view layer overrides.

Overrides will be implemented in a different way via dynamic overrides.
For now this data is completely lost.

14 months agoLayer unittest: Disable the override tests
Dalai Felinto [Wed, 16 May 2018 21:12:59 +0000 (23:12 +0200)]
Layer unittest: Disable the override tests

They are failing for some time now, and they will be obsolete soon anyways.

14 months agoCleanup: BKE_bvhuitls: Use a struct rather than re-create each member of it.
Germano [Wed, 16 May 2018 18:26:33 +0000 (15:26 -0300)]
Cleanup: BKE_bvhuitls: Use a struct rather than re-create each member of it.

14 months agoFix crash when duplicating an object type mesh with raycast operation enabled.
Germano [Wed, 16 May 2018 17:28:28 +0000 (14:28 -0300)]
Fix crash when duplicating an object type mesh with raycast operation enabled.

14 months agoTool System: pass space type when setting tool
Campbell Barton [Wed, 16 May 2018 16:59:43 +0000 (18:59 +0200)]
Tool System: pass space type when setting tool

Internal change only, needed because object mode is now in top-bar.

14 months agoCleanup: unused vars
Campbell Barton [Wed, 16 May 2018 17:04:07 +0000 (19:04 +0200)]
Cleanup: unused vars

14 months agoStatic overrides: reduce the amount of instantiated objects when overriding a group.
Bastien Montagne [Wed, 16 May 2018 16:57:24 +0000 (18:57 +0200)]
Static overrides: reduce the amount of instantiated objects when overriding a group.

For now, do not override/instantiate objects used as boneshapes.

Note that this is a rather poor/dirty hack, it seems Spring char groups
still have a lot of other (unused???) shape objects.

Ideally lib groups should be designed more cleanly for the new Static
Override system, putting only really usable objects into 'main' group,
and placing the others in sub-groups, helpers groups, or so...

14 months agoArmature: Fix T55068: Wireframe bones with custom shapes not working in object mode
Clément Foucault [Wed, 16 May 2018 16:40:25 +0000 (18:40 +0200)]
Armature: Fix T55068: Wireframe bones with custom shapes not working in object mode

14 months agoArmature: Cleanup: Remove unused function and use less silly wire drawing.
Clément Foucault [Wed, 16 May 2018 16:01:32 +0000 (18:01 +0200)]
Armature: Cleanup: Remove unused function and use less silly wire drawing.

14 months agoParticle edit: Use proper modifier to get evaluated derived mesh from
Sergey Sharybin [Wed, 16 May 2018 15:45:21 +0000 (17:45 +0200)]
Particle edit: Use proper modifier to get evaluated derived mesh from

14 months agoParticle edit: Fix disappearing child particles when toggling edit mode
Sergey Sharybin [Wed, 16 May 2018 15:14:53 +0000 (17:14 +0200)]
Particle edit: Fix disappearing child particles when toggling edit mode

Going to object edit mode and back to particle edit mode used to loose all
children from being displayed.

14 months agoFix memleak with meshes having IDProps in modifier stack evaluation.
Bastien Montagne [Wed, 16 May 2018 15:35:54 +0000 (17:35 +0200)]
Fix memleak with meshes having IDProps in modifier stack evaluation.

*Always* use BKE_library API to handle IDs allocation and freeing,
unless you have a very, very, very good reason not to do so - and
perfectly know what you are doing.

14 months agoFix again bloody locked proxy bones...
Bastien Montagne [Wed, 16 May 2018 15:23:52 +0000 (17:23 +0200)]
Fix again bloody locked proxy bones...

No idea why that was working this morning, now we do not get CoW tag
anymore (which kind of makes sense since it's set *after* copying
happens...), so just resorting to using the NO_MAIN flag instead.

14 months agoEevee: Fix missing Ambient Occlusion node in add node menu.
Clément Foucault [Wed, 16 May 2018 13:52:04 +0000 (15:52 +0200)]
Eevee: Fix missing Ambient Occlusion node in add node menu.

14 months agoArmature: Fix T55070: Bones relationship lines are offsetted
Clément Foucault [Wed, 16 May 2018 12:53:41 +0000 (14:53 +0200)]
Armature: Fix T55070: Bones relationship lines are offsetted

Was missing object matrix multiplication.

14 months agoGPUShader/DRW: Add Transform Feedback support.
Clément Foucault [Wed, 16 May 2018 10:47:15 +0000 (12:47 +0200)]
GPUShader/DRW: Add Transform Feedback support.

This is a usefull feature that can be used to do a lot of precomputation on
the GPU instead of the CPU.

Implementation is simple and only covers the most usefull case.

How to use:
- Create shader with transform feedback.
- Create a pass with DRW_STATE_TRANS_FEEDBACK.
- Create a target Gwn_VertBuf (make sure it's big enough).
- Create a shading group with DRW_shgroup_transform_feedback_create().
- Add your draw calls to the shading group.
- Render your pass normaly.

Current limitation:
- Only one output buffer.
- Cannot pause/resume tfb rendering to interleave with normal drawcalls.
- Cannot get the number of verts drawn.

14 months agoEevee: Add support for Ambient Occlusion node.
Clément Foucault [Tue, 15 May 2018 15:30:52 +0000 (17:30 +0200)]
Eevee: Add support for Ambient Occlusion node.

14 months agoEevee: Change normal buffer texture format for more precision.
Clément Foucault [Tue, 15 May 2018 10:44:11 +0000 (12:44 +0200)]
Eevee: Change normal buffer texture format for more precision.

This means more accurate SSR with less faceted artifacts.

14 months agoShader Node Editor: Add Closure to RGB convertion node.
Clément Foucault [Mon, 14 May 2018 11:34:54 +0000 (13:34 +0200)]
Shader Node Editor: Add Closure to RGB convertion node.

Patch D3205 by Kanzaki Wataru

Only implemented in Eevee for now. Collapse a closure to RGBA so we can
do NPR stuff on the resulting color.

Use an emission shader to convert the color back to a closure.

Doing this will break PBR and will kill any SSR and SSS effects the shader
the shader rely on. That said screen space refraction and ambient occlusion
are supported due to the way they are implemented.

14 months agoWorkbench: World based studio lighting
Jeroen Bakker [Wed, 16 May 2018 14:42:30 +0000 (16:42 +0200)]
Workbench: World based studio lighting

Disabled shadows for now as the calculation of the light direction is
still to bogus.

14 months agoParticle System: ported most DerivedMesh → Mesh
Sybren A. Stüvel [Tue, 15 May 2018 11:26:40 +0000 (13:26 +0200)]
Particle System: ported most DerivedMesh → Mesh

There are a few places where DerivedMesh is still used, most notably
when calling the (not yet ported) cloth simulation. There is also still
the use of Object.derivedDeform and Object.derivedFinal. Those places are
marked with a TODO.

Some functions in the editors module were copied to accept Mesh. Those
already had 'mesh' in the name; the copies are suffixed with '__real_mesh'
for easy renaming later when the DM-based functionality is removed.

14 months agoMesh: Set deformed_only=1 when copied mesh is from main library
Sybren A. Stüvel [Wed, 16 May 2018 12:33:14 +0000 (14:33 +0200)]
Mesh: Set deformed_only=1 when copied mesh is from main library

14 months agoParticle System: use DEG to get current time in psys_get_particle_state()
Sybren A. Stüvel [Wed, 16 May 2018 14:09:48 +0000 (16:09 +0200)]
Particle System: use DEG to get current time in psys_get_particle_state()

14 months agoParticle System: Pass correct particle index when drawing
Sybren A. Stüvel [Wed, 16 May 2018 14:09:27 +0000 (16:09 +0200)]
Particle System: Pass correct particle index when drawing

Passing the wrong index caused the particles to stop being shown when the
first particle dies.

14 months agofix build error in last commit.
Germano [Wed, 16 May 2018 14:02:54 +0000 (11:02 -0300)]
fix build error in last commit.

14 months agoFix T55076: Hack around to break correct behavior of 2.8 and get back broken-used...
Bastien Montagne [Wed, 16 May 2018 13:41:53 +0000 (15:41 +0200)]
Fix T55076: Hack around to break correct behavior of 2.8 and get back broken-used-as-feature one from 2.7.

Locked bones of proxies should not be editable, at all. But lack of
update from linked rest pose in 2.7 allows to pose and animate locked
bones (not to pose them without animation though, or you'd lose your
pose on next file save & reload).

this is used by artists to always lock all their bones in a rig, so that
proxies fully update when lib rig is modified...

For now, restore that broken behavior in 2.8 by not updating proxies
against lib armature in CoW context (makes sense anyway, we are
currently doing a lot of useless thing when copying data for depsgraph
evaluation!).

14 months agoSnap system: Adds support to Clip Planes and uses a clip plane to simulate occlusion
Germano [Wed, 16 May 2018 13:31:27 +0000 (10:31 -0300)]
Snap system: Adds support to Clip Planes and uses a clip plane to simulate occlusion

This patch adds support for clip_planes (ie ignore what is behind a face)...

The idea is to first execute a raycast to get the polygon to which the mouse cursor points.
Then a snap test is done on the vertices or edges of the polygon.
Then with the normal and location obtained in raycast a new clip_plane is created and the snap over the whole scene is processed ignoring the elements behind the clip_plane.

Here 2 gif of how the previous patch would work on blender2.79:

{F497176}

{F497177}

Reviewers: mont29, campbellbarton

Reviewed By: campbellbarton

Subscribers: bliblubli

Tags: #bf_blender_2.8

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

14 months agoFix T55097: Mesh Deformation modifier is ignoring Vgroup option
Sybren A. Stüvel [Wed, 16 May 2018 13:18:49 +0000 (15:18 +0200)]
Fix T55097: Mesh Deformation modifier is ignoring Vgroup option

14 months agoFix T55082: Add Paint Slots for texture painting not working
Dalai Felinto [Wed, 16 May 2018 12:59:16 +0000 (14:59 +0200)]
Fix T55082: Add Paint Slots for texture painting not working

We changed how this work since the BI removal. But since this operator
was moved to the topbar its poll function was returning false.

14 months agoPopover for snapping settings
Pablo Vazquez [Wed, 16 May 2018 12:23:37 +0000 (14:23 +0200)]
Popover for snapping settings

See T55038

14 months agoMulti-Object-Mode: EditMesh Tool Bevel (MESH_OT_bevel)
milios [Wed, 16 May 2018 11:11:50 +0000 (13:11 +0200)]
Multi-Object-Mode: EditMesh Tool Bevel (MESH_OT_bevel)

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

14 months agoReverted copying mesh->runtime.deformed_only in CDDM_from_mesh_ex
Sybren A. Stüvel [Wed, 16 May 2018 11:06:54 +0000 (13:06 +0200)]
Reverted copying mesh->runtime.deformed_only in CDDM_from_mesh_ex

Doing that copy is the right thing, but only if the mesh has its own
deformed_only flag set correctly. This isn't generally the case, so
keeping dm->deformedOnly = 1 is better.

14 months agoMulti-Object-Editing: MESH_OT_faces_select_linked_flat
Luc Revardel [Wed, 16 May 2018 11:02:36 +0000 (13:02 +0200)]
Multi-Object-Editing: MESH_OT_faces_select_linked_flat

Reviewers: dfelinto

Maniphest Tasks: T54643

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

14 months agoSilence warning about functions having no prototype
Mai Lavelle [Wed, 16 May 2018 10:44:49 +0000 (06:44 -0400)]
Silence warning about functions having no prototype

14 months agoSave 'deform_only' flag in Mesh.runtime
Sybren A. Stüvel [Tue, 15 May 2018 11:26:24 +0000 (13:26 +0200)]
Save 'deform_only' flag in Mesh.runtime

This flag is copied when converting between DM and Mesh.

This flag is set to true in get_mesh(), to mimick the behaviour of
CDDM_from_mesh_ex. This is necessary for the particle system to work
correctly.

14 months agoMulti-Object-Editing: intersect boolean (MESH_OT_intersect_boolean)
milios [Wed, 16 May 2018 10:28:32 +0000 (12:28 +0200)]
Multi-Object-Editing: intersect boolean (MESH_OT_intersect_boolean)

Reviewers: dfelinto (changed test from totvert to totfacesel before committing)

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

14 months agoFix check for MESH_OT_intersect
Dalai Felinto [Wed, 16 May 2018 10:26:26 +0000 (12:26 +0200)]
Fix check for MESH_OT_intersect

14 months agoFixes for collections unification:
Brecht Van Lommel [Wed, 16 May 2018 09:35:46 +0000 (11:35 +0200)]
Fixes for collections unification:

* Fix various crashes due to bug in latest versioning code
* Fix outliner restrict button column clipping

14 months agoMulti-Object-Editing: intersect (MESH_OT_intersect)
milios [Wed, 16 May 2018 09:57:36 +0000 (11:57 +0200)]
Multi-Object-Editing: intersect (MESH_OT_intersect)

Reviewers: dfelinto

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

14 months agoModifiers: Port mesh_calc_modifiers from DerivedMesh to Mesh
Mai Lavelle [Fri, 11 May 2018 07:53:52 +0000 (03:53 -0400)]
Modifiers: Port mesh_calc_modifiers from DerivedMesh to Mesh

This ports the main modifier eval loop.

A few things haven't been ported yet: tessface and shapekey related code. As
far as I can tell, shapekey code was never entered into.

https://developer.blender.org/D3342

14 months agoAdd modifier_deformVerts_ensure_normals, modifier_applyModifier_ensure_normals
Mai Lavelle [Tue, 24 Apr 2018 08:08:16 +0000 (04:08 -0400)]
Add modifier_deformVerts_ensure_normals, modifier_applyModifier_ensure_normals

Same as `modwrap_deformVerts` and `modwrap_applyModifier` but for `Mesh`.

14 months agoAdd BKE_mesh_is_valid
Mai Lavelle [Fri, 27 Apr 2018 04:39:53 +0000 (00:39 -0400)]
Add BKE_mesh_is_valid

Non modifying version of `BKE_mesh_validate`, mirrors `DM_is_valid` more
closely. Will be used in port of `mesh_calc_modifiers`
from `DerivedMesh` to `Mesh`.

14 months agoPopover for Pivot Point in top bar
Pablo Vazquez [Wed, 16 May 2018 10:03:22 +0000 (12:03 +0200)]
Popover for Pivot Point in top bar

From T55038

14 months agoMulti-Object-Editing: Weld Edges into Faces(MESH_OT_face_split_by_edges)
milios [Wed, 16 May 2018 09:48:34 +0000 (11:48 +0200)]
Multi-Object-Editing: Weld Edges into Faces(MESH_OT_face_split_by_edges)

Reviewers: dfelinto

Maniphest Tasks: T54643

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

14 months agoParticle system: get current time from depsgraph
Sybren A. Stüvel [Wed, 16 May 2018 08:50:49 +0000 (10:50 +0200)]
Particle system: get current time from depsgraph

This makes the particle animation work again!

14 months agoRemove collections module (caused UI to fail entirely)
Campbell Barton [Wed, 16 May 2018 07:44:43 +0000 (09:44 +0200)]
Remove collections module (caused UI to fail entirely)

14 months agoCleanup: remove ignored const
Campbell Barton [Wed, 16 May 2018 07:37:00 +0000 (09:37 +0200)]
Cleanup: remove ignored const

14 months agoMerge branch 'blender2.8' into temp-unified-collections
Campbell Barton [Wed, 16 May 2018 07:33:42 +0000 (09:33 +0200)]
Merge branch 'blender2.8' into temp-unified-collections

14 months agoWorkbench: Read studiolights from USER + SYSTEM datafiles
Jeroen Bakker [Wed, 16 May 2018 07:13:48 +0000 (09:13 +0200)]
Workbench: Read studiolights from USER + SYSTEM datafiles

14 months agoFix navigate widget w/ region overlap
Campbell Barton [Wed, 16 May 2018 06:46:40 +0000 (08:46 +0200)]
Fix navigate widget w/ region overlap

14 months agoFix visible region overlap calculation
Campbell Barton [Wed, 16 May 2018 06:32:02 +0000 (08:32 +0200)]
Fix visible region overlap calculation

Existing code didn't account for top/bottom overlap.

14 months agoTransform: Snap: Make sure if bmesh arrays need to be recalculated.
Germano [Tue, 15 May 2018 19:15:14 +0000 (16:15 -0300)]
Transform: Snap: Make sure if bmesh arrays need to be recalculated.

14 months agoScene raycast: The return index should indicate the polygon instead of the looptri.
Germano [Tue, 15 May 2018 18:38:17 +0000 (15:38 -0300)]
Scene raycast: The return index should indicate the polygon instead of the looptri.

This was the default behavior and could break some addon since looptri is almost useless for the current python API.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 15 May 2018 17:53:34 +0000 (19:53 +0200)]
Merge branch 'master' into blender2.8

14 months agoWorkbench: send right event after shadow_shift changes
Jeroen Bakker [Tue, 15 May 2018 17:47:29 +0000 (19:47 +0200)]
Workbench: send right event after shadow_shift changes

14 months agoRevert "BLI_kdopbvh: Reference clip_planes callback to find nearest projected."
Germano [Tue, 15 May 2018 17:37:45 +0000 (14:37 -0300)]
Revert "BLI_kdopbvh: Reference clip_planes callback to find nearest projected."

This reverts commit 717dd4cecd2ea8eaa7b3bbfb5a5c7ec65f0337c0.

It was causing problems in the protactor ruler.
I'll think of a better solution.

14 months agoFix T55032: Redo w/ file saved in edit-mode failed
Campbell Barton [Tue, 15 May 2018 17:30:59 +0000 (19:30 +0200)]
Fix T55032: Redo w/ file saved in edit-mode failed

It's important edit-mode has a step stored for redo to work,
file load now ensures this in a generic way.

14 months agoCollections: more work on unification with groups
Brecht Van Lommel [Tue, 15 May 2018 17:31:37 +0000 (19:31 +0200)]
Collections: more work on unification with groups

* Better backwards compatibility for Hero files saved in previous 2.8 files,
  particularly preserving per view layer visibility.

* Various bugfixes.

14 months agoCleanup: pass the use_depth parameter to the `SnapObjectParams` struct in the ED_tran...
Germano [Tue, 15 May 2018 17:32:30 +0000 (14:32 -0300)]
Cleanup: pass the use_depth parameter to the `SnapObjectParams` struct in the ED_transform_snap_object_project_view3d_mixed.

14 months agoMerge branch 'blender2.8' into temp-unified-collections
Brecht Van Lommel [Tue, 15 May 2018 17:30:45 +0000 (19:30 +0200)]
Merge branch 'blender2.8' into temp-unified-collections

14 months agoBLI_kdopbvh: Reference clip_planes callback to find nearest projected.
Germano [Tue, 15 May 2018 17:14:25 +0000 (14:14 -0300)]
BLI_kdopbvh: Reference clip_planes callback to find nearest projected.

Clip_planes are an important parameter to be used in callbacks.

14 months agoCOW Fix: VIEW3D_OT_select_lasso now works for Pose Bones. Other modes untested.
Joshua Leung [Tue, 15 May 2018 17:13:15 +0000 (19:13 +0200)]
COW Fix: VIEW3D_OT_select_lasso now works for Pose Bones. Other modes untested.

14 months agoBLI_math: Added isect_point_planes_v3_negated function.
Germano [Tue, 15 May 2018 17:10:41 +0000 (14:10 -0300)]
BLI_math: Added isect_point_planes_v3_negated function.

14 months agoFix POST_OT_hide/reveal
Joshua Leung [Tue, 15 May 2018 17:08:00 +0000 (19:08 +0200)]
Fix POST_OT_hide/reveal

Apparently they weren't actually working, despite seemingly working
when tested earlier. Argh!

14 months agoFix: POSE_OT_visual_transform_apply now works with Copy on Write
Joshua Leung [Tue, 15 May 2018 16:39:13 +0000 (18:39 +0200)]
Fix: POSE_OT_visual_transform_apply now works with Copy on Write

14 months agoCOW Fix: Muting constraints or changing influence did not properly refresh
Joshua Leung [Tue, 15 May 2018 16:34:08 +0000 (18:34 +0200)]
COW Fix: Muting constraints or changing influence did not properly refresh

We need to manually do a copy on write tag here, or else nothing will happen

14 months agoRemove G.main usage
Joshua Leung [Tue, 15 May 2018 16:31:39 +0000 (18:31 +0200)]
Remove G.main usage

14 months agoCopy on write: VIEW3D_OT_clear_render_border + rna
Dalai Felinto [Tue, 15 May 2018 16:19:08 +0000 (18:19 +0200)]
Copy on write: VIEW3D_OT_clear_render_border + rna

14 months agoCopy on write: VIEW3D_OT_render_border
Dalai Felinto [Tue, 15 May 2018 16:02:29 +0000 (18:02 +0200)]
Copy on write: VIEW3D_OT_render_border

Drawing is using the original scene (which shouldn't), but regardless
this force tagging to work.

14 months agoCleanup: Pass `Snap Object Params * params` to` iter_snap_objects`.
Germano [Tue, 15 May 2018 15:44:37 +0000 (12:44 -0300)]
Cleanup: Pass `Snap Object Params * params` to` iter_snap_objects`.

And remove unnecessary `defaulf:` labels.

14 months agoFix Cycles and viewport outline mismatch due to changed sensor size.
Brecht Van Lommel [Tue, 15 May 2018 15:32:16 +0000 (17:32 +0200)]
Fix Cycles and viewport outline mismatch due to changed sensor size.

14 months agoFix Cycles motion blur not working with CoW disabled.
Brecht Van Lommel [Tue, 15 May 2018 15:21:08 +0000 (17:21 +0200)]
Fix Cycles motion blur not working with CoW disabled.

Not so important but convenient for testing, and makes the Cycles tests
pass again for now.

14 months agoFix mistake in recent outliner rebuild change.
Brecht Van Lommel [Tue, 15 May 2018 15:07:13 +0000 (17:07 +0200)]
Fix mistake in recent outliner rebuild change.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 15 May 2018 15:31:26 +0000 (17:31 +0200)]
Merge branch 'master' into blender2.8

14 months agoFix assert using '//' on an unsaved file
Campbell Barton [Tue, 15 May 2018 15:27:36 +0000 (17:27 +0200)]
Fix assert using '//' on an unsaved file

Annoying for debug builds.

14 months agoParticle edit: Fix generation of KD tree for emitters
Sergey Sharybin [Tue, 15 May 2018 14:15:13 +0000 (16:15 +0200)]
Particle edit: Fix generation of KD tree for emitters

Fixes crahs using puff brush with copy-on-write.

14 months agoparticle edit: Fix crash when using without copy-on-write
Sergey Sharybin [Tue, 15 May 2018 14:00:08 +0000 (16:00 +0200)]
particle edit: Fix crash when using without copy-on-write

14 months agoParticles: Fix uninitialized child orco passed to modifiers
Sergey Sharybin [Tue, 15 May 2018 13:56:40 +0000 (15:56 +0200)]
Particles: Fix uninitialized child orco passed to modifiers

Wrong cleanup done in 51b796ff152.

14 months agoParticle edit: Need to check DONE flag from evaluated psys
Sergey Sharybin [Tue, 15 May 2018 12:50:24 +0000 (14:50 +0200)]
Particle edit: Need to check DONE flag from evaluated psys

14 months agoParticle edit: Support children particles display with copy on write
Sergey Sharybin [Tue, 15 May 2018 12:38:02 +0000 (14:38 +0200)]
Particle edit: Support children particles display with copy on write

14 months agoDepsgraph: Forbid flush across scene->geometry operations
Sergey Sharybin [Tue, 15 May 2018 12:35:24 +0000 (14:35 +0200)]
Depsgraph: Forbid flush across scene->geometry operations

This relations is only to force geometry evaluation to happen
after scene's CoW is done. it was never meant to update geometry
when scene is being tagged.