mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	Fixed crash on duplicate instanced nodes (#13432)
This commit is contained in:
		
							parent
							
								
									e89309b931
								
							
						
					
					
						commit
						1f0e9c13a4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -2121,7 +2121,7 @@ Node *Node::_duplicate(int p_flags, Map<const Node *, Node *> *r_duplimap) const
 | 
				
			||||||
			for (int i = 0; i < N->get()->get_child_count(); ++i) {
 | 
								for (int i = 0; i < N->get()->get_child_count(); ++i) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				// Skip nodes not really belonging to the instanced hierarchy; they'll be processed normally later
 | 
									// Skip nodes not really belonging to the instanced hierarchy; they'll be processed normally later
 | 
				
			||||||
				if (get_child(i)->data.owner != this)
 | 
									if (N->get()->get_child(i)->data.owner != this)
 | 
				
			||||||
					continue;
 | 
										continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				node_tree.push_back(N->get()->get_child(i));
 | 
									node_tree.push_back(N->get()->get_child(i));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue