mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
VisualScript: Fix -Wduplicate-branches warning
When VSDEBUG is a no-op (default), those branches did the same (nothing).
This commit is contained in:
parent
f54fd5ac10
commit
9a586defed
@ -36,8 +36,6 @@
|
||||
#include "scene/main/node.h"
|
||||
#include "visual_script_nodes.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
//used by editor, this is not really saved
|
||||
void VisualScriptNode::set_breakpoint(bool p_breakpoint) {
|
||||
breakpoint = p_breakpoint;
|
||||
@ -1764,11 +1762,7 @@ Variant VisualScriptInstance::_call_internal(const StringName &p_method, void *p
|
||||
}
|
||||
|
||||
next = node->sequence_outputs[output];
|
||||
if (next) {
|
||||
VSDEBUG("GOT NEXT NODE - " + itos(next->get_id()));
|
||||
} else {
|
||||
VSDEBUG("GOT NEXT NODE - NULL");
|
||||
}
|
||||
VSDEBUG("GOT NEXT NODE - " + (next ? itos(next->get_id()) : "NULL"));
|
||||
}
|
||||
|
||||
if (flow_stack) {
|
||||
|
Loading…
Reference in New Issue
Block a user