You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
Fix !tile_set.is_valid() error on startup
This commit is contained in:
@@ -120,7 +120,9 @@ bool TileSetEditor::_can_drop_data_fw(const Point2 &p_point, const Variant &p_da
|
||||
}
|
||||
|
||||
void TileSetEditor::_update_sources_list(int force_selected_id) {
|
||||
ERR_FAIL_COND(!tile_set.is_valid());
|
||||
if (tile_set.is_null()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the previously selected id.
|
||||
int old_selected = TileSet::INVALID_SOURCE;
|
||||
|
||||
Reference in New Issue
Block a user