2024-01-16 15:06:45 +03:00
|
|
|
# Porting to api 8 made easier by baport.(https://github.com/bombsquad-community/baport)
|
2025-01-15 03:15:53 +05:30
|
|
|
# ba_meta require api 9
|
2025-07-26 00:49:56 +00:00
|
|
|
import babase
|
2025-07-26 12:34:21 +05:30
|
|
|
import bascenev1 as bs
|
2023-01-22 15:34:19 +05:30
|
|
|
|
2024-01-16 15:06:45 +03:00
|
|
|
original_getmesh = bs.getmesh
|
2023-01-22 15:34:19 +05:30
|
|
|
|
|
|
|
|
|
2024-01-16 15:06:45 +03:00
|
|
|
def get_mesh_gracefully(mesh):
|
|
|
|
|
if mesh is not None:
|
|
|
|
|
return original_getmesh(mesh)
|
2023-01-22 15:34:19 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
# ba_meta export plugin
|
2024-01-16 15:06:45 +03:00
|
|
|
class Main(babase.Plugin):
|
2023-01-22 15:34:19 +05:30
|
|
|
def on_app_running(self):
|
2024-01-16 15:06:45 +03:00
|
|
|
bs.getmesh = get_mesh_gracefully
|