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/editors/transform/transform_convert_particle.c')
-rw-r--r--source/blender/editors/transform/transform_convert_particle.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_convert_particle.c b/source/blender/editors/transform/transform_convert_particle.c
index 4e1fc6ae1fa..5feaa70ba19 100644
--- a/source/blender/editors/transform/transform_convert_particle.c
+++ b/source/blender/editors/transform/transform_convert_particle.c
@@ -35,6 +35,9 @@
#include "ED_particle.h"
#include "transform.h"
+#include "transform_snap.h"
+
+/* Own include. */
#include "transform_convert.h"
/* -------------------------------------------------------------------- */
@@ -193,7 +196,7 @@ void createTransParticleVerts(bContext *C, TransInfo *t)
*
* \{ */
-void flushTransParticles(TransInfo *t)
+static void flushTransParticles(TransInfo *t)
{
FOREACH_TRANS_DATA_CONTAINER (t, tc) {
Scene *scene = t->scene;
@@ -245,3 +248,18 @@ void flushTransParticles(TransInfo *t)
}
/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name Recalc Trasform Particles Data
+ *
+ * \{ */
+
+void recalcData_particles(TransInfo *t)
+{
+ if (t->state != TRANS_CANCEL) {
+ applyProject(t);
+ }
+ flushTransParticles(t);
+}
+
+/** \} */