Store ObjectID instead of raw pointer for Shape Owners
This commit is contained in:
parent
3102660512
commit
a775744742
4 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue