summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-27 01:14:43 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-27 01:14:43 +0000
commit1088041be506e8fb4618fdbc41e543fa0c1a51d1 (patch)
tree1e33476042028552ebbf163555310f35fab7fcd7 /src
parent5a4adc5986fb27319c1ddd62fb450509c0f0e86f (diff)
Count number of times a parameter is set.
Need this already for choosing correct output dirs. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1111 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r--src/main/Parameters.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/Parameters.c b/src/main/Parameters.c
index 94b863ad..954360f9 100644
--- a/src/main/Parameters.c
+++ b/src/main/Parameters.c
@@ -414,6 +414,9 @@ int ParameterSet(const char *name,
if(param)
{
retval = ParameterSetSimple(param, value);
+
+ /* register another set operation */
+ param->props->n_set++;
}
else
{
@@ -925,6 +928,7 @@ static t_param *ParameterNew(const char *thorn,
newparam->props->type = ParameterGetType(type);
newparam->props->steerable = steerable;
newparam->props->range = NULL;
+ newparam->props->n_set = 0;
newparam->data = data;