From 5be46c412470cd9ea21ceb2b327933b1093214f8 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 8 Apr 2021 12:27:46 +0200 Subject: [PATCH] dgui: Fix DirectSlider unit test failure --- direct/src/gui/DirectSlider.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/direct/src/gui/DirectSlider.py b/direct/src/gui/DirectSlider.py index 435c8f154a..61e8957de2 100644 --- a/direct/src/gui/DirectSlider.py +++ b/direct/src/gui/DirectSlider.py @@ -58,8 +58,7 @@ class DirectSlider(DirectFrame): self.thumb = self.createcomponent("thumb", (), None, DirectButton, (self,), borderWidth = self['borderWidth']) - if self.thumb['frameSize'] is None and \ - self.thumb.bounds == [0.0, 0.0, 0.0, 0.0]: + if self.thumb['frameSize'] is None: # Compute a default frameSize for the thumb. f = self['frameSize'] if self['orientation'] == DGG.HORIZONTAL: