Skip to content

Commit 34a10b6

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 9e52755 commit 34a10b6

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def Execute(self, uiapp):
218218
ogs.SetSurfaceForegroundPatternId(solid_fill_id)
219219
ogs.SetCutForegroundPatternId(solid_fill_id)
220220
# Apply background pattern color if enabled (Revit 2019+)
221-
version = int(HOST_APP.version)
221+
# version already defined above
222222
if apply_background_pattern_color and version >= 2019:
223223
ogs.SetSurfaceBackgroundPatternColor(background_color)
224224
ogs.SetCutBackgroundPatternColor(background_color)

0 commit comments

Comments
 (0)