Why I can't undo on Node Editor

Sup fellas,
This is my first contact with you earthlings… even though I joined last year… anyways, it’s good to be part of this amazing community
It’s also amazing that all my questions were solved by mere browses through the forum, I’ve never stuck on an unsolved issue, just… WOW!

Anyways, this was an obstacle I had on (maybe) June. I’ve kinda solved it, but I guess it is prone to happen on different situations - as code bugs for example - so, it’s not exactly a question or an answer, it’s more like a report

Why I can’t undo on Node Editor?
I’ve encountered at least one answered question about it, but it’s not really useful. And since I perceived this issue as not very common after searching through forums, felt like solving it myself.
These are the things I’ve tried:

-Doesn’t work if I change everything to default. I’ve tried messing around with many options I could find, even the ammount of undo steps, and still no success.
-I thought it might be a bug so I tried repairing Blender and even reinstalling, but nothing changed.
-Thinking the problem was me messing around too much I sweared to not touch the original object anymore, so I copied and pasted the material’s nodes to another identical object… but the issue teleported along!
-Then I tried making another material to the same problematic object and guess what? Problem again
-Then I gave up and started another similar project from scratch and surprisingly it worked!
Then I realized the problem was in the relationship between object and material itself!

So… is it possible to create sentimental materials that are afraid of revealing the woopsies of their pasts to a specific object? Apparently it is… :confused: By the way, I can’t provide the file because of an unfortunate… well… whoopsie :o

The solution I encountered while messing with later projects is:
Just go back to object mode on the window(s) that is(are) in 3Dview editor type
:rolleyes:

But, even though it’s kinda solved and I never had to think of another way to solve it, I am sharing this experience because I have a hunch the original file revealed a real bug on the source code that could be debugged on future Blender versions

1 Like

Have you got global undo turned on? you should be able to undo pretty much any action made in blender.

In the user preferences, go to the “Editing” tab and make sure global undo is on. then set the amount of steps you want and the memory limit… then you should be able to undo in the node editor using ctrl+z or ctrl+alt+z…

Hope i understood the question correctly…

You can also go to 3D view and under object menu you got options for undo, redo, and undo history. If you want, you can have those options in the node editor under “node”, by pasting the following code between lines 229 and 231 in the space_node.py file and saving.

code:

        layout.operator("ed.undo")
        layout.operator("ed.redo")
        layout.operator("ed.undo_history")

        layout.separator()

Rella thanks people! It’s nice you go direct to the point
-Jamie B - Yup, you got it on target. Thanks
-AFWS - That’s awesome!

Still think wouldn’t work on the original file. Maybe I am just paranoid…

Last question:
Apparently if the object interaction mode is sculpt or edit, any area set to node editor won’t undo. Is it a “normal” limitation or did I mess too much?

i think you may just have to switch back to object mode for that, otherwise it will just be undoing changes to the mesh if you are in edit or sculpt mode :slight_smile:

1 Like

So that’s the reason! Thanksalot :D:D:D
Btw sorry for the confusion, organize is a new word for me. :rolleyes:
Your first solution made me revisit places that were edited and didn’t remember
and your second gave me the reason of a limitation
You’re awesome

No problem man :slight_smile:

Glad to help :smiley: