Merge pull request #9758 from vnen/fix-vs-return
VS: Fix return value for user-defined functions
This commit is contained in:
commit
5fbe4c130d
1 changed files with 3 additions and 3 deletions
|
@ -29,9 +29,9 @@
|
|||
/*************************************************************************/
|
||||
#include "visual_script_flow_control.h"
|
||||
|
||||
#include "project_settings.h"
|
||||
#include "io/resource_loader.h"
|
||||
#include "os/keyboard.h"
|
||||
#include "project_settings.h"
|
||||
|
||||
//////////////////////////////////////////
|
||||
////////////////RETURN////////////////////
|
||||
|
@ -138,12 +138,12 @@ public:
|
|||
|
||||
if (with_value) {
|
||||
*p_working_mem = *p_inputs[0];
|
||||
return STEP_EXIT_FUNCTION_BIT;
|
||||
} else {
|
||||
*p_working_mem = Variant();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
VisualScriptNodeInstance *VisualScriptReturn::instance(VisualScriptInstance *p_instance) {
|
||||
|
|
Loading…
Reference in a new issue