Skip to content

Commit

Permalink
Update light.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hisprofile authored Jun 17, 2024
1 parent fdf6aa9 commit 4190683
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plumber/asset/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def import_light(light: Light, collection: Collection) -> None:
collection.objects.link(obj)

obj.location = light.position()
obj['props'] = light.properties()


def import_spot_light(light: SpotLight, collection: Collection) -> None:
Expand All @@ -33,6 +34,7 @@ def import_spot_light(light: SpotLight, collection: Collection) -> None:

obj.location = light.position()
obj.rotation_euler = light.rotation()
obj['props'] = light.properties()


def import_env_light(light: EnvLight, context: Context, collection: Collection) -> None:
Expand All @@ -46,6 +48,7 @@ def import_env_light(light: EnvLight, context: Context, collection: Collection)

obj = bpy.data.objects.new(name, object_data=light_data)
collection.objects.link(obj)
obj['props'] = light.properties()

obj.location = light.position()
obj.rotation_euler = light.rotation()
Expand Down

0 comments on commit 4190683

Please sign in to comment.