From 52a2a761c49ab59842b440990a3b58bccfbb3dab Mon Sep 17 00:00:00 2001
From: Damien Picard <dam.pic@free.fr>
Date: Wed, 24 Feb 2021 16:14:58 +0100
Subject: [PATCH] Object Color Rules: fix object selection

---
 object_color_rules.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/object_color_rules.py b/object_color_rules.py
index 52011366a..f404c06e2 100644
--- a/object_color_rules.py
+++ b/object_color_rules.py
@@ -172,7 +172,7 @@ def object_colors_select(rule, objects):
     test_cb = getattr(rule_test, rule_type)
 
     for obj in objects:
-        obj.select = test_cb(obj, rule, cache)
+        obj.select_set(test_cb(obj, rule, cache))
 
 
 def object_colors_rule_validate(rule, report):
-- 
GitLab