fix for crash when using the console to load a file, when the UI changes dont attempt to add to the console's buffer.

This commit is contained in:
2010-10-01 17:55:35 +00:00
parent 38b6ca0358
commit ee84a5b082

View File

@@ -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: