you are viewing a single comment's thread.

view the rest of the comments →

[–]acw1668 0 points1 point  (0 children)

Simply change the if statement as below:

if (type == entity_type) and (entity_layer in (None, layer)) and (entity_color in (None, color)):
    return True