Merge pull request #57467 from webbuf/modules-initialize
Initialized Member Variables in /modules
This commit is contained in:
commit
c47f059776
6 changed files with 19 additions and 23 deletions
|
|
@ -173,10 +173,10 @@ class VisualScriptEditor : public ScriptEditorBase {
|
|||
String member_name;
|
||||
|
||||
PortAction port_action;
|
||||
int port_action_node;
|
||||
int port_action_output;
|
||||
int port_action_node = 0;
|
||||
int port_action_output = 0;
|
||||
Vector2 port_action_pos;
|
||||
int port_action_new_node;
|
||||
int port_action_new_node = 0;
|
||||
|
||||
bool saved_pos_dirty = false;
|
||||
|
||||
|
|
@ -196,7 +196,7 @@ class VisualScriptEditor : public ScriptEditorBase {
|
|||
int _create_new_node_from_name(const String &p_text, const Vector2 &p_point);
|
||||
void _selected_new_virtual_method(const String &p_text, const String &p_category, const bool p_connecting);
|
||||
|
||||
int error_line;
|
||||
int error_line = -1;
|
||||
|
||||
void _node_selected(Node *p_node);
|
||||
void _center_on_node(int p_id);
|
||||
|
|
@ -267,12 +267,12 @@ class VisualScriptEditor : public ScriptEditorBase {
|
|||
bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const;
|
||||
void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from);
|
||||
|
||||
int editing_id;
|
||||
int editing_input;
|
||||
int editing_id = 0;
|
||||
int editing_input = 0;
|
||||
|
||||
bool can_swap;
|
||||
int data_disconnect_node;
|
||||
int data_disconnect_port;
|
||||
bool can_swap = false;
|
||||
int data_disconnect_node = 0;
|
||||
int data_disconnect_port = 0;
|
||||
|
||||
void _default_value_changed();
|
||||
void _default_value_edited(Node *p_button, int p_id, int p_input_port);
|
||||
|
|
|
|||
|
|
@ -379,8 +379,6 @@ void VisualScriptPropertySelector::_bind_methods() {
|
|||
}
|
||||
|
||||
VisualScriptPropertySelector::VisualScriptPropertySelector() {
|
||||
virtuals_only = false;
|
||||
|
||||
vbox = memnew(VBoxContainer);
|
||||
add_child(vbox);
|
||||
|
||||
|
|
|
|||
|
|
@ -96,16 +96,16 @@ class VisualScriptPropertySelector : public ConfirmationDialog {
|
|||
|
||||
EditorHelpBit *help_bit;
|
||||
|
||||
bool properties;
|
||||
bool visual_script_generic;
|
||||
bool connecting;
|
||||
bool properties = false;
|
||||
bool visual_script_generic = false;
|
||||
bool connecting = false;
|
||||
String selected;
|
||||
Variant::Type type;
|
||||
String base_type;
|
||||
String base_script;
|
||||
ObjectID script;
|
||||
Object *instance;
|
||||
bool virtuals_only;
|
||||
bool virtuals_only = false;
|
||||
VBoxContainer *vbox;
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue