Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-15 03:27:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-15 06:48:17 +0300
commit042f06ef3cd8d2c39593258c5bc4198d647f573b (patch)
treede9a9c320c15b3eb15cab3bf8356fd77096721b4 /source/blender/windowmanager/intern/wm_event_system.c
parentc23da7a5c9079702a33ea2309d9ee1d714481237 (diff)
Cleanup: update comments, remove ifdef'd code
Diffstat (limited to 'source/blender/windowmanager/intern/wm_event_system.c')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 646aa71025c..39651db54f0 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -1653,36 +1653,8 @@ int WM_operator_call_py(bContext *C,
const bool is_undo)
{
int retval = OPERATOR_CANCELLED;
-
-#if 0
- wmOperator *op;
- op = wm_operator_create(wm, ot, properties, reports);
-
- if (op->type->exec) {
- if (is_undo && op->type->flag & OPTYPE_UNDO) {
- wm->op_undo_depth++;
- }
-
- retval = op->type->exec(C, op);
- OPERATOR_RETVAL_CHECK(retval);
-
- if (is_undo && op->type->flag & OPTYPE_UNDO && CTX_wm_manager(C) == wm) {
- wm->op_undo_depth--;
- }
- }
- else {
- CLOG_WARN(WM_LOG_OPERATORS,
- "\"%s\" operator has no exec function, Python cannot call it",
- op->type->name);
- }
-
-#endif
-
/* Not especially nice using undo depth here. It's used so Python never
- * triggers undo or stores an operator's last used state.
- *
- * We could have some more obvious way of doing this like passing a flag.
- */
+ * triggers undo or stores an operator's last used state. */
wmWindowManager *wm = CTX_wm_manager(C);
if (!is_undo && wm) {
wm->op_undo_depth++;