mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Initialize class/struct variables with default values in platform/ and editor/
This commit is contained in:
parent
d1231be1c8
commit
e1811b689b
87 changed files with 411 additions and 540 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue