godot/scene
Poommetee Ketson a492d22952 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.
2018-04-01 22:06:47 +07:00
..
2d Merge pull request #16971 from Noshyaar/tilemap 2018-03-13 13:57:58 +01:00
3d Merge pull request #17555 from poke1024/add-worldenv-warning 2018-03-23 11:27:03 +01:00
animation AnimationPlayer: fix scrubbing after play backwards 2018-03-09 19:41:14 +01:00
audio Merge pull request #15910 from robfram/fix-audio-signal-issue-15895 2018-02-01 16:54:31 +01:00
gui Merge pull request #17612 from robfram/fix-richtextlabel-bbcode 2018-03-23 10:22:33 +01:00
main Merge pull request #17321 from LinkDoyle/issue_16350 2018-03-23 11:38:59 +01:00
resources Mesh: fix crash when creating mesh outline from QuadMesh 2018-04-01 22:06:47 +07:00
register_scene_types.cpp Add base support for 2D meshes in Godot, including Sprite -> Mesh2D conversion. 2018-02-21 09:39:09 -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
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04:00