a1studmuffin / SpaceshipGenerator

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

Spaceship generator not working in Blender 3.1 #50

Closed wulfalpha closed 2 years ago

wulfalpha commented 2 years ago

The error I am getting is this:

Python: Traceback (most recent call last):
  File "/home/wulfalpha/.config/blender/3.1/scripts/addons/add_mesh_SpaceshipGenerator/__init__.py", line 43, in execute
    spaceship_generator.generate_spaceship(
  File "/home/wulfalpha/.config/blender/3.1/scripts/addons/add_mesh_SpaceshipGenerator/spaceship_generator.py", line 669, in generate_spaceship
    add_surface_antenna_to_face(bm, face)
  File "/home/wulfalpha/.config/blender/3.1/scripts/addons/add_mesh_SpaceshipGenerator/spaceship_generator.py", line 341, in add_surface_antenna_to_face
    result = bmesh.ops.create_cone(bm,
TypeError: create_cone: keyword "segments" expected an int, not float

location: <unknown location>:-1

I have tried a couple of the fixes i have seen here and sadly none of them seems to work. It looks like a type casting issue to me but I can't see where the problem actually is because I'm not familiar enough with python or the code itself. Any help would be great

ldo commented 2 years ago

Try this version.

wulfalpha commented 2 years ago

That worked. Thanks!