mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Add EditorUndoRedoManager singleton
This commit is contained in:
		
							parent
							
								
									91fedb60de
								
							
						
					
					
						commit
						b58111588a
					
				
					 89 changed files with 551 additions and 546 deletions
				
			
		|  | @ -61,7 +61,7 @@ void Skeleton2DEditor::_menu_option(int p_option) { | |||
| 				err_dialog->popup_centered(); | ||||
| 				return; | ||||
| 			} | ||||
| 			Ref<EditorUndoRedoManager> &ur = EditorNode::get_undo_redo(); | ||||
| 			EditorUndoRedoManager *ur = EditorUndoRedoManager::get_singleton(); | ||||
| 			ur->create_action(TTR("Set Rest Pose to Bones")); | ||||
| 			for (int i = 0; i < node->get_bone_count(); i++) { | ||||
| 				Bone2D *bone = node->get_bone(i); | ||||
|  | @ -77,7 +77,7 @@ void Skeleton2DEditor::_menu_option(int p_option) { | |||
| 				err_dialog->popup_centered(); | ||||
| 				return; | ||||
| 			} | ||||
| 			Ref<EditorUndoRedoManager> &ur = EditorNode::get_undo_redo(); | ||||
| 			EditorUndoRedoManager *ur = EditorUndoRedoManager::get_singleton(); | ||||
| 			ur->create_action(TTR("Create Rest Pose from Bones")); | ||||
| 			for (int i = 0; i < node->get_bone_count(); i++) { | ||||
| 				Bone2D *bone = node->get_bone(i); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kobewi
						kobewi