NLA SoC: Merge from 2.5
[blender.git] / source / blender / editors / screen / screen_ops.c
index 3f4d175c94e8f86a5150b44e07d627ae60781548..8e72ebae3c05aeb8695f8b721b1dc95d8b45a462 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);