Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
GottfriedHofmann committed Jan 29, 2025
1 parent 7f7ad7c commit e833589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/io_hubs_addon/components/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,10 @@ def create_uv_layouts(self, context, mesh_objs):
# Blender is creating the names of duplicated layers with a suffix .001
# This needs to be avoided because otherwise existing setups cannot access it anymore
second_layer_name = obj_uv_layers[1].name
obj_uv_layers[1].name=LIGHTMAP_LAYER_NAME
obj_uv_layers[1].name = LIGHTMAP_LAYER_NAME
obj_uv_layers.active = obj_uv_layers[1]
obj_uv_layers.new(name=second_layer_name)

# The layer for the lightmap needs to be the active one before lightmap packing
obj_uv_layers.active = obj_uv_layers[LIGHTMAP_LAYER_NAME]
# Set the object as selected in object mode
Expand Down

0 comments on commit e833589

Please sign in to comment.