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 {
GDCLASS(EditorFileSystemImportFormatSupportQueryBlend, EditorFileSystemImportFormatSupportQuery);
ConfirmationDialog *configure_blender_dialog;
LineEdit *blender_path;
Button *blender_path_browse;
EditorFileDialog *browse_dialog;
Label *path_status;
ConfirmationDialog *configure_blender_dialog = nullptr;
LineEdit *blender_path = nullptr;
Button *blender_path_browse = nullptr;
EditorFileDialog *browse_dialog = nullptr;
Label *path_status = nullptr;
bool confirmed = false;
String auto_detected_path;