File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,10 @@ StringName NodePath::get_concatenated_names() const {
215
215
String concatenated;
216
216
const StringName *sn = data->path .ptr ();
217
217
for (int i = 0 ; i < pc; i++) {
218
- concatenated += i == 0 ? sn[i].operator String () : " /" + sn[i];
218
+ if (i > 0 ) {
219
+ concatenated += " /" ;
220
+ }
221
+ concatenated += sn[i].operator String ();
219
222
}
220
223
data->concatenated_path = concatenated;
221
224
}
@@ -230,7 +233,10 @@ StringName NodePath::get_concatenated_subnames() const {
230
233
String concatenated;
231
234
const StringName *ssn = data->subpath .ptr ();
232
235
for (int i = 0 ; i < spc; i++) {
233
- concatenated += i == 0 ? ssn[i].operator String () : " :" + ssn[i];
236
+ if (i > 0 ) {
237
+ concatenated += " :" ;
238
+ }
239
+ concatenated += ssn[i].operator String ();
234
240
}
235
241
data->concatenated_subpath = concatenated;
236
242
}
Original file line number Diff line number Diff line change @@ -132,7 +132,10 @@ void SkeletonProfile::_validate_property(PropertyInfo &p_property) const {
132
132
if (p_property.name == (" root_bone" ) || p_property.name == (" scale_base_bone" )) {
133
133
String hint = " " ;
134
134
for (int i = 0 ; i < bones.size (); i++) {
135
- hint += i == 0 ? String (bones[i].bone_name ) : " ," + String (bones[i].bone_name );
135
+ if (i > 0 ) {
136
+ hint += " ," ;
137
+ }
138
+ hint += String (bones[i].bone_name );
136
139
}
137
140
p_property.hint_string = hint;
138
141
}
You can’t perform that action at this time.
0 commit comments