Only initialize points if necessary.

This commit is contained in:
Relintai 2022-06-17 13:20:55 +02:00
parent e0895460e5
commit 88f2303cf8

View File

@ -129,8 +129,10 @@ MMSdf3dShapeCapsule::~MMSdf3dShapeCapsule() {
void MMSdf3dShapeCapsule::_notification(int p_what) {
if (p_what == NOTIFICATION_POSTINITIALIZE) {
if (points.size() == 0) {
init_points_11();
}
}
}
void MMSdf3dShapeCapsule::_bind_methods() {