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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user