Clean up Blender and PyBullet to prevent memory leaks
()
| 44 | ] |
| 45 | |
| 46 | def cleanup_scene(): |
| 47 | """Clean up Blender and PyBullet to prevent memory leaks""" |
| 48 | try: |
| 49 | pb.disconnect() |
| 50 | except: |
| 51 | pass |
| 52 | gc.collect() |
| 53 | try: |
| 54 | bpy.ops.wm.read_factory_settings(use_empty=True) |
| 55 | except: |
| 56 | pass |
| 57 | |
| 58 | def apply_camera_motion(camera, motion_type, cam_distance, cam_angle, cam_height, |
| 59 | look_at_point, frame_start, frame_end, rng, motion_params=None): |
no outgoing calls
no test coverage detected