Initialize pointer variables to fix random crash on startup.

`configure_blender_dialog` is lazily created if equal to null,
however nothing really sets it to null.
This commit is contained in:
Marc Gilleron 2022-04-03 23:21:29 +01:00
parent c630c2001d
commit 277825e956

View File

@ -84,11 +84,11 @@ class Label;
class EditorFileSystemImportFormatSupportQueryBlend : public EditorFileSystemImportFormatSupportQuery { class EditorFileSystemImportFormatSupportQueryBlend : public EditorFileSystemImportFormatSupportQuery {
GDCLASS(EditorFileSystemImportFormatSupportQueryBlend, EditorFileSystemImportFormatSupportQuery); GDCLASS(EditorFileSystemImportFormatSupportQueryBlend, EditorFileSystemImportFormatSupportQuery);
ConfirmationDialog *configure_blender_dialog; ConfirmationDialog *configure_blender_dialog = nullptr;
LineEdit *blender_path; LineEdit *blender_path = nullptr;
Button *blender_path_browse; Button *blender_path_browse = nullptr;
EditorFileDialog *browse_dialog; EditorFileDialog *browse_dialog = nullptr;
Label *path_status; Label *path_status = nullptr;
bool confirmed = false; bool confirmed = false;
String auto_detected_path; String auto_detected_path;