godot/scene
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 a492d22952)
2018-04-28 20:16:22 +02:00
..
2d Implement missing navgiation polygon debugging in tilemap 2018-04-28 20:03:46 +02:00
3d Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D 2018-03-28 22:43:44 +02:00
animation AnimationPlayer: fix scrubbing after play backwards 2018-04-28 15:55:36 +02:00
audio Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D 2018-03-28 22:43:44 +02:00
gui Fixes wrong calculation of gridcontainer's children size 2018-04-28 17:40:29 +02:00
main Fix oversampled font artifacts after resize 2018-04-28 17:42:57 +02:00
resources Mesh: fix crash when creating mesh outline from QuadMesh 2018-04-28 20:16:22 +02:00
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04:00
register_scene_types.cpp BMFont loading direct support from .fnt files. 2018-01-16 17:58:04 -03:00
register_scene_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
scene_string_names.cpp Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification. 2018-01-12 08:29:24 -03:00
scene_string_names.h Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification. 2018-01-12 08:29:24 -03:00