Files
test2/source/blender/blenkernel/intern
Sybren A. Stüvel c70f975d5c Fix T67999: calling Mesh.materials.clear() crashes Blender
The `BKE_material_pop_id()` and `BKE_material_clear_id()` functions had
a parameter `update_data` that, when `false`, would cause the mesh polys
to keep their material index, even when the indexed material slots were
removed. This behaviour was never used in the C code and not supported
by the drawing code, making polygons disappear and causing crashes. The
Python binding in RNA, however, defaulted to `update_data=False`.

This commit removes the `update_data` parameter altogether, and makes
the functions always fix up the material indices.

Reviewed by: mont29, brecht
2019-08-16 14:36:57 +02:00
..
2019-05-16 14:11:11 +02:00
2019-08-02 12:05:13 +10:00
2019-08-06 12:50:08 -03:00
2019-08-01 14:02:41 +10:00
2019-08-06 21:59:13 +10:00
2019-08-16 06:44:25 +10:00
2019-05-03 12:43:02 +10:00
2019-08-01 14:02:41 +10:00
2019-05-22 00:59:43 +10:00
2019-08-01 14:02:41 +10:00
2019-08-16 06:44:25 +10:00
2019-08-01 14:02:41 +10:00
2019-08-01 14:02:41 +10:00
2019-08-01 14:02:41 +10:00
2019-07-02 18:05:10 +10:00
2019-08-14 23:40:12 +02:00
2019-08-14 18:58:19 +02:00
2019-08-01 14:02:41 +10:00
2019-08-14 21:40:35 +02:00
2019-08-02 12:05:13 +10:00
2019-06-12 09:43:49 +10:00
2019-08-01 14:02:41 +10:00
2019-08-01 14:02:41 +10:00
2019-08-04 12:51:44 +10:00
2019-08-01 14:02:41 +10:00
2019-06-15 09:24:38 +10:00
2019-08-01 14:02:41 +10:00
2019-08-11 20:52:45 +10:00
2019-08-01 14:02:41 +10:00
2019-06-15 09:24:38 +10:00