NLA SoC: Merge from 2.5
[blender.git] / source / blender / editors / screen / screen_ops.c
index a61db5d5e1a48bc43f41ef890dab349b2c717a44..3e237bff46a6ec5247813c1ae0441c968c22ed97 100644 (file)
@@ -164,6 +164,7 @@ int ED_operator_node_active(bContext *C)
        return 0;
 }
 
+// XXX rename
 int ED_operator_ipo_active(bContext *C)
 {
        return ed_spacetype_test(C, SPACE_IPO);
@@ -179,6 +180,11 @@ int ED_operator_image_active(bContext *C)
        return ed_spacetype_test(C, SPACE_IMAGE);
 }
 
+int ED_operator_nla_active(bContext *C)
+{
+       return ed_spacetype_test(C, SPACE_NLA);
+}
+
 int ED_operator_object_active(bContext *C)
 {
        return NULL != CTX_data_active_object(C);