[Bf-blender-cvs] [fc490e4236b] functions: new action that does nothing

Jacques Lucke noreply at git.blender.org
Fri Jul 5 12:26:48 CEST 2019


Commit: fc490e4236bf33e27ca5ebc20101a23dffa0f1a5
Author: Jacques Lucke
Date:   Fri Jul 5 10:38:58 2019 +0200
Branches: functions
https://developer.blender.org/rBfc490e4236bf33e27ca5ebc20101a23dffa0f1a5

new action that does nothing

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

M	source/blender/simulations/bparticles/actions.cpp
M	source/blender/simulations/bparticles/actions.hpp

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

diff --git a/source/blender/simulations/bparticles/actions.cpp b/source/blender/simulations/bparticles/actions.cpp
index ba780ba2ae7..34c878a2aa5 100644
--- a/source/blender/simulations/bparticles/actions.cpp
+++ b/source/blender/simulations/bparticles/actions.cpp
@@ -8,6 +8,12 @@ Action::~Action()
 {
 }
 
+class NoneAction : public Action {
+  void execute(EventExecuteInterface &UNUSED(interface)) override
+  {
+  }
+};
+
 class KillAction : public Action {
   void execute(EventExecuteInterface &interface) override
   {
@@ -111,6 +117,11 @@ class ExplodeAction : public Action {
   }
 };
 
+Action *ACTION_none()
+{
+  return new NoneAction();
+}
+
 Action *ACTION_kill()
 {
   return new KillAction();
diff --git a/source/blender/simulations/bparticles/actions.hpp b/source/blender/simulations/bparticles/actions.hpp
index f38da1726c1..3f14abfe8d8 100644
--- a/source/blender/simulations/bparticles/actions.hpp
+++ b/source/blender/simulations/bparticles/actions.hpp
@@ -11,6 +11,7 @@ class Action {
   virtual void execute(EventExecuteInterface &interface) = 0;
 };
 
+Action *ACTION_none();
 Action *ACTION_kill();
 Action *ACTION_move(float3 offset);
 Action *ACTION_spawn();



More information about the Bf-blender-cvs mailing list