You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
Removing the cell by calling set_cell_item(x, y, z, -1) will cause errors in the PhysicServer even if there is no physic body attached to cells.
Steps to reproduce:
Run attached project.
The following code will spam errors to the Output:
I encountered this error too. But mine is on gridmap paint and it prints on "Output", so I analyzed this bug.
First, these are descriptions of the terms I'm going to use:
-Paint: Gridmap paint
-Action area: Smallest box that contains a paint (Here's some image for better explanation):
The bug only occurs if action happened in a frame which action area bigger than octant size. So in order to reproduce the bug, you need to:
-Undo + Paint
-Undo + Redo + Erase (Mouse right click)
-Clear selection + Paint
-Cut selection + Paint
If these actions is not bigger than octant size then the bug wont appear. However the bug can still appear while the action area is smaller than or equal to octant size in some special conditions:
Gridmap octant size setted to 2 for easier visualization. All action areas which contains both green and red tile will cause the bug.
If octant size setted to 3 then all areas as shown above will increase 1 cell, like this:
Sometimes the bug will appear as infinite loop (only output if input happens such as mouse motion), and sometimes it happens once or third. It depends on where you click first. If infinite loop happens then in order to get rid of the bug, you need to paint and erase the corresponding tile.
Undo + Redo + Erase doesn't produce bug always, as mentioned above only erasing tiles which cause infinite loop will give error once.
Godot version:
3.2.3 - 3.2.4
OS/device including version:
Win10/GTX1060
Issue description:
Removing the cell by calling
set_cell_item(x, y, z, -1)
will cause errors in the PhysicServer even if there is no physic body attached to cells.Steps to reproduce:
Run attached project.
The following code will spam errors to the Output:
Minimal reproduction project:
GridMapBug.zip
The text was updated successfully, but these errors were encountered: