bombsquad-plugin-manager/plugins/utilities/allow_invisible_models.py
2025-07-26 03:49:36 +03:00

25 lines
701 B
Python

# Porting to api 8 made easier by baport.(https://github.com/bombsquad-community/baport)
# ba_meta require api 9
plugman = dict(
plugin_name="allow_invisible_models",
description="Changing model to None will make it invisible.",
external_url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",
authors=[{"name": "mr.sample", "email": "sample@sample.com", "discord": "sample"}],
version="1.2.2",
)
import babase
import bascenev1 as bs
original_getmesh = bs.getmesh
def get_mesh_gracefully(mesh):
if mesh is not None:
return original_getmesh(mesh)
# ba_meta export plugin
class Main(babase.Plugin):
def on_app_running(self):
bs.getmesh = get_mesh_gracefully