Campbell Barton
71879d665d
BMesh: improve handling of custom-data flag (Mesh.cd_flag)
...
Code that handled merging & initializing custom-data from other
meshes sometimes missed checks for this flag, causing bevel weights to
lost when the mesh was converted to a BMesh.
The following changes are a more general fix for T94197.
- Add BM_mesh_copy_init_customdata_from_mesh_array which initializes
custom-data from multiple meshes at once.
As well as initializing custom-data layers from Mesh.cd_flag.
This isn't essential for boolean, however it avoids the overhead of
resizing custom-data layers.
- Loading mesh data into a BMesh now respects Mesh.cd_flag
instead of only checking if the BMesh custom-data-layer exists.
Without this, the order of meshes passed to BM_mesh_bm_from_me could
give different (incorrect) results.
- Copying mesh data now copies `cd_flag` too. This is a precaution
as in my tests evaluating modifiers these values always matched.
Nevertheless it's correct to copy this value as custom-data it's
self is being copied.
2022-01-19 14:30:10 +11:00
..
2022-01-19 14:30:10 +11:00
2022-01-06 11:41:03 +01:00
2021-08-26 12:39:45 +10:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2021-12-07 17:38:48 +11:00
2022-01-06 11:41:03 +01:00
2021-09-09 12:54:20 +02:00
2021-09-12 19:51:16 +10:00
2022-01-12 12:50:02 +01:00
2022-01-06 11:41:03 +01:00
2021-07-20 17:12:01 +02:00
2021-10-12 16:40:02 +02:00
2022-01-14 11:23:46 +11:00
2021-10-19 18:07:22 +02:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2022-01-12 12:57:07 +01:00
2022-01-12 12:57:07 +01:00
2022-01-12 12:50:02 +01:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2021-12-14 15:57:58 +01:00
2021-12-07 17:38:48 +11:00
2022-01-17 15:22:22 +01:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-13 14:38:25 -06:00
2022-01-17 14:51:04 +01:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-06 11:41:03 +01:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-12 12:50:02 +01:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-14 17:06:16 +01:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-06 13:54:52 +11:00
2021-12-07 18:15:15 +11:00
2022-01-06 13:54:52 +11:00
2022-01-06 11:41:03 +01:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2021-12-14 15:57:58 +01:00
2021-12-05 15:10:11 +01:00
2022-01-12 12:57:07 +01:00
2022-01-10 16:45:53 -06:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-18 11:18:11 +01:00
2022-01-07 14:16:26 +11:00
2022-01-12 12:50:02 +01:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-14 11:23:46 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-19 14:05:56 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-13 14:38:25 -06:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-13 14:38:25 -06:00
2021-08-02 12:26:28 -04:00
2022-01-14 17:37:14 +01:00
2022-01-12 12:57:07 +01:00
2022-01-13 14:38:25 -06:00
2021-07-19 10:17:38 -03:00
2021-12-27 16:35:54 +01:00
2022-01-14 11:23:46 +11:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-06 11:41:03 +01:00
2022-01-06 13:54:52 +11:00
2022-01-18 16:25:47 +01:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-13 14:38:25 -06:00
2022-01-13 14:38:25 -06:00
2022-01-13 14:38:25 -06:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-12 12:50:02 +01:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-13 14:38:25 -06:00
2021-12-07 17:38:48 +11:00
2021-09-18 21:45:33 +02:00
2022-01-12 12:57:07 +01:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-14 14:04:24 -06:00
2022-01-07 14:16:26 +11:00
2022-01-18 14:13:58 +11:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2021-12-14 15:57:58 +01:00
2022-01-07 14:16:26 +11:00
2021-12-07 17:38:48 +11:00
2022-01-12 12:50:02 +01:00
2022-01-07 14:16:26 +11:00
2021-06-08 00:23:09 +10:00
2022-01-18 14:13:58 +11:00
2022-01-18 14:13:58 +11:00
2022-01-07 14:16:26 +11:00
2022-01-07 14:16:26 +11:00
2022-01-18 11:18:11 +01:00
2022-01-06 11:41:03 +01:00
2021-12-07 17:38:48 +11:00