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:
commit
b21c1f64cd
17 changed files with 160 additions and 199 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue