Revision: 38725
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38725
Author: campbellbarton
Date: 2011-07-26 13:05:22 +0000 (Tue, 26 Jul 2011)
Log Message:
-----------
fix for NULL pointer crash with operator repeat, looks like error print got
mixed up.
Modified Paths:
--------------
trunk/blender/source/blender/editors/util/undo.c
Modified: trunk/blender/source/blender/editors/util/undo.c
===================================================================
--- trunk/blender/source/blender/editors/util/undo.c 2011-07-26 12:49:43 UTC
(rev 38724)
+++ trunk/blender/source/blender/editors/util/undo.c 2011-07-26 13:05:22 UTC
(rev 38725)
@@ -358,19 +358,25 @@
ret= 1;
}
}
+ else {
+ if (G.f & G_DEBUG) {
+ printf("redo_cb: WM_operator_repeat_check
returned false %s\n", op->type->name);
+ }
+ }
/* set region back */
CTX_wm_region_set(C, ar);
}
else {
if (G.f & G_DEBUG) {
- printf("redo_cb: WM_operator_repeat_check returned
false %s\n", op->type->name);
+ printf("redo_cb: ED_undo_operator_repeat called with
NULL 'op'\n");
}
}
return ret;
}
+
void ED_undo_operator_repeat_cb(bContext *C, void *arg_op, void
*UNUSED(arg_unused))
{
ED_undo_operator_repeat(C, (wmOperator *)arg_op);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs