Anim: tests, load factory-startup homefile in unit tests
Use `bpy.ops.wm.read_homefile(use_factory_startup=True)` to load the default 'homefile'. Otherwise Blender will load the saved-as-default file, which can be quite different from the default startup file.
This commit is contained in:
parent
9b3699db67
commit
bb7468260c
|
@ -16,7 +16,7 @@ class BoneCollectionTest(unittest.TestCase):
|
|||
arm: bpy.types.Armature
|
||||
|
||||
def setUp(self):
|
||||
bpy.ops.wm.read_homefile()
|
||||
bpy.ops.wm.read_homefile(use_factory_startup=True)
|
||||
self.arm_ob, self.arm = self.create_armature()
|
||||
|
||||
def create_armature(self) -> tuple[bpy.types.Object, bpy.types.Armature]:
|
||||
|
|
Loading…
Reference in New Issue