mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer
This commit is contained in:
		
						commit
						373ea7ce75
					
				
					 2 changed files with 11 additions and 11 deletions
				
			
		|  | @ -254,8 +254,8 @@ void BitmapComboBox::DrawBackground_(wxDC& dc, const wxRect& rect, int WXUNUSED( | ||||||
|         dc.SetTextForeground(flags & ODCB_PAINTING_DISABLED ? wxColour(108,108,108) : wxGetApp().get_label_clr_default()); |         dc.SetTextForeground(flags & ODCB_PAINTING_DISABLED ? wxColour(108,108,108) : wxGetApp().get_label_clr_default()); | ||||||
| 
 | 
 | ||||||
|         wxColour selCol = flags & ODCB_PAINTING_DISABLED ?  |         wxColour selCol = flags & ODCB_PAINTING_DISABLED ?  | ||||||
| #ifdef _MSW_DAEK_MODE | #ifdef _MSW_DARK_MODE | ||||||
|             wxRGBToColour(NppDarkMode::InvertLightnessSofter(NppDarkMode::GetBackgroundColor())) :  |             wxRGBToColour(NppDarkMode::GetSofterBackgroundColor()) : | ||||||
| #else | #else | ||||||
|             wxGetApp().get_highlight_default_clr() : |             wxGetApp().get_highlight_default_clr() : | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | @ -581,14 +581,14 @@ void GCodeViewer::init() | ||||||
|         case EMoveType::Retract: |         case EMoveType::Retract: | ||||||
|         case EMoveType::Unretract: |         case EMoveType::Unretract: | ||||||
|         case EMoveType::Seam: { |         case EMoveType::Seam: { | ||||||
|             if (wxGetApp().is_gl_version_greater_or_equal_to(3, 3)) { | //            if (wxGetApp().is_gl_version_greater_or_equal_to(3, 3)) {
 | ||||||
|                 buffer.render_primitive_type = TBuffer::ERenderPrimitiveType::InstancedModel; | //                buffer.render_primitive_type = TBuffer::ERenderPrimitiveType::InstancedModel;
 | ||||||
|                 buffer.shader = "gouraud_light_instanced"; | //                buffer.shader = "gouraud_light_instanced";
 | ||||||
|                 buffer.model.model.init_from(diamond(16)); | //                buffer.model.model.init_from(diamond(16));
 | ||||||
|                 buffer.model.color = option_color(type); | //                buffer.model.color = option_color(type);
 | ||||||
|                 buffer.model.instances.format = InstanceVBuffer::EFormat::InstancedModel; | //                buffer.model.instances.format = InstanceVBuffer::EFormat::InstancedModel;
 | ||||||
|             } | //            }
 | ||||||
|             else { | //            else {
 | ||||||
|                 buffer.render_primitive_type = TBuffer::ERenderPrimitiveType::BatchedModel; |                 buffer.render_primitive_type = TBuffer::ERenderPrimitiveType::BatchedModel; | ||||||
|                 buffer.vertices.format = VBuffer::EFormat::PositionNormal3; |                 buffer.vertices.format = VBuffer::EFormat::PositionNormal3; | ||||||
|                 buffer.shader = "gouraud_light"; |                 buffer.shader = "gouraud_light"; | ||||||
|  | @ -596,7 +596,7 @@ void GCodeViewer::init() | ||||||
|                 buffer.model.data = diamond(16); |                 buffer.model.data = diamond(16); | ||||||
|                 buffer.model.color = option_color(type); |                 buffer.model.color = option_color(type); | ||||||
|                 buffer.model.instances.format = InstanceVBuffer::EFormat::BatchedModel; |                 buffer.model.instances.format = InstanceVBuffer::EFormat::BatchedModel; | ||||||
|             } | //            }
 | ||||||
|             break; |             break; | ||||||
|         } |         } | ||||||
|         case EMoveType::Wipe: |         case EMoveType::Wipe: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vojtech Bubnik
						Vojtech Bubnik