Jacques Lucke
684739c6f9
Fix: missing cache invalidation when the active vertex group changed
...
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3716
2018-09-21 16:20:32 +02:00
Clément Foucault
d2dba449fe
Edit Mesh Mode: Increase Face dot Z bias
2018-09-21 15:45:03 +02:00
Clément Foucault
37fea2c0f0
Edit Mode: Merge Xray and "Limit selection to visible" options behaviour
...
We now treat Xray as being the mode where Limit selection to visible is off.
If Xray is OFF, Limit selection to visible is considered ON.
To allow 'see through wires' with solid shading (not Xray shading) we still
draw solid shading if Xray is ON with Xray Alpha set to 1.0.
2018-09-21 15:45:03 +02:00
Clément Foucault
3523958de9
DRW: Add back wireframe mode
...
This is using the existing engine (workbench forward) with 0.0 xray_alpha
and forcing wireframes on all objects.
There is no workflow/shortcut changes in this commit.
2018-09-21 15:45:03 +02:00
Sergey Sharybin
6934b246d1
Cleanup: Inetnation
2018-09-21 15:35:34 +02:00
Sergey Sharybin
5ee0200d43
Multires: Support masks propagation to higher levels
2018-09-21 15:31:44 +02:00
Sergey Sharybin
cec4c77719
Multires: Copy mask from sculpt to multires
...
Allows to paint mask in sculpt mode, then go out of sculpt
mode, come back and see proper mask.
2018-09-21 15:31:43 +02:00
Sergey Sharybin
b32832a7e8
Subdiv: CCG, initialize grid mask from paint mask
2018-09-21 15:31:43 +02:00
Sergey Sharybin
da800621ed
Subdiv: CCG, cleanup
2018-09-21 15:31:43 +02:00
Brecht Van Lommel
06dc059f48
Depsgraph: update frame in scene on frame change.
...
Normally the time can be read from DEG_get_ctime(depsgraph), but this is a
bit more forgiving for e.g. addons that don't care too much about the details
of the COW depsgraph.
2018-09-21 14:15:27 +02:00
Brecht Van Lommel
4494be513a
Fix smoke to render in Cycles again.
...
Viewport caching seems still broken, though baking works.
2018-09-21 14:15:27 +02:00
Antonioya
b7035cb8bd
GP: Change canvas titles
...
These changes are to harmonize names.
2018-09-21 14:10:40 +02:00
Brecht Van Lommel
cfb7565cd5
Cleanup: convert smoke modifier from DerivedMesh to Mesh.
2018-09-21 13:56:22 +02:00
Jacques Lucke
0192f0b1e4
Revert "Fix: setUp of ID Property tests failed"
...
This reverts commit 52cee1a23c .
2018-09-21 12:54:43 +02:00
Jacques Lucke
52cee1a23c
Fix: setUp of ID Property tests failed
2018-09-21 12:51:06 +02:00
Sergey Sharybin
9ecce9b4c4
Subdiv: Fix crash subdividing mesh withotu faces
2018-09-21 12:18:50 +02:00
Sergey Sharybin
12372e8d8b
Multires: Support sculpting on a lover levels
...
Added propagation of displacement to a higher levels.
Has the same limitation as reshape from object, which makes
grids somewhat choppy due to linear interpolation nature.
This is to be addressed next.
2018-09-21 11:43:42 +02:00
Sergey Sharybin
619c55027f
Multires: Fix reshaping from object at lower level
...
This brings basic implementation of displacement propagation
to a higher levels. Currently does linear interpolation between
grid points at which reshape happened. It makes results a bit
choppy, proper solution would be to use some interpolation
weights from the limit patch.
2018-09-21 11:24:33 +02:00
Brecht Van Lommel
495c7463fc
UI: fractional DPI scaling of splash, instead of always 1x or 2x.
2018-09-21 10:46:08 +02:00
Bastien Montagne
c71db48b27
Fix minor typo in comment.
2018-09-21 10:08:42 +02:00
Antonioya
cf34c165ea
GP: Convert lock axis to popover
2018-09-21 08:51:25 +02:00
Campbell Barton
391536ef12
Fix missing edge in shape-to-wire utility
2018-09-21 16:09:32 +10:00
Campbell Barton
7a3474ddfd
Gizmo: spin tool XYZ axis toggles
...
New handle type for initial spin,
gives clear differentiation between do & redo (similar to extrude).
Some tweaks still required to match T56571.
2018-09-21 13:48:22 +10:00
Campbell Barton
3266ebf9e5
Gizmo: enable spin tool redo gizmos again
...
- Add x,y rotate and translate controls.
- Remove x-depth adjustment.
2018-09-21 13:34:29 +10:00
Campbell Barton
7deb38eec6
Gizmo: fix incorrect dial clip scaling
...
Failed with obvious error when the dials scale wasn't 1.0
2018-09-21 10:30:55 +10:00
Campbell Barton
5340e9ac1b
Merge branch 'master' into blender2.8
2018-09-21 08:18:23 +10:00
Campbell Barton
0a968510bf
Cleanup: style, use raw strings
2018-09-21 08:15:46 +10:00
Campbell Barton
08c7733c13
Cleanup: style
2018-09-21 08:11:50 +10:00
Dalai Felinto
fb88088203
Preserve the actively bound framebuffer after using gpu.offscreen
...
Otherwise we cannot draw anything after drawing in the offscreen buffer
2018-09-20 21:43:08 +00:00
Antonioya
5e2c032f1a
GP: Change lock axis property text
2018-09-20 22:51:56 +02:00
Dalai Felinto
425cfdd5be
GPU Python API: shader.uniform_float
...
The existing alternative is to use a buffer and call
uniform_vector_float which is overkill for such a simple operation.
2018-09-20 19:51:06 +00:00
Dalai Felinto
e316e41f84
Typo on pydoc for uniform_int
2018-09-20 19:49:08 +00:00
mano-wii
f0149bc070
gpu.batch module: keep shader reference in batch.
2018-09-20 16:38:43 -03:00
mano-wii
9fb9604c19
gpu.shader module: Do not free builtin shaders.
2018-09-20 15:21:59 -03:00
Sebastian Parborg
d0eed5e50a
Texture Paint: unify missing data and slots panels, better auto position nodes.
...
Differential Revision: https://developer.blender.org/D3694
2018-09-20 19:54:33 +02:00
Brecht Van Lommel
1a0181bb6d
UI: add support for defining any icon as a mono icon.
...
Previously it was hardcoded to one row. These icons are colored with the
text color. Changes include some refactoring.
2018-09-20 19:15:41 +02:00
Brecht Van Lommel
decc323b4e
UI: default to single icon column toolbar in new 3D views.
2018-09-20 19:15:01 +02:00
mano-wii
9c2dc808ce
gpu.shader.builtin module: Add GPU_SHADER_2D_IMAGE.
2018-09-20 13:55:43 -03:00
Clément Foucault
b8d55a570e
GPUCodegen: Remove unnecessary GLEW_VERSION_3_0 checks
2018-09-20 17:53:47 +02:00
Clément Foucault
667add5fc5
Eevee: Implement Wireframe Node
...
This implementation is a bit hacky but match cycles pretty close.
If pixel size is not enabled, it will use the geom shader to
compute distances between vertices. This will have a cost.
Implementation is a bit hacky in gpu_codegen to make the geom shader works
in an optional manner.
2018-09-20 17:53:47 +02:00
mano-wii
5c20161f81
Fix compilation error in the stick bones shader for some Intel gpus.
2018-09-20 12:11:23 -03:00
Dalai Felinto
cffae36381
Fix build for MSVC: Remove trailing double semicolon
...
Not sure why but MSVC is complaining for some of those.
In particular for the struct in BKE_subdiv_ccg.h. Those were the ones
crashing here..
2018-09-20 14:59:55 +00:00
Sergey Sharybin
9a91e67825
Multires: Cleanup, more proper variable name
2018-09-20 16:35:50 +02:00
Sergey Sharybin
315929e095
Sculpt: Fix undo not working for multires
2018-09-20 15:39:41 +02:00
Sergey Sharybin
00037059e9
Subdiv: CCG, implement averaging along edges and corners
...
Makes it so smooth brush works properly, without causing grids
to become disconnected from each other.
This need to optimize the code for brush, to only average edges
and vertices which are adjacent to modified faces.
2018-09-20 15:39:41 +02:00
Sergey Sharybin
d3aafbddd9
Subdiv: CCG, store vertex adjacency information
...
Similar to previous commit, but for vertices.
2018-09-20 15:39:41 +02:00
Sergey Sharybin
d511c72056
Subdiv: CCG, store edge adjacency information
...
This information is stored for each non-loose edge.
For each of such edge we store:
- List of CCG faces it is adjacent to.
This way we can easily check whether it is adjacent to
any face which is tagged for update or so.
- List of boundary elements from adjacent grids.
This allows to traverse along the edge and average all
adjacent grids.
2018-09-20 15:39:41 +02:00
Sergey Sharybin
069fa8279d
Subdiv: CCG, fix memory leak
...
Forgot to free memory used by grid to face mapping array.
2018-09-20 15:39:41 +02:00
Sergey Sharybin
13820ec5c1
Subdiv: CCG, fix crash going from sculpt to edit mode
...
Was happening for "new" objects, which did not have MDisps
allocated yet.
2018-09-20 15:39:41 +02:00
Sergey Sharybin
0a596eda2a
Subdiv: CCG, localize Mesh usage even more
2018-09-20 15:39:41 +02:00