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
|
|
@ -50,20 +50,14 @@ class EditorAutoloadSettings : public VBoxContainer {
|
|||
struct AutoLoadInfo {
|
||||
String name;
|
||||
String path;
|
||||
bool is_singleton;
|
||||
bool in_editor;
|
||||
int order;
|
||||
Node *node;
|
||||
bool is_singleton = false;
|
||||
bool in_editor = false;
|
||||
int order = 0;
|
||||
Node *node = nullptr;
|
||||
|
||||
bool operator==(const AutoLoadInfo &p_info) const {
|
||||
return order == p_info.order;
|
||||
}
|
||||
|
||||
AutoLoadInfo() {
|
||||
is_singleton = false;
|
||||
in_editor = false;
|
||||
node = nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
List<AutoLoadInfo> autoload_cache;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue