2 minor glitches
[blender-staging.git] / source / blender / editors / armature / poselib.c
index 5897da97f85a55ddd4cb74ea02f88790561ba298..9e0e9374d5dd8bde87712dc41fa065787c42f5b7 100644 (file)
@@ -527,7 +527,7 @@ static int poselib_remove_exec (bContext *C, wmOperator *op)
        }
        
        /* get index (and pointer) of pose to remove */
-       marker= BLI_findlink(&act->markers, RNA_int_get(op->ptr, "pose"));
+       marker= BLI_findlink(&act->markers, RNA_enum_get(op->ptr, "pose"));
        if (marker == NULL) {
                BKE_reportf(op->reports, RPT_ERROR, "Invalid Pose specified %d", RNA_int_get(op->ptr, "pose"));
                return OPERATOR_CANCELLED;