a1studmuffin / SpaceshipGenerator

A Blender script to procedurally generate 3D spaceships
Other
7.66k stars 437 forks source link

Update spaceship_generator.py #54

Open MartyOSa opened 1 year ago

MartyOSa commented 1 year ago

Update for compatibility in Blender 3.3.0

ldo commented 1 year ago

The bug is actually here:

--- a/spaceship_generator.py
+++ b/spaceship_generator.py
@@ -337,7 +337,7 @@ def add_surface_antenna_to_face(bm, face):
                 material_index = Material.hull if random() > 0.5 else Material.hull_dark

                 # Spire
-                num_segments = uniform(3, 6)
+                num_segments = randint(3, 6)
                 result = bmesh.ops.create_cone(bm,
                                                cap_ends=False,
                                                cap_tris=False,