mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Make translatable some undo/redo operations in the editor
This commit is contained in:
		
							parent
							
								
									a01dca79e2
								
							
						
					
					
						commit
						3ef8238c1c
					
				
					 17 changed files with 90 additions and 90 deletions
				
			
		|  | @ -63,7 +63,7 @@ void Skeleton2DEditor::_menu_option(int p_option) { | |||
| 				return; | ||||
| 			} | ||||
| 			UndoRedo *ur = EditorNode::get_singleton()->get_undo_redo(); | ||||
| 			ur->create_action("Create Rest Pose from Bones"); | ||||
| 			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); | ||||
| 				ur->add_do_method(bone, "set_rest", bone->get_transform()); | ||||
|  | @ -79,7 +79,7 @@ void Skeleton2DEditor::_menu_option(int p_option) { | |||
| 				return; | ||||
| 			} | ||||
| 			UndoRedo *ur = EditorNode::get_singleton()->get_undo_redo(); | ||||
| 			ur->create_action("Set Rest Pose to Bones"); | ||||
| 			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); | ||||
| 				ur->add_do_method(bone, "set_transform", bone->get_rest()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael Alexsander Silva Dias
						Michael Alexsander Silva Dias