Brecht Van Lommel
fe6a6dee0b
Motion Paths: only update once when transforming multiple bones or objects.
2018-09-14 17:42:58 +02:00
Brecht Van Lommel
a415d521db
Fix object motion paths not updating correct after filtering optimization.
2018-09-14 17:42:58 +02:00
Antonioya
cfaf92c079
GP: Fix T56802 - Add/Delete Vertex Group crashes
2018-09-14 16:09:10 +02:00
Luca Rood
c4ef2e2f2e
Cloth: Improve UI
...
This reorganizes the cloth UI, and changes some of the behaviour to be
more reasonable.
Changes included here:
* Reorganized cloth panels
* Improved some tooltips
* Removed `vel_damping` option
* Removed cloth pinning checkbox
* Removed stiffness scaling checkbox
* Separated shrinking from sewing
* Separated self collisions from object collisions
Reviewed By: brecht
Differential Revision: http://developer.blender.org/D3691
2018-09-14 15:52:00 +02:00
mano-wii
1287965089
GPU module: Initial implementation of the gpu.shader submodule.
...
Differential Revision: https://developer.blender.org/D3688
2018-09-14 09:46:19 -03:00
Sergey Sharybin
d15928c234
Depsgraph: Use default visibility of false
...
Avoids invisible objects from being considered visible when they
are used as driver variables.
If those cases are actually coming from a visible object, then
deg_graph_build_flush_visibility() will ensure visibility is
properly flushed there.
2018-09-14 14:43:56 +02:00
Sergey Sharybin
d7fdd505da
Depsgraph: Respect parent object visibility in more places
...
Mainly coverts object->parent and pose constraints.
2018-09-14 14:43:56 +02:00
Sergey Sharybin
95f257395e
Depsgraph: Make indirectly linked objects inherit visibility from parent
...
This way objects which are pulled into dependency graph via modifier
stack from an invisible object will be invisible.
2018-09-14 14:43:56 +02:00
Sergey Sharybin
06c0febe70
Depsgraph: Use explicit argument values
2018-09-14 14:43:56 +02:00
Sergey Sharybin
8e8952b7e3
Multires: Initial work to get sculpting to work with OpenSubdiv
...
Allows to go to sculpt mode, do brush strokes, get out of sculpt mode
and have deformation preserved.
The issues currently is that the current implementation of CCG
storage is created from the limit surface, without displacement
taken into account. It is trivial to get displaced coordinates,
but it is more tricky to get displaced normals. This is something
to be solved next.
Another limitation is that this only works for sculpting at a maximal
multires level. There is code to be done to support propagation
of displacement onto a higher levels.
2018-09-14 14:43:56 +02:00
Sergey Sharybin
744233f207
Subdiv: Cleanup, variable name spelling
2018-09-14 14:43:56 +02:00
Sergey Sharybin
9a1ed28365
Sculpting: Fix wrong object was using for PBVH
...
The function is supposed to be called for original object.
Draw manager abuses this a bit, will solve later by moving
PBVH (re)creation to dependency graph.
At the time being, stop adding object evaluation to draw
manager, this is really where it does not belong to.
2018-09-14 14:43:56 +02:00
Sergey Sharybin
f827e3c84b
Subdiv: Cache Subdiv in CCG surface
...
Allows to do re-shaping easier, since we will know for sure
what was the limit surface the CCG is created for.
2018-09-14 14:43:56 +02:00
Clément Foucault
e37479ad89
GPUBuffers: Rework support for pbvh grids + fast navigate
...
Flat shaded grids are now rendered as a long triangle strip with
degenerate triangles.
Smooth shaded grids are not changed.
Also add back fast navigate. The only difference with 2.79 is that fast
navigate + flat shading will show slitly "incorrect" smooth face. But that's too
much effort to fix for what it is.
2018-09-14 12:20:01 +02:00
Antonioya
1d76fbf3df
GP: Add thickness and stregth factor to UI
...
Now it's possible change the factors for soft eraser.
2018-09-14 10:31:47 +02:00
Antonioya
18141863b2
GP: Fix armature deformation weight problem
...
The armature was using only weight 1 or 0, but not the real value.
Also removed unused parm in UI panel.
2018-09-14 08:57:46 +02:00
Antonioya
d6f896da22
GP: Add strength factor for eraser brush
...
This gives more control.
2018-09-13 18:34:34 +02:00
Antonioya
74a3519a15
GP: More tweaks in soft eraser
...
Follow with the changes to get a good feeling using the eraser.
2018-09-13 17:04:35 +02:00
Antonioya
a273e432cc
GP: Add pressure button for eraser brushes
2018-09-13 16:52:27 +02:00
Antonioya
379225d2bc
GP: More changes to improve soft eraser
...
Small changes to improve "feeling" of the soft eraser.
2018-09-13 16:06:45 +02:00
Campbell Barton
1e3d6ae09b
Gizmo: only use mousemove for generic gizmos
...
This caused slow performance for spin/bisect for eg.
2018-09-14 00:10:59 +10:00
Bastien Montagne
3e6f37b936
Fix a crash with duplivert, and move to evaluated mesh in object_dupli.c
...
There are still lots of issues/TODOs here though, like missing 'cage'
for editmesh, etc.
2018-09-13 15:56:46 +02:00
Campbell Barton
a2325495f9
Merge branch 'master' into blender2.8
2018-09-13 23:38:53 +10:00
Campbell Barton
1a4aca1b69
WM: move mousemove out of internal undo function
...
This causes a feedback loop in 2.8x,
where gizmo redo caused fake mousemove that executed gizmo again.
Move the mousemove into the undo/redo operator.
2018-09-13 23:28:02 +10:00
Brecht Van Lommel
e082fc7c77
Workspaces: reference count screens, otherwise they are never freed.
...
They are not directly accessible in the UI anymore, it's the workspaces
that we always keep until they are manually deleted now.
2018-09-13 14:44:36 +02:00
Campbell Barton
80f083f993
Gizmo: avoid redundant value2d updates
2018-09-13 22:25:15 +10:00
Campbell Barton
00bdd04570
Gizmo: set header text when editing the value
2018-09-13 22:15:44 +10:00
Antonioya
5a90ebc278
GP: Sample points in both sides for soft eraser
...
Now the soft eraser use the previous point and not only current and next. This makes the transition smoother.
2018-09-13 13:55:33 +02:00
Campbell Barton
8326fe7aa5
Gizmo: value2d cancel, snap & precise support
2018-09-13 22:04:54 +10:00
Antonioya
3b8251664e
GP: Improve soft eraser rounded caps
...
When draw segments the rounded cap must be only visible in some situations.
2018-09-13 12:39:02 +02:00
Campbell Barton
09aa446100
Merge branch 'master' into blender2.8
2018-09-13 20:15:18 +10:00
Campbell Barton
254067106e
PyAPI: remove operator methods that leak memory
2018-09-13 20:10:56 +10:00
Bastien Montagne
2c4f091feb
Merge branch 'master' into blender2.8
2018-09-13 11:27:38 +02:00
Campbell Barton
aacdd28edd
PyDoc: add bpy.app.icons to docs
2018-09-13 19:21:08 +10:00
Bastien Montagne
2be1d8bbaf
Tentative fix for T56770: Crash after set language to Simplified Chinese.
...
That bug probably did not affect 2.7x, only 2.8 with COW copying IDs in
threads... But root of the issue is that underlying boost i18n lib does
not support well multi-threaded access. So simply forbid any translation
from non-main thread. This *may* be an annoying limit at some point, but
doubt it will be any issue currently.
2018-09-13 11:20:49 +02:00
Campbell Barton
af1cf00003
Merge branch 'master' into blender2.8
2018-09-13 18:19:24 +10:00
Campbell Barton
a6fc718029
PyAPI: add API call to get an operators type
...
Getting the instance leaks memory and was only meant to be used for
generating docs.
2018-09-13 18:16:06 +10:00
Campbell Barton
d538de90a7
Merge branch 'master' into blender2.8
2018-09-13 17:56:32 +10:00
Campbell Barton
9900addf11
Cleanup: _bpy.ops utility to lookup an operator
2018-09-13 17:47:56 +10:00
Campbell Barton
c197c210e4
PyAPI: add bpy.app.icons to sys.modules
2018-09-13 17:20:27 +10:00
Campbell Barton
76d67b4db4
Merge branch 'master' into blender2.8
2018-09-13 17:08:58 +10:00
Campbell Barton
44f719b632
Cleanup: use PyImport_GetModuleDict
...
Replace direct access using PyThreadState_GET
2018-09-13 17:06:07 +10:00
Campbell Barton
c2fb0bacb8
Gizmo: code comments
...
Note about limits of new tool-init flag.
2018-09-13 13:35:26 +10:00
Campbell Barton
9e5259b043
Tool System: make smooth and randomize interactive
2018-09-13 09:19:30 +10:00
Campbell Barton
1f1802307f
Gizmo: value2d utility to adjust operator values
...
This allows any operator to interactively redo without having to
manually make each operator modal.
2018-09-13 09:10:19 +10:00
Campbell Barton
26a6e58e9a
Cleanup: add editor gizmo doxy group
2018-09-13 08:33:21 +10:00
Campbell Barton
8d3a39ff56
Cleanup: use float name in property range function
2018-09-13 08:17:16 +10:00
Campbell Barton
e103618b28
Cleanup: move cycles addon check out of versioning
2018-09-13 08:00:05 +10:00
Campbell Barton
07ab3eec01
Cleanup: style
2018-09-13 07:51:59 +10:00
Campbell Barton
2a14807f39
Merge branch 'master' into blender2.8
2018-09-13 07:50:45 +10:00