onElementModified does not get triggered before onTransactionRedo

Hello,

I am using, Class: Sketchup::EntitiesObserver — SketchUp Ruby API Documentation
and Class: Sketchup::ModelObserver — SketchUp Ruby API Documentation

I do 4 simple operations to test the observers and the following prints on the Ruby console:

  • make a plane
  • move the plane up on Z axis:

onElementModified
onTransactionCommit
onTransactionCommit

  • crtl+Z (undo):

onElementModified
onTransactionUndo

  • ctrl+Y (redo):

onTransactionRedo

Based on this test, onElementModified does not get triggered before onTransactionRedo. Am I missing something here or could this be a bug?

Thanks,
Ege

To see if a bug is already logged … check the public API Issue Tracker:

It shows that I’ve already logged this (or a similar bug) 3.5 years ago …

1 Like

this looks exactly like my experience