diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-03-29 11:18:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-03-29 12:11:54 +0300 |
commit | 6332e0e1f7499755cfd4caa5a67066daf46d8b83 (patch) | |
tree | b333df6292da9c625012bce7ad8a5c456b3200f8 /tests/python/bl_run_operators.py | |
parent | df7f6a3e2e91a7ad27f8ca2b2b43a6c51da8c2c9 (diff) |
Use 'empty' option for clearing factory settings
Diffstat (limited to 'tests/python/bl_run_operators.py')
-rw-r--r-- | tests/python/bl_run_operators.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/python/bl_run_operators.py b/tests/python/bl_run_operators.py index 7e92b424faa..7d5f4127378 100644 --- a/tests/python/bl_run_operators.py +++ b/tests/python/bl_run_operators.py @@ -65,6 +65,7 @@ op_blacklist = ( "wm.blenderplayer_start", "wm.recover_auto_save", "wm.quit_blender", + "wm.window_close", "wm.url_open", "wm.doc_view", "wm.doc_edit", @@ -308,16 +309,7 @@ def run_ops(operators, setup_func=None, reset=True): # contexts def ctx_clear_scene(): # copied from batch_import.py - unique_obs = set() - for scene in bpy.data.scenes: - for obj in scene.objects[:]: - scene.objects.unlink(obj) - unique_obs.add(obj) - - # remove obdata, for now only worry about the startup scene - for bpy_data_iter in (bpy.data.objects, bpy.data.meshes, bpy.data.lamps, bpy.data.cameras): - for id_data in bpy_data_iter: - bpy_data_iter.remove(id_data) + bpy.ops.wm.read_factory_settings(use_empty=True) def ctx_editmode_mesh(): |