better model updates, broken tool/selection init

This commit is contained in:
Yeicor
2024-03-02 19:24:54 +01:00
parent 2ff9ac9e7e
commit a7f07d172e
7 changed files with 77 additions and 65 deletions

View File

@@ -20,12 +20,14 @@ def build_logo() -> TopoDS_Shape:
return logo_obj.part.wrapped
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG)
# Start an offline "server" to merge the CAD part of the logo with the animated GLTF part of the logo
os.environ['YACV_DISABLE_SERVER'] = '1'
from yacv_server import show_object, server
ASSETS_DIR = os.getenv('ASSETS_DIR', os.path.join(os.path.dirname(__file__), '..', 'assets'))
# Add the CAD part of the logo to the server
@@ -38,6 +40,7 @@ if __name__ == "__main__":
async def writer():
f.write(await server.export('logo'))
asyncio.run(writer())
print('Logo saved to', os.path.join(ASSETS_DIR, 'logo.glb'))