Skip to content

Commit

Permalink
Fixed BSP building (was failing due to refrerence to non-existing pro…
Browse files Browse the repository at this point in the history
…perty)
  • Loading branch information
cmbasnett committed Aug 30, 2024
1 parent 61c7979 commit cae96ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bdk_addon/bsp/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,9 @@ def execute(self, context):
level_object = scene.bdk.level_object

# Apply the texturing to the brushes, if the option is enabled.
if self.apply_level_texturing_to_brushes:
result = apply_level_to_brush_mapping(level_object)
for error in result.errors:
self.report({'WARNING'}, str(error))
result = apply_level_to_brush_mapping(level_object)
for error in result.errors:
self.report({'WARNING'}, str(error))

def brush_object_filter(obj: Object, instance_objects: List[Object]):
if not obj.bdk.type == 'BSP_BRUSH':
Expand Down

0 comments on commit cae96ea

Please sign in to comment.