virtualx-engine/scene/resources
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
..
default_theme Merge pull request #15186 from GodotExplorer/default-theme 2018-01-04 14:50:15 +01:00
animation.cpp Fix inconsistencies and typos in argument names 2018-02-04 20:10:13 +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-30 20:53:37 +01:00
audio_stream_sample.h Expose audio streams get_length() 2018-01-30 20:53:37 +01:00
bit_mask.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
bit_mask.h Removed PBM bitmap loader, added abiliy to importi mages as bitmap. Fixes #14828 2018-01-06 16:38:36 -03: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-19 22:13:45 +01: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-03-28 22:56:04 +02:00
dynamic_font.h Add an hinting mode setting to DynamicFonts 2018-03-28 22:56:04 +02: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-22 12:17:06 +01:00
material.h Fix typos with codespell 2018-02-22 12:17:06 +01:00
mesh.cpp Mesh: fix crash when creating mesh outline from QuadMesh 2018-04-28 20:16:22 +02: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-02-19 20:49:41 +01:00
primitive_meshes.h Fix typos with codespell 2018-02-22 12:17:06 +01:00
ray_shape.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
ray_shape.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +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 14:54:45 +01:00
scene_format_text.h Ability to import .escn files, which is just a .tscn but with forced import. 2018-01-31 01:15:00 +01:00
SCsub Move other lone thirdparty files to thirdparty/misc 2017-04-28 21:19:25 +02:00
segment_shape_2d.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
segment_shape_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +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-24 10:53:10 +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 Fix typos with codespell 2018-02-22 12:17:06 +01:00
style_box.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +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-04 20:11:13 +01: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 Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
tile_set.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01: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