diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2010-05-05 02:05:41 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2010-05-05 02:05:41 +0400 |
commit | c3cd8175c1c542ea9478a87c921f64adf1add9c1 (patch) | |
tree | 5e5b8e3f4d28f804bc3813052e6d1550cf5cd501 /source/blender/editors/space_logic | |
parent | 7a63442f99cce269ab6c5d711288284f35cec26d (diff) |
BGE Logic UI: fix for scene actuator
Any volunteer for this?
//XXX to do: an operator that calls file_browse with relative_path on and blender filtering active
Diffstat (limited to 'source/blender/editors/space_logic')
-rw-r--r-- | source/blender/editors/space_logic/logic_window.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/editors/space_logic/logic_window.c b/source/blender/editors/space_logic/logic_window.c index 834cd4093c6..54ace5ef8ba 100644 --- a/source/blender/editors/space_logic/logic_window.c +++ b/source/blender/editors/space_logic/logic_window.c @@ -3720,8 +3720,17 @@ static void draw_actuator_random(uiLayout *layout, PointerRNA *ptr) static void draw_actuator_scene(uiLayout *layout, PointerRNA *ptr) { uiItemR(layout, ptr, "mode", 0, NULL, 0); - uiItemR(layout, ptr, "camera", 0, NULL, 0); - uiItemR(layout, ptr, "scene", 0, NULL, 0); + + switch (RNA_enum_get(ptr, "mode")) { + case ACT_SCENE_CAMERA: + uiItemR(layout, ptr, "camera", 0, NULL, 0); + break; + case ACT_SCENE_RESTART: + break; + default: // ACT_SCENE_SET|ACT_SCENE_ADD_FRONT|ACT_SCENE_ADD_BACK|ACT_SCENE_REMOVE|ACT_SCENE_SUSPEND|ACT_SCENE_RESUME + uiItemR(layout, ptr, "scene", 0, NULL, 0); + break; + } } static void draw_actuator_shape_action(uiLayout *layout, PointerRNA *ptr) |