javafx - UndoFX: A bound value cannot be set -


i use undofx undo , redo functions rectangle shape. far working fine position, size , rotation, except fillproperty color of shape.

the problem can't bind shape colorpicker component, infinite exceptions:

rectangle.fill: bound value cannot set.

how can use both undofx functions , binding?

colorfield.valueproperty().setvalue((color) (currentselected.getrect().fillproperty().getvalue()));  currentselected.getrect().fillproperty().bind(colorfield.valueproperty());  previousselected.getrect().fillproperty().unbind();