Cleaned up blender server code

This commit is contained in:
2025-04-07 09:33:39 +01:00
parent 68d2330646
commit cc1a9dda55
2 changed files with 4 additions and 7 deletions

View File

@@ -2,15 +2,15 @@ package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"os"
"os/exec"
"text/template"
"encoding/json"
"log"
"net/http"
"os"
"os/exec"
"path/filepath"
"text/template"
)
func main() {

View File

@@ -24,9 +24,6 @@ def export_to_stl(obj: bpy.types.Object):
Returns:
bytes: Binary data of the STL file
"""
import tempfile
import os
# Ensure the object is the only object, is selected, and is active
bpy.ops.object.select_all(action="SELECT")
obj.select_set(False)