Skip to content

Commit

Permalink
CompoundEditor : Fix serialisation
Browse files Browse the repository at this point in the history
This was broken when we switched from `IECore.Enum` to `enum.Enum`.
  • Loading branch information
johnhaddon committed Jan 4, 2024
1 parent b9cf605 commit 225c0db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/GafferUI/CompoundEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def serialiseChildren( self, scriptNode = None ) :
if self.isSplit() :
sizes = self.getSizes()
splitPosition = ( float( sizes[0] ) / sum( sizes ) ) if sum( sizes ) else 0
return "( GafferUI.SplitContainer.Orientation.%s, %f, ( %s, %s ) )" % (
return "( GafferUI.SplitContainer.{}, {}, ( {}, {} ) )".format(
str( self.getOrientation() ), splitPosition,
self[0].serialiseChildren( scriptNode ), self[1].serialiseChildren( scriptNode )
)
Expand Down

0 comments on commit 225c0db

Please sign in to comment.