fix: remove duplicate export messages for sphere and cube
This commit is contained in:
@@ -39,8 +39,6 @@ bpy.ops.export_scene.gltf(
|
||||
)
|
||||
print(f"Exported sphere.glb (GREEN) to {output_dir}")
|
||||
|
||||
print(f"Exported sphere.glb (GREEN) to {output_dir}")
|
||||
|
||||
# Delete sphere and create cube with RED material
|
||||
bpy.ops.object.delete()
|
||||
bpy.ops.mesh.primitive_cube_add(size=1.0, location=(0, 0, 0))
|
||||
@@ -57,8 +55,6 @@ bpy.ops.export_scene.gltf(
|
||||
)
|
||||
print(f"Exported cube.glb (RED) to {output_dir}")
|
||||
|
||||
print(f"Exported cube.glb (RED) to {output_dir}")
|
||||
|
||||
# Delete cube and create ico sphere for the "model" placeholder with BLUE material
|
||||
bpy.ops.object.delete()
|
||||
bpy.ops.mesh.primitive_ico_sphere_add(subdivisions=2, radius=0.5, location=(0, 0, 0))
|
||||
|
||||
Reference in New Issue
Block a user