Skip to content

Commit 798ca1b

Browse files
jmcouffinCopilot
andauthored
Update extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/ColorSplasher.pushbutton/script.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b9719af commit 798ca1b

File tree

1 file changed

+2
-2
lines changed
  • extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/ColorSplasher.pushbutton

1 file changed

+2
-2
lines changed

extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/ColorSplasher.pushbutton/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,8 +1850,8 @@ def get_used_categories_parameters(cat_exc, acti_view, doc_param=None):
18501850
if ele.Category is None:
18511851
continue
18521852
# Use the function from compat, not the global-scoped function
1853-
get_elementid_value_func_instance = get_elementid_value_func()
1854-
current_int_cat_id = get_elementid_value_func_instance(ele.Category.Id)
1853+
elementid_value_getter = get_elementid_value_func()
1854+
current_int_cat_id = elementid_value_getter(ele.Category.Id)
18551855
if (
18561856
current_int_cat_id in cat_exc
18571857
or current_int_cat_id >= -1

0 commit comments

Comments
 (0)