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,7 +129,9 @@ MMSdf3dShapeCapsule::~MMSdf3dShapeCapsule() {
void MMSdf3dShapeCapsule::_notification(int p_what) { void MMSdf3dShapeCapsule::_notification(int p_what) {
if (p_what == NOTIFICATION_POSTINITIALIZE) { if (p_what == NOTIFICATION_POSTINITIALIZE) {
init_points_11(); if (points.size() == 0) {
init_points_11();
}
} }
} }