Sybren A. Stüvel
eacf63c96f
Particle System: Pass correct particle index when drawing
...
Passing the wrong index caused the particles to stop being shown when the
first particle dies.
2018-05-16 16:09:52 +02:00
Germano
1b2ba24749
fix build error in last commit.
2018-05-16 11:02:54 -03:00
Bastien Montagne
f0c0d11ea2
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!).
2018-05-16 15:47:50 +02:00
Germano
2ba0951e52
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
2018-05-16 10:32:54 -03:00
Sybren A. Stüvel
6a4ba9133c
Fix T55097: Mesh Deformation modifier is ignoring Vgroup option
2018-05-16 15:19:10 +02:00
Dalai Felinto
b0cfd7a9b8
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.
2018-05-16 15:02:33 +02:00
milios
d9e04cb594
Multi-Object-Mode: EditMesh Tool Bevel (MESH_OT_bevel)
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3352
2018-05-16 14:05:57 +02:00
Sybren A. Stüvel
7fd44e2498
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.
2018-05-16 13:06:57 +02:00
Luc Revardel
1bb9ccf887
Multi-Object-Editing: MESH_OT_faces_select_linked_flat
...
Reviewers: dfelinto
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3372
2018-05-16 13:04:09 +02:00
Mai Lavelle
d095eea19c
Silence warning about functions having no prototype
2018-05-16 06:45:54 -04:00
Sybren A. Stüvel
dbe4189dcd
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.
2018-05-16 12:41:48 +02:00
milios
46aec45b2a
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
2018-05-16 12:29:05 +02:00
Dalai Felinto
807afedf6c
Fix check for MESH_OT_intersect
2018-05-16 12:26:32 +02:00
milios
dffd37877d
Multi-Object-Editing: intersect (MESH_OT_intersect)
...
Reviewers: dfelinto
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3307
2018-05-16 12:17:20 +02:00
Mai Lavelle
f7c37c8344
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
2018-05-16 06:07:50 -04:00
Mai Lavelle
c43dbc2bc2
Add modifier_deformVerts_ensure_normals, modifier_applyModifier_ensure_normals
...
Same as `modwrap_deformVerts` and `modwrap_applyModifier` but for `Mesh`.
2018-05-16 06:07:50 -04:00
Mai Lavelle
fee50f830d
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`.
2018-05-16 06:07:50 -04:00
milios
b6a822d726
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
2018-05-16 11:54:33 +02:00
Sybren A. Stüvel
a6e804eaee
Particle system: get current time from depsgraph
...
This makes the particle animation work again!
2018-05-16 10:50:49 +02:00
Jeroen Bakker
ca8e9c881f
Workbench: Read studiolights from USER + SYSTEM datafiles
2018-05-16 09:14:20 +02:00
Campbell Barton
d0b62ce041
Fix navigate widget w/ region overlap
2018-05-16 08:46:40 +02:00
Campbell Barton
b79fea28e3
Fix visible region overlap calculation
...
Existing code didn't account for top/bottom overlap.
2018-05-16 08:32:02 +02:00
Germano
0a8d6bd893
Transform: Snap: Make sure if bmesh arrays need to be recalculated.
2018-05-15 16:15:14 -03:00
Germano
9619a90da1
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.
2018-05-15 15:38:17 -03:00
Campbell Barton
599bf05c56
Merge branch 'master' into blender2.8
2018-05-15 19:53:34 +02:00
Jeroen Bakker
bf0d16e30e
Workbench: send right event after shadow_shift changes
2018-05-15 19:47:29 +02:00
Germano
7a69c59b35
Revert "BLI_kdopbvh: Reference clip_planes callback to find nearest projected."
...
This reverts commit 717dd4cecd .
It was causing problems in the protactor ruler.
I'll think of a better solution.
2018-05-15 14:37:45 -03:00
Campbell Barton
4461be1b72
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.
2018-05-15 19:37:06 +02:00
Germano
50c29e2391
Cleanup: pass the use_depth parameter to the SnapObjectParams struct in the ED_transform_snap_object_project_view3d_mixed.
2018-05-15 14:32:30 -03:00
Germano
717dd4cecd
BLI_kdopbvh: Reference clip_planes callback to find nearest projected.
...
Clip_planes are an important parameter to be used in callbacks.
2018-05-15 14:14:25 -03:00
Joshua Leung
a2dd6fa58b
COW Fix: VIEW3D_OT_select_lasso now works for Pose Bones. Other modes untested.
2018-05-15 19:13:25 +02:00
Germano
439ccd27e6
BLI_math: Added isect_point_planes_v3_negated function.
2018-05-15 14:10:41 -03:00
Joshua Leung
ca028f1387
Fix POST_OT_hide/reveal
...
Apparently they weren't actually working, despite seemingly working
when tested earlier. Argh!
2018-05-15 19:08:00 +02:00
Joshua Leung
747326ed25
Fix: POSE_OT_visual_transform_apply now works with Copy on Write
2018-05-15 18:39:24 +02:00
Joshua Leung
c3282cb746
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
2018-05-15 18:39:24 +02:00
Joshua Leung
53c6d3399a
Remove G.main usage
2018-05-15 18:39:24 +02:00
Dalai Felinto
9439df1ab8
Copy on write: VIEW3D_OT_clear_render_border + rna
2018-05-15 18:19:08 +02:00
Dalai Felinto
4f8b6428bc
Copy on write: VIEW3D_OT_render_border
...
Drawing is using the original scene (which shouldn't), but regardless
this force tagging to work.
2018-05-15 18:03:10 +02:00
Germano
3d1f5cb9a2
Cleanup: Pass Snap Object Params * params to iter_snap_objects.
...
And remove unnecessary `defaulf:` labels.
2018-05-15 12:44:37 -03:00
Brecht Van Lommel
13b2ba4fdd
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.
2018-05-15 17:32:38 +02:00
Brecht Van Lommel
8c44e182f0
Fix mistake in recent outliner rebuild change.
2018-05-15 17:32:38 +02:00
Campbell Barton
77d6c09ddd
Merge branch 'master' into blender2.8
2018-05-15 17:31:26 +02:00
Campbell Barton
91504ed26e
Fix assert using '//' on an unsaved file
...
Annoying for debug builds.
2018-05-15 17:27:36 +02:00
Sergey Sharybin
fda05127db
Particle edit: Fix generation of KD tree for emitters
...
Fixes crahs using puff brush with copy-on-write.
2018-05-15 17:20:02 +02:00
Sergey Sharybin
5d879c5d42
particle edit: Fix crash when using without copy-on-write
2018-05-15 17:20:02 +02:00
Sergey Sharybin
83155cce5b
Particles: Fix uninitialized child orco passed to modifiers
...
Wrong cleanup done in 51b796ff15 .
2018-05-15 17:20:02 +02:00
Sergey Sharybin
2d0efe2e78
Particle edit: Need to check DONE flag from evaluated psys
2018-05-15 17:20:02 +02:00
Sergey Sharybin
a104c41759
Particle edit: Support children particles display with copy on write
2018-05-15 17:20:02 +02:00
Sergey Sharybin
ed0901b47e
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.
2018-05-15 17:20:02 +02:00
Sergey Sharybin
f43d33d3a4
Depsgraph: Keep track of original particle system
...
Allows to have quicker lookup in particle edit mode.
2018-05-15 17:20:02 +02:00