Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update spaceship_generator.py #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MartyOSa
Copy link

Update for compatibility in Blender 3.3.0

Update for compatibility in Blender 3.3.0
@ldo
Copy link

ldo commented Dec 17, 2022

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants