Skip to content

Commit 6d63c6b

Browse files
better var name
1 parent 9745885 commit 6d63c6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Editor/Tools/UpdateComponentTool.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private bool UpdateComponentData(Component component, JObject componentData, out
263263
}
264264

265265
Type componentType = component.GetType();
266-
bool gotFailure = false;
266+
bool fullSuccess = true;
267267

268268
// Record object for undo
269269
Undo.RecordObject(component, $"Update {componentType.Name} fields");
@@ -294,11 +294,11 @@ private bool UpdateComponentData(Component component, JObject componentData, out
294294
{
295295
errorMessage = $"Field '{fieldName}' not found on component '{componentType.Name}'";
296296
McpLogger.LogError(errorMessage);
297-
gotFailure = true;
297+
fullSuccess = false;
298298
}
299299
}
300300

301-
return !gotFailure;
301+
return fullSuccess;
302302
}
303303

304304
/// <summary>

0 commit comments

Comments
 (0)