Campbell Barton
e40870c479
Cleanup: warnings, style
2018-09-26 10:01:32 +10:00
Dalai Felinto
c419cb7305
Multi-Objects: Select similar face SIMFACE_FACEMAP
...
Facemap is per object, so we store them in a gset per object, and only check the object
faces with its own facemaps.
2018-09-25 19:58:03 -03:00
Dalai Felinto
235c51f11a
Remove wrongly copy/pasted comment on object_facemap_ops.c
2018-09-25 19:58:03 -03:00
Clément Foucault
682c64d3e1
Curve Edit: Fix handles glitch when MSAA is enable
2018-09-26 00:49:50 +02:00
Clément Foucault
5158da9e37
Curve Edit: Cleanup/Improve/Fix handles drawing
...
Now handles are drawn using index buffer instead of duplicating memory
requirement.
Also make use of shader tricks to draw handles antialiased, and respond to
UI scalling.
Make vertex point match edit mesh vertex size.
2018-09-26 00:49:50 +02:00
Dalai Felinto
c9d0873e90
Multi-Objects: Select similar face SIMFACE_FREESTYLE
...
Note: 2.7x seem to be checking for edge data instead of face, but I do not see why not to get FreestyleFace.
2018-09-25 19:18:30 -03:00
Dalai Felinto
424bb2ebdc
Multi-Objects: Select similar face SIMFACE_SMOOTH
2018-09-25 19:18:30 -03:00
Dalai Felinto
f59b968cef
Multi-Objects: Select similar face SIMFACE_NORMAL
...
We could/can deduplicate the code with SIMVERT_NORMAL.
2018-09-25 19:18:30 -03:00
Dalai Felinto
c32b63f8fd
Multi-Objects: Select similar face SIMFACE_AREA and SIMFACE_PERIMETER
...
Note: Not doing worldspace comparison for now. We would need to create new
BM_face_calc_area and BM_face_calc_perimeter equivalent functions for that.
Not sure if it is worth the trouble.
2018-09-25 19:18:30 -03:00
Dalai Felinto
3618646e71
Multi-Objects: Select similar face SIMFACE_MATERIAL
...
Note: Unlike 2.79 we are not comparing face->mat_nr, but the material itself.
On top og that, if the material slot is empty we are just ignoring this face.
2018-09-25 19:18:30 -03:00
Dalai Felinto
8990ad1b9c
Multi-Objects: Select similar face SIMFACE_SIDES
2018-09-25 19:18:30 -03:00
Dalai Felinto
b75648694c
Cleanup comments on select similar edge
2018-09-25 19:18:30 -03:00
Dalai Felinto
ebe955b1c8
Fix memleak on edbm_select_linked_pick_invoke
...
Issue introduced on 549ac6ddeb .
2018-09-25 19:18:30 -03:00
Dalai Felinto
5a6b46f0ca
Remove warnings
2018-09-25 19:18:30 -03:00
Clément Foucault
311db0e9f0
Edit Curves: Fix warnings due to recent changes
2018-09-25 23:04:41 +02:00
Dalai Felinto
9dbf71adb8
Code style cleanup after recent object drawing > viewport changes
2018-09-25 17:56:14 -03:00
Clément Foucault
0c21773199
Edit Curve: Fix cannot hide handles
2018-09-25 22:51:54 +02:00
Clément Foucault
2cff9b4cb6
Curves: Move draw options to overlays
...
This commit add one regression: it is impossible to currently hide handles
in the viewport. But this should be fixed in another commit.
2018-09-25 22:51:54 +02:00
Clément Foucault
05d0e5315b
Weight Paint: Fix weight paint overlay not displaying correctly
...
This was because weight paint was using the original obj to show weights.
But the mesh can be deformed by the armature and this is not visible on
the original object.
2018-09-25 22:51:54 +02:00
Clément Foucault
9f6978a1ba
Eevee: Don't render meshes in hidden wire mode
2018-09-25 22:51:54 +02:00
Clément Foucault
a3bb385ca0
Edit Mesh: Move Edit Mesh display settings to overlay's
...
This makes the Edit Mesh display settings common to all objects. They can
also be set differently per viewport.
Modifying extra data (seams, sharp edges etc...) will no longer set them
automaticaly visible.
Bumping version because we need to force set all extra draw options for
older files.
2018-09-25 22:51:54 +02:00
Clément Foucault
7cc9998809
Edit Mesh: Center text when Edge length & Edge Angle is activated
...
This is more readable as the informations will never overlap and be off the
center of the edge.
2018-09-25 22:51:54 +02:00
Dalai Felinto
75eb947275
Multi-Objects: Select similar edge SIMEDGE_CREASE and SIMEDGE_CREASE
...
All edge options are done now.
2018-09-25 16:36:02 -03:00
Antonioya
f4f99d1d75
Add fixed width/height parameter for layouts
...
New parameters to define a fixed size for a layout. This allows to avoid UI changes when the text length changes.
This commit implements D3725
2018-09-25 20:59:04 +02:00
Antonioya
0f7e858f06
GP: New pressure option for sculpt brush radius
2018-09-25 20:43:50 +02:00
Antonioya
9df3467b4e
GP: Add const to variable
2018-09-25 20:23:55 +02:00
Antonioya
e3f3a8101a
Fix T56917: GP noise modifier vertex group crash
2018-09-25 19:48:57 +02:00
Antonioya
4ad3182eb1
GP: Fix multi viewport onion error
...
For onion skin, the cache is set as dirty always because can be too many combinations of overlays and windows and makes impossible to control all changes of dirty flag.
This reduces performance, but it's safer and the onion is disabled while play animation, so the fps value is not affected.
2018-09-25 19:30:50 +02:00
Antonioya
0f652a1ec0
GP: New deselect by material option
...
Now the operator to select by color can unselect too.
2018-09-25 19:01:12 +02:00
Antonioya
fd1870b995
GP: Small changes to assign color operator
2018-09-25 18:44:53 +02:00
Antonioya
df5cb4d66f
GP: Add multiframe support to select by color
2018-09-25 18:17:48 +02:00
Antonioya
89b535690c
GP: Fix select strokes by color error
2018-09-25 18:17:48 +02:00
Ray Molenkamp
3e86cfa1ff
depsgraph: re-Fix 32 bit shift bug in get_visible_components_mask.
...
1UL << n still results in a 32 bit result, 1ULL << n actually retains all 64 bits.
fixes stupid typo in rBbd51cada8db64e45cabca66cd61438c1ae2bdf25
2018-09-25 10:12:58 -06:00
Alexander Gavrilov
af998b40a0
Implement correct drawing of advanced Weight display features.
...
This adds existing behavior from calc_weightpaint_vert_array
that was missing from the new rendering code:
- No selected Vertex Group displays as a solid pink color.
- Zero weight displays as alert color depending on Options.
- Multipaint mode correctly displays collective weight.
In order to properly implement this variety, a data structure
holding all relevant parameters is introduced.
Reviewers: fclem, campbellbarton
Subscribers: jbakker
Differential Revision: https://developer.blender.org/D3722
2018-09-25 18:44:57 +03:00
Ray Molenkamp
bd51cada8d
depsgraph: Fix 32 bit shift bug in get_visible_components_mask.
...
1 << n results in a 32 bit result, 1UL << n retains all 64 bits.
2018-09-25 09:23:00 -06:00
Ray Molenkamp
2f00f5b98f
despgraph: Use regular iterators for erase, fixes build error on centOS
...
CentOS7 ships with gcc 4.8.2 which does not support the const_iterator for erase.
2018-09-25 08:35:31 -06:00
Antonioya
e61861e393
GP: Add popover for Sculpt and Weight Paint panels
2018-09-25 15:39:15 +02:00
Roel Koster
3816592fc6
Fix broken shift + A menu in curve edit mode.
...
Differential Revision: https://developer.blender.org/D3699
2018-09-25 14:55:26 +02:00
Sebastian Parborg
d191676400
Modifiers: use Mesh instead of DerivedMesh for explode.
...
Differential Revision: https://developer.blender.org/D3718
2018-09-25 14:01:23 +02:00
Antonioya
456ed41e2c
GP: Remove Strokes menu in Sculpt mode
2018-09-25 13:35:14 +02:00
Antonioya
42600ab214
GP: Add select tools in sculpt mode
2018-09-25 13:35:14 +02:00
Dalai Felinto
19bdb84466
Fix build on windows after ccg changes
2018-09-25 11:26:31 +00:00
unknown
1de9ecec14
Merge branch 'blender2.8' of https://git.blender.org/blender into blender2.8
2018-09-25 08:18:15 -03:00
Sergey Sharybin
6ed581c107
Multires: Allow changing sculpt level without loosing data
...
As the comment states, this is not really great solution, but
is good enough for now. Proper solution needs some more work,
and maybe reconsideration of what is stored where.
2018-09-25 12:37:00 +02:00
Sergey Sharybin
13915c05dd
CustomData: Allow copying content of a single layer
2018-09-25 12:27:43 +02:00
Sergey Sharybin
e60bbcafc5
Cleanup: indentation
2018-09-25 11:38:41 +02:00
Sergey Sharybin
53b25e88f4
Multires: Make code more ready for mesh uised by multiple objects
...
Probably more work is needed, but is good starting point.
2018-09-25 10:44:29 +02:00
Sergey Sharybin
15792eb728
Cleanup: Variable name in mesh runtime
...
Matches type better, avoiding possible confusion.
2018-09-25 10:32:34 +02:00
Sergey Sharybin
43c4d0bf23
Multires: Pass total level instead of modifier data
...
This is the only thing which needs to be done to perform propoer
reshape. Makes it easier to re-use code from other places.
2018-09-25 09:58:40 +02:00
Sergey Sharybin
a933293f11
Multires: Pass mesh instead of object
...
There is nothing we need from object in this case.
2018-09-25 09:38:23 +02:00