Page MenuHome

Bool Tool: Error with Remove Brush after Canvas Apply All
Closed, ResolvedPublic

Description

To replicate the error:

  1. Make two objects, select them, pick one option from the Bool Tool Panel > Brush Boolean (for instance Difference)
  2. With the two objects still selected go to Properties > Canvas > Apply All
  3. Select the brush object (it's drawn as a bounding box in the 3D view) go to Properties > Brush > Remove Brush

Error log:

scripts\addons\object_boolean_tools.py", line 263, in Remove
    for mod in Canvas.modifiers:
AttributeError: 'NoneType' object has no attribute 'modifiers'

Seems that since the brushes from the Canvas being applied there's nothing to cycle through the loop of the removal function. The remove the brush object, it needs to be deleted manually.

Event Timeline

Looks like someone commented the code where brush object should be deleted on Apply All action.
Tweak Remove Brush operator anyway, since it will give an error if canvas object is deleted before Apply All.

@Brendon Murphy (meta-androcto), BTW I didn't wrote this part of the add-on (which looks dreadful by the way). So it is better to assign to the person responsible for this mess *thousand yard stare*.