Sergey Sharybin
ff3e9d0d90
Particle edit: Fix missing update after undo
...
Old code was doing draw-time calculations in some cases.
just do the same for now.
2018-05-11 12:49:25 +02:00
Sergey Sharybin
96584818b7
Draw manager: Use explicit edit structure passed in
2018-05-11 12:49:25 +02:00
Sergey Sharybin
a55c588559
Depsgraph: Move edit mode pointers trickery to own functions
2018-05-11 12:49:25 +02:00
Sergey Sharybin
1c6414dd1b
Draw manager: Get number of cached segments from edit
...
This way we know it's in sync with edit mode.
2018-05-11 12:49:25 +02:00
Sergey Sharybin
327789eaf8
Draw manager: Add utility function to check whether particle systems are to be drawn
2018-05-11 12:49:25 +02:00
Bastien Montagne
bac9b04778
Add comment about weird special handling of scene freeing in depsgraph.
2018-05-11 11:36:48 +02:00
Bastien Montagne
20b6eabd42
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.
2018-05-11 11:36:48 +02:00
Dalai Felinto
8b41999ea0
Multi-Object: MESH_OT_loop_to_region by Oleg
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3253
2018-05-11 11:34:15 +02:00
Christian Hubert
17ac0e824b
Modifiers: ported Corrective Smooth DerivedMesh → Mesh
...
Reviewers: sybren
Differential Revision: https://developer.blender.org/D3339
2018-05-11 11:27:04 +02:00
Dalai Felinto
badd88ca02
Multi-Object: MESH_OT_screw by Nick Milios
...
With small changes.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3276
2018-05-11 11:25:58 +02:00
Dalai Felinto
eacb2eb423
Multi-Object: MESH_OT_select_loose by Falk David
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3276
2018-05-11 11:13:09 +02:00
Christian Hubert
e0a41fd0ce
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
2018-05-11 11:12:28 +02:00
Dalai Felinto
9d0d7c375e
Multi-Object-Editing : MESH_OT_rip by Miguel Pozo
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3266
2018-05-11 10:59:00 +02:00
Dalai Felinto
1fd4449762
Fix memleak on MESH_OT_tris_convert_to_quads
2018-05-11 10:52:46 +02:00
Bastien Montagne
d19c8605f8
Merge branch 'master' into blender2.8
2018-05-11 10:49:58 +02:00
Bastien Montagne
13beeb5892
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.
2018-05-11 10:48:04 +02:00
Christian Hubert
bcb245bd71
Assign totxxx mesh attributes in BKE_mesh_new_nomain
...
Reviewers: sybren
2018-05-11 10:37:36 +02:00
Sybren A. Stüvel
4fe5a105f6
Fix bad pointer cast when modifier is used on non-mesh object
2018-05-11 10:14:35 +02:00
Campbell Barton
b726ff4fc4
EditMesh: multi-object triangle fill
...
D3336 by @nabbydude
2018-05-11 08:41:04 +02:00
Campbell Barton
1d8e6c5cd0
EditMesh: multi-object select ungrouped
...
D3295 by @philippe-bachour
2018-05-11 08:21:26 +02:00
Campbell Barton
f2b5de6893
Cleanup: whitespace
2018-05-11 08:21:26 +02:00
Jeroen Bakker
6d155dc462
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
2018-05-11 08:17:05 +02:00
Campbell Barton
266638d783
EditMesh: multi-object recalculate normals
...
D3298 by @leonlg
2018-05-11 08:08:01 +02:00
Campbell Barton
e161c51e7f
EditMesh: multi-object select_interior_faces
...
D3334 by @ThaRemo
2018-05-11 07:59:16 +02:00
Campbell Barton
b5823c25f8
Cleanup: whitespace
2018-05-11 07:55:41 +02:00
Campbell Barton
33f3298e28
Cleanup: use 'uint' in draw manager
2018-05-11 07:48:52 +02:00
Campbell Barton
df10a2e030
Cleanup: style
2018-05-11 07:47:25 +02:00
Campbell Barton
83a83a3d4b
Cleanup: whitespace, duplicate includes
2018-05-11 07:43:20 +02:00
Campbell Barton
8c96cb55c3
Fix add-manipulator cursor plane calculation
...
Now use the closest plane facing the view z axis.
2018-05-10 23:06:55 +02:00
Campbell Barton
be1af8d44c
Fix error building
2018-05-10 21:43:15 +02:00
Germano
66636e665b
Cleanup: Remove redundant parameter.
2018-05-10 16:32:13 -03:00
Germano
15580470fd
Paint Stroke: Fix strokes drawing.
2018-05-10 16:29:14 -03:00
Campbell Barton
3f3326af1c
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.
2018-05-10 20:31:10 +02:00
Campbell Barton
4332edcc3e
Cleanup: warning
2018-05-10 20:31:10 +02:00
Pablo Vazquez
d6a7491e78
Make current frame indicator smaller with rounded corners.
...
Reviewed by Joshua Leung
2018-05-10 19:42:21 +02:00
Joshua Leung
5df0fed47c
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.
2018-05-10 19:28:37 +02:00
Campbell Barton
e4c7cef748
Cleanup: warnings
2018-05-10 19:10:16 +02:00
Campbell Barton
334b1cf92f
Cleanup: warnings
2018-05-10 19:07:03 +02:00
Germano
55389d4899
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 >
2018-05-10 13:40:30 -03:00
Germano
a35b9cc302
BKE: bvhutils: Added support for bvhtrees from loose verts and bvhtree from loose edges
2018-05-10 13:35:48 -03:00
Joshua Leung
be400a0789
UI: Fix time cursor number box styling for Clip Editor's Dopesheet/Graph views
2018-05-10 17:56:12 +02:00
Bastien Montagne
c20cc3cf14
Merge branch 'master' into blender2.8
2018-05-10 14:27:24 +02:00
Campbell Barton
27da2db0ca
3D View: utility to get matrix from cursor
2018-05-10 12:24:07 +02:00
Campbell Barton
e6814acf13
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.
2018-05-09 22:43:24 +02:00
Campbell Barton
80c9cd13da
Manipulator: support direct cage3d adjustment
...
Scale cage relied on transform code,
this adds support for the manipulator corners being modified directly.
2018-05-09 22:37:09 +02:00
Germano
d824c80e9f
Cleanup: Remove redundant bvh_cache initialization.
2018-05-09 13:28:59 -03:00
Sergey Sharybin
37cec42e3d
Clay: Cleanup, reduce indentation level
2018-05-09 16:45:04 +02:00
Sergey Sharybin
2d5fe40601
Eevee: Cleanup, use NULL instead of static matrix
...
Those are the same thing now. So no need to keep initializing matrix
over and over.
2018-05-09 16:42:15 +02:00
Sergey Sharybin
cb747302dc
Correct previous commit
2018-05-09 16:38:38 +02:00
Sergey Sharybin
734a232b39
Eevee: Cleanup, reduce indentation level
2018-05-09 16:36:09 +02:00