godot/scene/resources
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
..
default_theme set a better initial size to TextEdit nodes 2018-01-11 12:11:44 +01:00
animation.cpp Fix inconsistencies and typos in argument names 2018-02-01 16:47:20 +01:00
animation.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
audio_stream_sample.cpp Expose audio streams get_length() 2018-01-22 20:35:33 +01:00
audio_stream_sample.h Expose audio streams get_length() 2018-01-22 20:35:33 +01:00
bit_mask.cpp Fix typos with codespell 2018-02-21 19:46:06 +01:00
bit_mask.h Fix typos with codespell 2018-02-21 19:46:06 +01:00
bounds.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
bounds.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
box_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
box_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
canvas.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
canvas.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
capsule_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
capsule_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
capsule_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
capsule_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
circle_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
circle_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
color_ramp.cpp Gradient: fix wrong property type 2018-02-03 22:38:54 +07:00
color_ramp.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
concave_polygon_shape.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
concave_polygon_shape.h Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
concave_polygon_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
concave_polygon_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
convex_polygon_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
convex_polygon_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
convex_polygon_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
convex_polygon_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
curve.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
curve.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
dynamic_font.cpp Add an hinting mode setting to DynamicFonts 2018-02-28 00:12:26 +01:00
dynamic_font.h Add an hinting mode setting to DynamicFonts 2018-02-28 00:12:26 +01:00
dynamic_font_stb.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
dynamic_font_stb.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
environment.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
environment.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
font.cpp BMFont loading direct support from .fnt files. 2018-01-16 17:58:04 -03:00
font.h BMFont loading direct support from .fnt files. 2018-01-16 17:58:04 -03:00
material.cpp Fix typos with codespell 2018-02-21 19:46:06 +01:00
material.h Fix typos with codespell 2018-02-21 19:46:06 +01:00
mesh.cpp Mesh: fix crash when creating mesh outline from QuadMesh 2018-04-01 22:06:47 +07:00
mesh.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_data_tool.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_data_tool.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_library.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_library.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
multimesh.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
multimesh.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
packed_scene.cpp Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
packed_scene.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
plane_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
plane_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
polygon_path_finder.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
polygon_path_finder.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
primitive_meshes.cpp Change primitive meshes acccuracy value 2018-01-09 13:41:59 +01:00
primitive_meshes.h Fix typos with codespell 2018-02-21 19:46:06 +01:00
ray_shape.cpp Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
ray_shape.h Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
rectangle_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rectangle_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
room.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
room.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
scene_format_text.cpp Fix serialization of identifiers with non printable ASCII characters 2018-03-02 13:33:53 +01:00
scene_format_text.h Ability to import .escn files, which is just a .tscn but with forced import. 2018-01-30 11:04:22 -03:00
SCsub Move other lone thirdparty files to thirdparty/misc 2017-04-28 21:19:25 +02:00
segment_shape_2d.cpp Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
segment_shape_2d.h Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
shader.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shader.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shader_graph.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
shader_graph.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shape_2d.h Fixes collisions shape selection 2018-02-22 20:48:25 +01:00
shape_line_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shape_line_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
sky_box.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
sky_box.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
space_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
space_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
sphere_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
sphere_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
style_box.cpp StyleBoxTexture: Texture instead of RES for texture and normal_map. 2018-02-22 19:27:35 +01:00
style_box.h StyleBoxTexture: Texture instead of RES for texture and normal_map. 2018-02-22 19:27:35 +01:00
surface_tool.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
surface_tool.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
texture.cpp Fix texture import spelling 2018-02-03 18:38:39 +00:00
texture.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
theme.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
theme.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
tile_set.cpp Tileset Editor Improvement 2018-02-20 22:33:59 +07:00
tile_set.h Tileset Editor Improvement 2018-02-20 22:33:59 +07:00
video_stream.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
video_stream.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
world.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
world.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
world_2d.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
world_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00