Initialize class/struct variables with default values in platform/ and editor/

This commit is contained in:
Rafał Mikrut 2020-11-24 10:12:55 +01:00
parent d1231be1c8
commit e1811b689b
87 changed files with 411 additions and 540 deletions

View file

@ -47,12 +47,12 @@ class EditorHistory {
REF ref;
ObjectID object;
String property;
bool inspector_only;
bool inspector_only = false;
};
struct History {
Vector<Obj> path;
int level;
int level = 0;
};
friend class EditorData;
@ -109,14 +109,14 @@ public:
};
struct EditedScene {
Node *root;
Node *root = nullptr;
String path;
Dictionary editor_states;
List<Node *> selection;
Vector<EditorHistory::History> history_stored;
int history_current;
int history_current = 0;
Dictionary custom_state;
uint64_t version;
uint64_t version = 0;
NodePath live_edit_root;
};