1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Allow exporting variables of type Variant

This commit is contained in:
kobewi
2024-03-24 21:36:35 +01:00
parent 96cdbbe5bd
commit 012d47b089
5 changed files with 127 additions and 12 deletions

View File

@@ -998,7 +998,7 @@ void TileSourceInspectorPlugin::_confirm_change_id() {
}
bool TileSourceInspectorPlugin::can_handle(Object *p_object) {
return p_object->is_class("TileSetAtlasSourceProxyObject") || p_object->is_class("TileSetScenesCollectionProxyObject");
return p_object && (p_object->is_class("TileSetAtlasSourceProxyObject") || p_object->is_class("TileSetScenesCollectionProxyObject"));
}
bool TileSourceInspectorPlugin::parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const BitField<PropertyUsageFlags> p_usage, const bool p_wide) {