mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Optimize hotspots with Object::derives_from
				
					
				
			This commit is contained in:
		
							parent
							
								
									3aaabb6148
								
							
						
					
					
						commit
						aec5bf47dd
					
				
					 11 changed files with 27 additions and 26 deletions
				
			
		|  | @ -656,7 +656,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da | |||
| 						} | ||||
| 					} | ||||
| 				} else if (var.get_type() == Variant::OBJECT) { | ||||
| 					if (((Object *)var)->is_class("EncodedObjectAsID")) { | ||||
| 					if (((Object *)var)->derives_from<EncodedObjectAsID>()) { | ||||
| 						var = Object::cast_to<EncodedObjectAsID>(var)->get_object_id(); | ||||
| 						pinfo.type = var.get_type(); | ||||
| 						pinfo.hint = PROPERTY_HINT_OBJECT_ID; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 lawnjelly
						lawnjelly