From 97687969266c5df6ec0d797692dd13576db4bf70 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 7 May 2010 01:30:12 +0000 Subject: Logic UI: State Actuator done :) all actuators are there now. [and stubs update] (it's a small commit, but couldn't help not doing it ;) --- source/blender/makesrna/intern/rna_actuator.c | 34 ++++++++++++++++++++------- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'source/blender/makesrna/intern/rna_actuator.c') diff --git a/source/blender/makesrna/intern/rna_actuator.c b/source/blender/makesrna/intern/rna_actuator.c index ab2999129c0..ff735d35ade 100644 --- a/source/blender/makesrna/intern/rna_actuator.c +++ b/source/blender/makesrna/intern/rna_actuator.c @@ -131,6 +131,27 @@ static void rna_ObjectActuator_integralcoefficient_set(struct PointerRNA *ptr, f oa->forcerot[0] = 60.0f*oa->forcerot[1]; } +static void rna_StateActuator_state_set(PointerRNA *ptr, const int *values) +{ + bActuator *act = (bActuator*)ptr->data; + bStateActuator *sa = act->data; + + int i, tot= 0; + + /* ensure we always have some state selected */ + for(i=0; imask |= (1<mask &= ~(1<