bombsquad-plugin-manager/plugins/utilities/allow_invisible_models.py

18 lines
401 B
Python
Raw Normal View History

# 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
import babase
import bascenev1 as bs
2023-01-22 15:34:19 +05:30
original_getmesh = bs.getmesh
2023-01-22 15:34:19 +05:30
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
class Main(babase.Plugin):
2023-01-22 15:34:19 +05:30
def on_app_running(self):
bs.getmesh = get_mesh_gracefully