Store ObjectID instead of raw pointer for Shape Owners

This commit is contained in:
Haoyu Qiu 2022-01-25 17:16:06 +08:00
parent 3102660512
commit a775744742
4 changed files with 6 additions and 6 deletions

View file

@ -59,7 +59,7 @@ private:
PhysicsServer2D::BodyMode body_mode = PhysicsServer2D::BODY_MODE_STATIC;
struct ShapeData {
Object *owner = nullptr;
ObjectID owner_id;
Transform2D xform;
struct Shape {
Ref<Shape2D> shape;