mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-09 12:29:35 +01:00
Only initialize points if necessary.
This commit is contained in:
parent
e0895460e5
commit
88f2303cf8
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user