summaryrefslogtreecommitdiff
path: root/modules/gltf/editor
diff options
context:
space:
mode:
authorMarc Gilleron <marc.gilleron@gmail.com>2022-04-03 23:21:29 +0100
committerMarc Gilleron <marc.gilleron@gmail.com>2022-04-03 23:21:29 +0100
commit277825e95633b8fba41265001cfd44a11157baee (patch)
tree9ea9efe4d2aa2777b568add72f45280bc40df8bf /modules/gltf/editor
parentc630c2001dbe2e25e0d372bd22ce85cdc2822eb0 (diff)
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.
Diffstat (limited to 'modules/gltf/editor')
-rw-r--r--modules/gltf/editor/editor_scene_importer_blend.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/gltf/editor/editor_scene_importer_blend.h b/modules/gltf/editor/editor_scene_importer_blend.h
index 05e8a565f7..9a1b5f5803 100644
--- a/modules/gltf/editor/editor_scene_importer_blend.h
+++ b/modules/gltf/editor/editor_scene_importer_blend.h
@@ -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;