Skip to content

Commit

Permalink
fixup! ColorChooser : Add _ColorField widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Aug 2, 2024
1 parent 3026119 commit d974306
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions python/GafferUI/ColorChooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,22 +207,6 @@ def valueChangedSignal( self ) :

return self.__valueChangedSignal

## Returns True if a user would expect the specified sequence
# of changes to be merged into one undoable event.
@classmethod
def changesShouldBeMerged( cls, firstReason, secondReason ) :

if type( firstReason ) != type( secondReason ) :
return False

return ( firstReason, secondReason ) in (
# click and drag
( GafferUI.Slider.ValueChangedReason.Click, GafferUI.Slider.ValueChangedReason.DragBegin ),
( GafferUI.Slider.ValueChangedReason.DragBegin, GafferUI.Slider.ValueChangedReason.DragMove ),
( GafferUI.Slider.ValueChangedReason.DragMove, GafferUI.Slider.ValueChangedReason.DragMove ),
( GafferUI.Slider.ValueChangedReason.DragMove, GafferUI.Slider.ValueChangedReason.DragEnd ),
)

def __setColorInternal( self, color, staticComponent, reason ) :

dragBeginOrEnd = reason in ( GafferUI.Slider.ValueChangedReason.DragBegin, GafferUI.Slider.ValueChangedReason.DragEnd )
Expand Down

0 comments on commit d974306

Please sign in to comment.