mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	ENH: only display perform button in Gap Fill tool
Signed-off-by: yifan.wu <yifan.wu@bambulab.com> Change-Id: If4cefd99ebe526a7d266b5e4bd9f6115f1b440e2
This commit is contained in:
		
							parent
							
								
									a363daed9b
								
							
						
					
					
						commit
						a4c1e17284
					
				
					 1 changed files with 12 additions and 8 deletions
				
			
		|  | @ -397,16 +397,20 @@ void GLGizmoFdmSupports::on_render_input_window(float x, float y, float bottom_l | |||
|     show_tooltip_information(caption_max, x, get_cur_y); | ||||
|     ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(6.0f, 5.0f)); | ||||
|     ImGui::SameLine(); | ||||
|     if (m_imgui->button(m_desc.at("perform_filter"))) { | ||||
|         Plater::TakeSnapshot snapshot(wxGetApp().plater(), "Reset selection", UndoRedo::SnapshotType::GizmoAction); | ||||
| 
 | ||||
|         for (int i = 0; i < m_triangle_selectors.size(); i++) { | ||||
|             TriangleSelectorPatch *ts_mm = dynamic_cast<TriangleSelectorPatch *>(m_triangle_selectors[i].get()); | ||||
|             ts_mm->update_selector_triangles(); | ||||
|             ts_mm->request_update_render_data(true); | ||||
|     // Perform button is for gap fill
 | ||||
|     if (m_current_tool == ImGui::FragmentFilterIcon) { | ||||
|         if (m_imgui->button(m_desc.at("perform_filter"))) { | ||||
|             Plater::TakeSnapshot snapshot(wxGetApp().plater(), "Reset selection", UndoRedo::SnapshotType::GizmoAction); | ||||
| 
 | ||||
|             for (int i = 0; i < m_triangle_selectors.size(); i++) { | ||||
|                 TriangleSelectorPatch* ts_mm = dynamic_cast<TriangleSelectorPatch*>(m_triangle_selectors[i].get()); | ||||
|                 ts_mm->update_selector_triangles(); | ||||
|                 ts_mm->request_update_render_data(true); | ||||
|             } | ||||
|             update_model_object(); | ||||
|             m_parent.set_as_dirty(); | ||||
|         } | ||||
|         update_model_object(); | ||||
|         m_parent.set_as_dirty(); | ||||
|     } | ||||
| 
 | ||||
|     ImGui::SameLine(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 yifan.wu
						yifan.wu