From 092bd9f300d39ae3df353b41dc27ff059ae9b4eb Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 6 May 2010 12:01:44 +0000 Subject: Logic UI: actuators - action+rna 100%, sound 100%, constraint+rna 50% Notes: 1) I had to pass Context to the draw_actuator_sound in order to access the open_sound_operator uiTemplateID(layout, C, ptr, "sound", NULL, "SOUND_OT_open", NULL); According to Campbell they are better ways to do that (mdef bind for reference). but for now it works. 2) for the record: action actuator is equal to shape actuator (but runs in armature) 3) in Constraint Actuator I think I should unify all the limit_loc_max_, loc_min, ... properties. I was thinking about replacing it with a single limit_loc_max, limit_loc_min, range, distance, and use get/set funcs to find the correct one. --- source/blender/makesdna/DNA_actuator_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_actuator_types.h') diff --git a/source/blender/makesdna/DNA_actuator_types.h b/source/blender/makesdna/DNA_actuator_types.h index e4b17d33dac..923f7f232e0 100644 --- a/source/blender/makesdna/DNA_actuator_types.h +++ b/source/blender/makesdna/DNA_actuator_types.h @@ -351,6 +351,7 @@ typedef struct FreeCamera { #define ACT_PROP_TOGGLE 3 /* constraint flag */ +#define ACT_CONST_NONE 0 #define ACT_CONST_LOCX 1 #define ACT_CONST_LOCY 2 #define ACT_CONST_LOCZ 4 -- cgit v1.2.3