diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/functions/FN_multi_function_signature.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/functions/FN_multi_function_signature.hh b/source/blender/functions/FN_multi_function_signature.hh index 73e7b9bb18d..77a8ce14c03 100644 --- a/source/blender/functions/FN_multi_function_signature.hh +++ b/source/blender/functions/FN_multi_function_signature.hh @@ -33,9 +33,10 @@ namespace fn { struct MFSignature { std::string function_name; - Vector<std::string> param_names; - Vector<MFParamType> param_types; - Vector<uint> param_data_indices; + /* Use RawAllocator so that a MultiFunction can have static storage duration. */ + Vector<std::string, 4, RawAllocator> param_names; + Vector<MFParamType, 4, RawAllocator> param_types; + Vector<uint, 4, RawAllocator> param_data_indices; uint data_index(uint param_index) const { |