Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UndoRedo to trigger dirty state #2

Open
idbrii opened this issue Jan 20, 2023 · 0 comments
Open

Use UndoRedo to trigger dirty state #2

idbrii opened this issue Jan 20, 2023 · 0 comments

Comments

@idbrii
Copy link
Owner

idbrii commented Jan 20, 2023

In Add a way for plugins to signal that they've made unsaved changes to a scene, KoBeWi suggested a no-op UndoRedo action to mark the scene as dirty.

Since most scripts will change the scene, we should pass undo state to them to allow them to trigger undo and dirty state.

Maybe we can open an undo action, pass it as a parameter to the script, and close it? That way it's very simple for a script to add undo support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant