diff --git a/release/scripts/op/console_python.py b/release/scripts/op/console_python.py index 601fab23617..3d9ed098de7 100644 --- a/release/scripts/op/console_python.py +++ b/release/scripts/op/console_python.py @@ -161,6 +161,10 @@ def execute(context): stdout.truncate(0) stderr.truncate(0) + # special exception. its possible the command loaded a new user interface + if hash(sc) != hash(context.space_data): + return + bpy.ops.console.scrollback_append(text=sc.prompt + line, type='INPUT') if is_multiline: