mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
better model updates, broken tool/selection init
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user