mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	do not allow editing of tilemap if it's invisible, fixes #2601
This commit is contained in:
		
							parent
							
								
									f7b64a62d1
								
							
						
					
					
						commit
						4028dfa6d2
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -218,7 +218,8 @@ struct _TileMapEditorCopyData { | |||
| 
 | ||||
| bool TileMapEditor::forward_input_event(const InputEvent& p_event) { | ||||
| 
 | ||||
| 	if (!node || !node->get_tileset().is_valid()) | ||||
| 
 | ||||
| 	if (!node || !node->get_tileset().is_valid() || !node->is_visible()) | ||||
| 		return false; | ||||
| 
 | ||||
| 	Matrix32 xform = CanvasItemEditor::get_singleton()->get_canvas_transform() * node->get_global_transform(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 reduz
						reduz