Use NULL instead of COND checks when appropriate
Restricted to scene
This commit is contained in:
parent
9723077f4f
commit
dcd2b883eb
43 changed files with 123 additions and 126 deletions
|
|
@ -1610,7 +1610,7 @@ Vector<Point2> TileSet::get_terrain_peering_bit_polygon(int p_terrain_set, TileS
|
|||
#define TERRAIN_ALPHA 0.6
|
||||
|
||||
void TileSet::draw_terrains(CanvasItem *p_canvas_item, Transform2D p_transform, const TileData *p_tile_data) {
|
||||
ERR_FAIL_COND(!p_tile_data);
|
||||
ERR_FAIL_NULL(p_tile_data);
|
||||
|
||||
if (terrain_bits_meshes_dirty) {
|
||||
// Recompute the meshes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue