Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Revert "update: random postfix for dfn creation"
Browse files Browse the repository at this point in the history
This reverts commit 2918c83.
  • Loading branch information
uysalibov committed Mar 14, 2024
1 parent 2918c83 commit d944ead
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions marble-sculp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,12 @@ async def dfn(request: Request, payload: FractureModel):
if inter:
scene.add(inter)

postfix = f"-{randint(0,1000)}"
scene.convert_objV2(filename="dfn/" + payload.filename + postfix)
scene.convert_objV2(filename="dfn/" + payload.filename)

return JSONResponse(
{
"obj": f"/static/dfn/{payload.filename+postfix}.obj",
"mtl": f"/static/dfn/{payload.filename+postfix}.mtl",
"obj": f"/static/dfn/{payload.filename}.obj",
"mtl": f"/static/dfn/{payload.filename}.mtl",
"count": len(scene.objects),
}
)
Expand Down

0 comments on commit d944ead

Please sign in to comment.