diff options
Diffstat (limited to 'modules/bullet/shape_bullet.cpp')
| -rw-r--r-- | modules/bullet/shape_bullet.cpp | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/modules/bullet/shape_bullet.cpp b/modules/bullet/shape_bullet.cpp index 82876ab77c..471b154813 100644 --- a/modules/bullet/shape_bullet.cpp +++ b/modules/bullet/shape_bullet.cpp @@ -375,11 +375,17 @@ ConcavePolygonShapeBullet::~ConcavePolygonShapeBullet() {  }  void ConcavePolygonShapeBullet::set_data(const Variant &p_data) { -	setup(p_data); +	Dictionary d = p_data; +	ERR_FAIL_COND(!d.has("faces")); + +	setup(d["faces"]);  }  Variant ConcavePolygonShapeBullet::get_data() const { -	return faces; +	Dictionary d; +	d["faces"] = faces; + +	return d;  }  PhysicsServer3D::ShapeType ConcavePolygonShapeBullet::get_type() const { |