mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Remove redundant "== false" code
Some of this code has been re-organized. f
This commit is contained in:
parent
37386f112b
commit
4f7b33cdcf
33 changed files with 81 additions and 73 deletions
|
@ -2816,7 +2816,7 @@ void VisualScriptEditor::_selected_connect_node(const String &p_text, const Stri
|
|||
|
||||
void VisualScriptEditor::connect_seq(Ref<VisualScriptNode> vnode_old, Ref<VisualScriptNode> vnode_new, int new_id) {
|
||||
VisualScriptOperator *vnode_operator = Object::cast_to<VisualScriptOperator>(vnode_new.ptr());
|
||||
if (vnode_operator != NULL && vnode_operator->has_input_sequence_port() == false) {
|
||||
if (vnode_operator != NULL && !vnode_operator->has_input_sequence_port()) {
|
||||
return;
|
||||
}
|
||||
VisualScriptConstructor *vnode_constructor = Object::cast_to<VisualScriptConstructor>(vnode_new.ptr());
|
||||
|
@ -2826,7 +2826,7 @@ void VisualScriptEditor::connect_seq(Ref<VisualScriptNode> vnode_old, Ref<Visual
|
|||
if (vnode_old->get_output_sequence_port_count() <= 0) {
|
||||
return;
|
||||
}
|
||||
if (vnode_new->has_input_sequence_port() == false) {
|
||||
if (!vnode_new->has_input_sequence_port()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue