def end(self): o = self.o o.rotation_euler[2] = 0. # delete drivers for the corner EMPTY objects self.o1 and self.o2 self.o1.driver_remove("location") self.o2.driver_remove("location") addSegmentDrivers(o, self.o1, self.o2) attached1 = self.attached1 if attached1: addAttachedDrivers(self.wall, self.o1, self.o2, attached1[0], attached1[1], False) attached2 = self.attached2 if attached2: addAttachedDrivers(self.wall, self.o2, self.o1, attached2[0], attached2[1], False)
def end(self): super().end() o = self.o wall = self.wall addAttachedDrivers(wall, o, wall.getPrevious(o) if o["e"] else wall.getNext(o), self.e1, self.e2, False)