Another addition of time values, yet some things to follow
[blender.git] / intern / elbeem / intern / elbeem.cpp
index 1d8f92b0744f0de85c2760f19988307cde701b6b..4517e20d89ce636983b5effaa89e63359ad5d945 100644 (file)
@@ -161,6 +161,9 @@ void elbeemResetMesh(elbeemMesh *mesh) {
        mesh->name = "[unnamed]";
        
        /* fluid control settings */
+       mesh->cpsTimeStart = 0;
+       mesh->cpsTimeEnd = 0;
+       
        mesh->attractforceStrength = 0;
        mesh->attractforceRadius = 0;
        mesh->velocityforceStrength = 0;
@@ -206,6 +209,8 @@ int elbeemAddMesh(elbeemMesh *mesh) {
        obj->setGeoImpactFactor(mesh->obstacleImpactFactor);
        
        /* fluid control features */
+       obj->setCpsTimeStart(mesh->cpsTimeStart);
+       obj->setCpsTimeEnd(mesh->cpsTimeEnd);
        obj->setAttractForceStrength(mesh->attractforceStrength);
        obj->setAttractForceRadius(mesh->attractforceRadius);
        obj->setVelocityForceStrength(mesh->velocityforceStrength);