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:
Diffstat (limited to 'source/blender/functions/FN_multi_function_procedure.hh')
-rw-r--r--source/blender/functions/FN_multi_function_procedure.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/functions/FN_multi_function_procedure.hh b/source/blender/functions/FN_multi_function_procedure.hh
index aacc3f9331f..07aa84e0f94 100644
--- a/source/blender/functions/FN_multi_function_procedure.hh
+++ b/source/blender/functions/FN_multi_function_procedure.hh
@@ -78,6 +78,7 @@ class MFInstruction : NonCopyable, NonMovable {
public:
MFInstructionType type() const;
Span<MFInstruction *> prev();
+ Span<const MFInstruction *> prev() const;
};
class MFCallInstruction : public MFInstruction {
@@ -268,6 +269,11 @@ inline Span<MFInstruction *> MFInstruction::prev()
return prev_;
}
+inline Span<const MFInstruction *> MFInstruction::prev() const
+{
+ return prev_;
+}
+
/* --------------------------------------------------------------------
* MFCallInstruction inline methods.
*/