• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Start_operation and commit_operation issue

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 2 Posters 591 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    Garry K
    last edited by 21 Oct 2015, 23:52

    I've run into a wierd situation where the status from start_operation and commit_operation is good yet the first time through the undo doesn't behave as expected.

    Instead of undoing all the various operations - the undo is 1 step at a time - just as if there wasn't a start and commit.

    The second time through with the plugin and it works as expected.

    Too much code to show. Question is if anyone has run into this kind of thing.

    1 Reply Last reply Reply Quote 0
    • D Offline
      driven
      last edited by 22 Oct 2015, 01:04

      there are reports of this with embedded operations...

      learn from the mistakes of others, you may not live long enough to make them all yourself...

      1 Reply Last reply Reply Quote 0
      • G Offline
        Garry K
        last edited by 22 Oct 2015, 02:50

        I've read lots of reports about start_operation and commit.
        But nothing about specifically first time through failure.

        Maybe it is how I'm searching history.

        1 Reply Last reply Reply Quote 0
        • D Offline
          driven
          last edited by 22 Oct 2015, 03:04

          It may not be your issue, but the most resent I know is found on the dark side....

          Link Preview Image
          Difficulties wrapping the operations of a plugin into one undo

          I’ve written a plugin which is based on the parametric class. My plugin creates two classes depending on the parametric class. parametric’s create and edit methods have start_operation/commit_operation functionality buil…

          favicon

          SketchUp Community (forums.sketchup.com)

          john

          learn from the mistakes of others, you may not live long enough to make them all yourself...

          1 Reply Last reply Reply Quote 0
          • G Offline
            Garry K
            last edited by 22 Oct 2015, 03:59

            Sorry,

            Start and commit are not nested. A few lines of debug code proves that.
            Still at a loss.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              1/5
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement