mirror of
https://github.com/Cian-H/simple_blender_server.git
synced 2025-12-22 21:41:56 +00:00
Added more libraries for better model generation
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import bpy # type: ignore
|
||||
import bmesh
|
||||
import bpy
|
||||
import mathutils
|
||||
import numpy
|
||||
import scipy
|
||||
import trimesh
|
||||
|
||||
|
||||
{{.ModelCode}}
|
||||
@@ -6,7 +11,7 @@ import bpy # type: ignore
|
||||
|
||||
def guarded_model() -> bpy.types.Object:
|
||||
try:
|
||||
out = model() # type: ignore
|
||||
out = model()
|
||||
if out is None:
|
||||
raise TypeError("Function `model` cannot return type `None`.")
|
||||
return out
|
||||
|
||||
Reference in New Issue
Block a user