Browse Source

Merge pull request #61896 from akien-mga/softbody-fix-attachment-property-name

SoftBody: Fix attachments property names after #61180
Rémi Verschelde 3 years ago
parent
commit
9b014c49ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/3d/soft_dynamic_body_3d.cpp

+ 1 - 1
scene/3d/soft_dynamic_body_3d.cpp

@@ -165,7 +165,7 @@ void SoftDynamicBody3D::_get_property_list(List<PropertyInfo> *p_list) const {
 	p_list->push_back(PropertyInfo(Variant::PACKED_INT32_ARRAY, PNAME("pinned_points")));
 	p_list->push_back(PropertyInfo(Variant::PACKED_INT32_ARRAY, PNAME("pinned_points")));
 
 
 	for (int i = 0; i < pinned_points_indices_size; ++i) {
 	for (int i = 0; i < pinned_points_indices_size; ++i) {
-		const String prefix = vformat("%s/%d", PNAME("attachments"), i);
+		const String prefix = vformat("%s/%d/", PNAME("attachments"), i);
 		p_list->push_back(PropertyInfo(Variant::INT, prefix + PNAME("point_index")));
 		p_list->push_back(PropertyInfo(Variant::INT, prefix + PNAME("point_index")));
 		p_list->push_back(PropertyInfo(Variant::NODE_PATH, prefix + PNAME("spatial_attachment_path")));
 		p_list->push_back(PropertyInfo(Variant::NODE_PATH, prefix + PNAME("spatial_attachment_path")));
 		p_list->push_back(PropertyInfo(Variant::VECTOR3, prefix + PNAME("offset")));
 		p_list->push_back(PropertyInfo(Variant::VECTOR3, prefix + PNAME("offset")));