[Bf-blender-cvs] [f6f4f2914cc] functions-experimental-refactor: utility functions

Jacques Lucke noreply at git.blender.org
Sun Oct 20 15:55:44 CEST 2019


Commit: f6f4f2914ccc1b576c542bcfa05f9e71e4ed19a8
Author: Jacques Lucke
Date:   Sun Oct 20 14:27:54 2019 +0200
Branches: functions-experimental-refactor
https://developer.blender.org/rBf6f4f2914ccc1b576c542bcfa05f9e71e4ed19a8

utility functions

===================================================================

M	source/blender/blenkernel/BKE_multi_function.h

===================================================================

diff --git a/source/blender/blenkernel/BKE_multi_function.h b/source/blender/blenkernel/BKE_multi_function.h
index 1820fbab016..2598a214d5d 100644
--- a/source/blender/blenkernel/BKE_multi_function.h
+++ b/source/blender/blenkernel/BKE_multi_function.h
@@ -78,16 +78,31 @@ struct MFParamType {
     return m_category == MFParamType::None;
   }
 
-  bool is_input() const
+  bool is_readonly_single_input() const
+  {
+    return m_category == ReadonlySingleInput;
+  }
+
+  bool is_single_output() const
+  {
+    return m_category == SingleOutput;
+  }
+
+  bool is_input_or_mutable() const
   {
     return ELEM(m_category, ReadonlySingleInput, ReadonlyVectorInput, MutableVector);
   }
 
-  bool is_output() const
+  bool is_output_or_mutable() const
   {
     return ELEM(m_category, SingleOutput, VectorOutput, MutableVector);
   }
 
+  bool is_vector_output() const
+  {
+    return m_category == VectorOutput;
+  }
+
   MFDataType as_data_type() const
   {
     switch (m_category) {



More information about the Bf-blender-cvs mailing list