Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-08-22 21:29:52 +0300
committerJacques Lucke <jacques@blender.org>2021-08-22 21:29:52 +0300
commitfc0bb6cdee233ed5c544a33a87734af7deeab5c9 (patch)
treea584f3801a1120d7d39cd9e4b26254608dc28fb0 /source/blender/functions/intern/multi_function_procedure.cc
parent10f2ad1556bd9b79d28c4b5d642ed2d6aafb488a (diff)
avoid allocating index array in some cases
Diffstat (limited to 'source/blender/functions/intern/multi_function_procedure.cc')
-rw-r--r--source/blender/functions/intern/multi_function_procedure.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/functions/intern/multi_function_procedure.cc b/source/blender/functions/intern/multi_function_procedure.cc
index bb7c2a98e32..28c42b5a4e2 100644
--- a/source/blender/functions/intern/multi_function_procedure.cc
+++ b/source/blender/functions/intern/multi_function_procedure.cc
@@ -234,6 +234,9 @@ static std::string optional_variable_to_string(const MFVariable *variable)
bool MFProcedure::validate() const
{
+ if (entry_ == nullptr) {
+ return false;
+ }
if (!this->validate_all_instruction_pointers_set()) {
return false;
}