Skip to content

Commit

Permalink
fixup! blender: remove Blender 3 compatibility and fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
e-rk committed Aug 15, 2024
1 parent 7d96756 commit bd83410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speedtools/blender/io_nfs4_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def make_drawable_object(self, name: str, mesh: DrawableMesh) -> bpy.types.Objec

def make_light_object(self, name: str, light: Light) -> bpy.types.Object:
bpy_light = bpy.data.lights.new(name=name, type="POINT")
bpy_light.color = light.attributes.color.rgb_float # type: ignore[assignment]
bpy_light.color = light.attributes.color.rgb_float
bpy_light.use_custom_distance = True
bpy_light.cutoff_distance = 15.0
bpy_light.specular_factor = 0.2
Expand Down

0 comments on commit bd83410

Please sign in to comment.