mirror of
https://github.com/godotengine/godot-visual-script.git
synced 2026-01-03 10:09:19 +03:00
Changed some code showed in LGTM and Coverage
This commit is contained in:
@@ -2629,8 +2629,6 @@ void VisualScriptLanguage::debug_get_globals(List<String> *p_locals, List<Varian
|
||||
}
|
||||
String VisualScriptLanguage::debug_parse_stack_level_expression(int p_level, const String &p_expression, int p_max_subitems, int p_max_depth) {
|
||||
|
||||
if (_debug_parse_err_node >= 0)
|
||||
return "";
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
@@ -3670,7 +3670,6 @@ VisualScriptEditor::VisualScriptEditor() {
|
||||
new_virtual_method_select = memnew(VisualScriptPropertySelector);
|
||||
add_child(new_virtual_method_select);
|
||||
new_virtual_method_select->connect("selected", this, "_selected_new_virtual_method");
|
||||
new_virtual_method_select->get_cancel();
|
||||
|
||||
member_popup = memnew(PopupMenu);
|
||||
add_child(member_popup);
|
||||
|
||||
@@ -197,7 +197,6 @@ String VisualScriptFunction::get_output_sequence_port_text(int p_port) const {
|
||||
PropertyInfo VisualScriptFunction::get_input_value_port_info(int p_idx) const {
|
||||
|
||||
ERR_FAIL_V(PropertyInfo());
|
||||
return PropertyInfo();
|
||||
}
|
||||
PropertyInfo VisualScriptFunction::get_output_value_port_info(int p_idx) const {
|
||||
|
||||
@@ -418,7 +417,7 @@ PropertyInfo VisualScriptOperator::get_input_value_port_info(int p_idx) const {
|
||||
{ Variant::NIL, Variant::NIL } //OP_IN,
|
||||
};
|
||||
|
||||
ERR_FAIL_INDEX_V(p_idx, Variant::OP_MAX, PropertyInfo());
|
||||
ERR_FAIL_INDEX_V(p_idx, 2, PropertyInfo());
|
||||
|
||||
PropertyInfo pinfo;
|
||||
pinfo.name = p_idx == 0 ? "A" : "B";
|
||||
|
||||
@@ -405,7 +405,7 @@ void VisualScriptPropertySelector::_item_selected() {
|
||||
String name = item->get_metadata(0);
|
||||
|
||||
String class_type;
|
||||
if (type) {
|
||||
if (type != Variant::NIL) {
|
||||
class_type = Variant::get_type_name(type);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user