mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 07:31:16 +00:00 
			
		
		
		
	Resolve: #24682 CSGPolygon - weird end cap
This commit is contained in:
		
							parent
							
								
									ee5ba3e097
								
							
						
					
					
						commit
						89a9f4621f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -2082,6 +2082,9 @@ CSGBrush *CSGPolygon::_build_brush() {
 | 
				
			||||||
				for (int i = 0; i <= splits; i++) {
 | 
									for (int i = 0; i <= splits; i++) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					float ofs = i * path_interval;
 | 
										float ofs = i * path_interval;
 | 
				
			||||||
 | 
										if (ofs > bl) {
 | 
				
			||||||
 | 
											ofs = bl;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
					if (i == splits && path_joined) {
 | 
										if (i == splits && path_joined) {
 | 
				
			||||||
						ofs = 0.0;
 | 
											ofs = 0.0;
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue