Poommetee Ketson
c5dfe6824c
Mesh: fix crash when creating mesh outline from QuadMesh
...
Since create_outline can only make outline for PRIMITIVE_TRIANGLES,
when QuadMesh (which is PRIMITIVE_TRIANGLE_FAN) is used to create
outline, will leave `arrays` empty, and crash when it is being indexed
for "indices" subarray.
This PR shows error when there's only one surface and it is not
TRIANGLES. Also prevent the crash if it has more than one surface
and none of them are TRIANGLES (and any other cases that could leave
`arrays` empty) by checking the size of `arrays` == 8 before indexing
it, since the method seems to expect `arrays` to be of that size.
(cherry picked from commit a492d229529018f0277f75aa7b99661b5dd40420)
2018-04-28 20:16:22 +02:00
..
2018-01-18 22:01:42 +01:00
2018-02-24 01:34:34 +01:00
2018-02-04 20:02:04 +01:00
2018-04-28 16:07:03 +02:00
2018-03-29 00:04:15 +02:00
2018-04-28 20:16:22 +02:00
2018-03-03 10:58:19 +01:00
2018-04-28 16:07:03 +02:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-18 09:08:01 +09:00
2018-01-18 09:08:01 +09:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-02-19 20:47:44 +01:00
2018-01-05 01:22:23 +01:00
2018-01-18 22:01:42 +01:00
2018-01-05 01:22:23 +01:00
2018-02-22 12:17:06 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-03-28 23:36:58 +02:00
2018-01-05 01:22:23 +01:00
2018-04-28 16:28:47 +02:00
2018-01-01 14:40:47 +01:00
2018-01-12 08:29:24 -03:00
2018-01-08 03:12:41 -05:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-04-15 00:04:18 +02:00
2018-01-05 01:22:23 +01:00
2018-02-22 12:02:02 +01:00
2018-02-19 22:13:44 +01:00
2018-04-15 01:17:01 +02:00
2018-01-05 01:22:23 +01:00
2018-03-28 22:56:04 +02:00
2018-01-05 01:22:23 +01:00
2018-02-19 22:24:57 +01:00
2018-02-19 22:24:57 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-01 14:40:47 +01:00
2018-04-28 17:47:23 +02:00
2018-02-21 21:56:37 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-02-19 23:15:56 +01:00
2018-01-05 01:22:23 +01:00
2018-02-19 22:18:22 +01:00
2018-02-19 22:18:22 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-02-22 12:22:41 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-04-15 01:17:01 +02:00
2018-02-04 20:10:13 +01:00
2018-02-04 20:10:13 +01:00
2018-02-04 20:10:13 +01:00
2018-04-14 20:28:13 +02:00
2018-01-05 01:22:23 +01:00
2018-02-25 15:29:28 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-03-28 23:50:29 +02:00
2018-02-04 20:09:26 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-12 00:08:32 -03:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-04-14 20:44:54 +02:00
2018-01-18 22:01:42 +01:00
2018-04-28 17:07:20 +02:00
2018-02-19 22:13:45 +01:00
2018-02-19 20:48:36 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-01-05 01:22:23 +01:00
2018-04-28 19:59:37 +02:00
2018-01-11 22:22:32 +01:00
2018-03-28 22:06:01 +02:00
2018-01-05 01:22:23 +01:00
2018-04-15 00:48:11 +02:00
2018-01-05 01:22:23 +01:00
2018-03-28 22:09:16 +02:00
2018-02-19 22:17:26 +01:00
2017-11-28 23:24:12 -04:00
2018-04-28 17:52:20 +02:00
2018-01-05 01:22:23 +01:00
2018-02-19 22:13:45 +01:00
2018-02-04 20:10:13 +01:00