Merge pull request #18634 from groud/fix_control_child_of_node2d

Fixes the bad calculation of margin & anchors when child of Node2D
This commit is contained in:
Max Hilbrunner 2018-07-03 18:06:15 +02:00 committed by GitHub
commit b21c1f64cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 160 additions and 199 deletions

View file

@ -1152,16 +1152,6 @@ PoolVector<int> TileMap::_get_tile_data() const {
return data;
}
Rect2 TileMap::_edit_get_rect() const {
const_cast<TileMap *>(this)->_update_dirty_quadrants();
return rect_cache;
}
bool TileMap::_edit_use_rect() const {
return true;
}
void TileMap::set_collision_layer(uint32_t p_layer) {
collision_layer = p_layer;