virtualx-engine/editor/plugins
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
..
abstract_polygon_2d_editor.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
abstract_polygon_2d_editor.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
animation_player_editor_plugin.cpp AnimationPlayer: fix scrubbing after play backwards 2018-04-28 15:55:36 +02:00
animation_player_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
animation_tree_editor_plugin.cpp Fixed some popups not shrinking their size back when losing items. 2018-04-28 19:59:37 +02:00
animation_tree_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
asset_library_editor_plugin.cpp More threading in AssetLib 2018-03-28 21:03:56 +02:00
asset_library_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
baked_lightmap_editor_plugin.cpp -Remove color operator clamping, which is unnecesary. Fixes #15184, fixes #14686. 2018-01-12 00:08:32 -03:00
baked_lightmap_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
camera_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
camera_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
canvas_item_editor_plugin.cpp Add "Show Origin" and "Show Viewport" options to 2D Editor Viewport 2018-03-28 23:33:03 +02:00
canvas_item_editor_plugin.h Add "Show Origin" and "Show Viewport" options to 2D Editor Viewport 2018-03-28 23:33:03 +02:00
collision_polygon_2d_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
collision_polygon_2d_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
collision_polygon_editor_plugin.cpp Fix typos with codespell 2018-02-22 12:17:06 +01:00
collision_polygon_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
collision_shape_2d_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
collision_shape_2d_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
cube_grid_theme_editor_plugin.cpp Changes the keep_margin parameter to true by default, so that people are not suprised that set_anchor changes the margins values 2018-01-15 10:37:13 +01:00
cube_grid_theme_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
curve_editor_plugin.cpp Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
curve_editor_plugin.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
editor_preview_plugins.cpp Fix round preview getting square on "run scene" (issue 16734) 2018-04-14 20:37:54 +02:00
editor_preview_plugins.h Fix round preview getting square on "run scene" (issue 16734) 2018-04-14 20:37:54 +02:00
gi_probe_editor_plugin.cpp -Remove color operator clamping, which is unnecesary. Fixes #15184, fixes #14686. 2018-01-12 00:08:32 -03:00
gi_probe_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
gradient_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
gradient_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
item_list_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
item_list_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
light_occluder_2d_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
light_occluder_2d_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
line_2d_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
line_2d_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
material_editor_plugin.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
material_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_instance_editor_plugin.cpp Mesh: fix crash when creating mesh outline from QuadMesh 2018-04-28 20:16:22 +02:00
mesh_instance_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
multimesh_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
multimesh_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
navigation_mesh_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
navigation_mesh_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
navigation_mesh_generator.cpp Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
navigation_mesh_generator.h Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
navigation_polygon_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
navigation_polygon_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
particles_2d_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
particles_2d_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
particles_editor_plugin.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
particles_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
path_2d_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
path_2d_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
path_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
path_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
polygon_2d_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
polygon_2d_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
resource_preloader_editor_plugin.cpp Display path to preloaded res + button to open it 2018-02-19 20:56:16 +01:00
resource_preloader_editor_plugin.h Display path to preloaded res + button to open it 2018-02-19 20:56:16 +01:00
script_editor_plugin.cpp ScriptEditor: Use EditorSettings instead of hardcoded values in constructor. 2018-03-28 23:13:46 +02:00
script_editor_plugin.h Keep to show current script when closing all docs 2018-02-21 22:09:23 +01:00
script_text_editor.cpp ScriptTextEditor: fix capitalize offset 2018-04-28 16:45:17 +02:00
script_text_editor.h Add special coloring to members, to make shadowing more obvious. 2018-01-12 11:01:09 -03:00
SCsub Refactoring: rename tools/editor/ to editor/ 2017-03-05 14:21:25 +01:00
shader_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shader_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shader_graph_editor_plugin.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
shader_graph_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
spatial_editor_plugin.cpp Enable snapping when control key pressed 2018-02-21 22:16:20 +01:00
spatial_editor_plugin.h Enable snapping when control key pressed 2018-02-21 22:16:20 +01:00
sprite_frames_editor_plugin.cpp Clean up some bad words from code comments 2018-02-22 12:22:41 +01:00
sprite_frames_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
style_box_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
style_box_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
texture_editor_plugin.cpp Fix gradient texture preview 2018-02-19 22:13:45 +01:00
texture_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
texture_region_editor_plugin.cpp Fix various valgrind reported uninitialized variable uses 2018-03-01 21:06:31 +01:00
texture_region_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
theme_editor_plugin.cpp Refactor version macros and fix related bugs 2018-02-24 01:34:34 +01:00
theme_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
tile_map_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
tile_map_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
tile_set_editor_plugin.cpp fix crash autotile edit mode 2018-02-19 22:30:13 +01:00
tile_set_editor_plugin.h Fix ObjectDB Instances still exist 2018-01-22 11:46:05 +07:00