virtualx-engine/editor
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
..
collada Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
doc Refactor version macros and fix related bugs 2018-02-24 01:34:34 +01:00
fileserver Display set_nodelay to GDScript 2018-02-04 20:02:04 +01:00
icons Fix broken hover/select coloring of keys in animation editor 2018-04-28 16:07:03 +02:00
import Fix animation length from glTF not correctly set 2018-03-29 00:04:15 +02:00
plugins Mesh: fix crash when creating mesh outline from QuadMesh 2018-04-28 20:16:22 +02:00
translations i18n: Sync translation templates with current source 2018-03-03 10:58:19 +01:00
animation_editor.cpp Fix broken hover/select coloring of keys in animation editor 2018-04-28 16:07:03 +02:00
animation_editor.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
array_property_edit.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
array_property_edit.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
code_editor.cpp Fix find/replace bar 2018-01-18 09:08:01 +09:00
code_editor.h Fix find/replace bar 2018-01-18 09:08:01 +09:00
connections_dialog.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
connections_dialog.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
create_dialog.cpp Select root node if search_box is empty in create_dialog 2018-02-19 20:47:44 +01:00
create_dialog.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
dependency_editor.cpp Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
dependency_editor.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
dictionary_property_edit.cpp Fix typos with codespell 2018-02-22 12:17:06 +01:00
dictionary_property_edit.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_about.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_about.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_asset_installer.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_asset_installer.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_audio_buses.cpp EditorAudioBus: expand effects list 2018-03-28 23:36:58 +02:00
editor_audio_buses.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_autoload_settings.cpp Fix column width on AutoLoad table on hidpi displays 2018-04-28 16:28:47 +02:00
editor_autoload_settings.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
editor_data.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
editor_data.h Fixes #15416 - "The deleted nodes are hanging in the inspector." 2018-01-08 03:12:41 -05:00
editor_dir_dialog.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_dir_dialog.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_export.cpp EditorExport: Allow export plugins to add shared libraries 2018-04-15 00:04:18 +02:00
editor_export.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_file_dialog.cpp Icons update 2018-02-22 12:02:02 +01:00
editor_file_dialog.h Fixes open button not appearing with multiple selection 2018-02-19 22:13:44 +01:00
editor_file_system.cpp Added error checks for fscache saving 2018-04-15 01:17:01 +02:00
editor_file_system.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_fonts.cpp Add an hinting mode setting to DynamicFonts 2018-03-28 22:56:04 +02:00
editor_fonts.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_help.cpp Fix for a possible compile error under OS X 2018-02-19 22:24:57 +01:00
editor_help.h Fix for a possible compile error under OS X 2018-02-19 22:24:57 +01:00
editor_initialize_ssl.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_initialize_ssl.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_log.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_log.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_name_dialog.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_name_dialog.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
editor_node.cpp Prevented external editor from running multiple times 2018-04-28 17:47:23 +02:00
editor_node.h Added an auto quit and auto build flag to the command line options. 2018-02-21 21:56:37 +01:00
editor_path.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_path.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_plugin.cpp Add a function to remove controls from containers 2018-02-19 22:18:22 +01:00
editor_plugin.h Add a function to remove controls from containers 2018-02-19 22:18:22 +01:00
editor_plugin_settings.cpp Remove unused variable from plugin settings update 2018-02-19 23:15:56 +01:00
editor_plugin_settings.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_profiler.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_profiler.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_resource_preview.cpp Clean up some bad words from code comments 2018-02-22 12:22:41 +01:00
editor_resource_preview.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_run.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_run.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_run_native.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_run_native.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_run_script.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_run_script.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_scale.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_scale.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
editor_settings.cpp Added error checks for fscache saving 2018-04-15 01:17:01 +02:00
editor_settings.h Fix inconsistencies and typos in argument names 2018-02-04 20:10:13 +01:00
editor_sub_scene.cpp Fix inconsistencies and typos in argument names 2018-02-04 20:10:13 +01:00
editor_sub_scene.h Fix inconsistencies and typos in argument names 2018-02-04 20:10:13 +01:00
editor_themes.cpp Fix for a possible crash when a custom theme is not loaded properly 2018-04-14 20:28:13 +02:00
editor_themes.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
export_template_manager.cpp Fix version.txt validation logic for export templates .tpz 2018-02-25 15:29:28 +01:00
export_template_manager.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
file_type_cache.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
file_type_cache.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
filesystem_dock.cpp Added a check for trailing dot when creating folder. 2018-03-28 23:50:29 +02:00
filesystem_dock.h Expand project root directory on editor start 2018-02-04 20:09:26 +01:00
groups_editor.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
groups_editor.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
import_dock.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
import_dock.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
multi_node_edit.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
multi_node_edit.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
node_dock.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
node_dock.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
output_strings.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
output_strings.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
pane_drag.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
pane_drag.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
progress_dialog.cpp -Remove color operator clamping, which is unnecesary. Fixes #15184, fixes #14686. 2018-01-12 00:08:32 -03:00
progress_dialog.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
project_export.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
project_export.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
project_manager.cpp skip demo download prompt if ssl is unavailable 2018-04-14 20:44:54 +02:00
project_manager.h Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
project_settings_editor.cpp Fix non-valid characters for input_action 2018-04-28 17:07:20 +02:00
project_settings_editor.h Fix UX with project settings search functionality 2018-02-19 22:13:45 +01:00
property_editor.cpp Re-enabled type icons. 2018-02-19 20:48:36 +01:00
property_editor.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
property_selector.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
property_selector.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
pvrtc_compress.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
pvrtc_compress.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
quick_open.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
quick_open.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
register_exporters.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
reparent_dialog.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
reparent_dialog.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
run_settings_dialog.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
run_settings_dialog.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
scene_tree_dock.cpp Fixed some popups not shrinking their size back when losing items. 2018-04-28 19:59:37 +02:00
scene_tree_dock.h Fixes add script button update 2018-01-11 22:22:32 +01:00
scene_tree_editor.cpp Draw relationship line on scene tree dock if option is on 2018-03-28 22:06:01 +02:00
scene_tree_editor.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
script_create_dialog.cpp Mono: Avoid invalid class names. 2018-04-15 00:48:11 +02:00
script_create_dialog.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
script_editor_debugger.cpp Don't print error message when select debugger stacks if the debugger is stopped. 2018-03-28 22:09:16 +02:00
script_editor_debugger.h Fix #16543 (add button to copy error from debugger) 2018-02-19 22:17:26 +01:00
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04:00
settings_config_dialog.cpp Fix all categories unfold when one key binding is changed 2018-04-28 17:52:20 +02:00
settings_config_dialog.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
spatial_editor_gizmos.cpp Draw the Camera gizmo more accurately 2018-02-19 22:13:45 +01:00
spatial_editor_gizmos.h Fix inconsistencies and typos in argument names 2018-02-04 20:10:13 +01:00