mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Provide a way to hook into Inspectors UndoRedo.
This commit is contained in:
parent
1c2766e240
commit
b46672db72
6 changed files with 64 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ private:
|
|||
|
||||
List<PropertyData> clipboard;
|
||||
UndoRedo undo_redo;
|
||||
Vector<Callable> undo_redo_callbacks;
|
||||
|
||||
void _cleanup_history();
|
||||
|
||||
|
|
@ -166,6 +167,9 @@ public:
|
|||
EditorPlugin *get_editor_plugin(int p_idx);
|
||||
|
||||
UndoRedo &get_undo_redo();
|
||||
void add_undo_redo_inspector_hook_callback(Callable p_callable); // Callbacks shoud have 4 args: (Object* undo_redo, Object *modified_object, String property, Varian new_value)
|
||||
void remove_undo_redo_inspector_hook_callback(Callable p_callable);
|
||||
const Vector<Callable> get_undo_redo_inspector_hook_callback();
|
||||
|
||||
void save_editor_global_states();
|
||||
void restore_editor_global_states();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue