added layout attribute for setting the operator execution context.
[blender.git] / source / blender / editors / animation / keyframing.c
index 4a5f9efa9689fd3f091e8ac4e35e5b8718c3ab02..908040523701afc76080d0b6cc3016af91ba810a 100644 (file)
@@ -1249,7 +1249,10 @@ static int insert_key_button_exec (bContext *C, wmOperator *op)
        }
        else if (G.f & G_DEBUG) {
                printf("ptr.data = %p, prop = %p,", ptr.data, prop);
-               printf("animateable = %d \n", RNA_property_animateable(&ptr, prop));
+               if(prop)
+                       printf("animateable = %d \n", RNA_property_animateable(&ptr, prop));
+               else
+                       printf("animateable = NULL \n");
        }
        
        if (success) {