Fix #106853: Tooltip fix of OT_constraints_clear

The existing tooltip of Clear Constraints modifier in object mode
(`object.constraints_clear`) didn't match its functionality. It said it
works only on the active object, but it affects all selected objects.

Hence, the tooltip has been changed from 'Clear all the constraints for
the active object only' to 'Clear all the constraints for the selected
objects'.

Also the tooltip for 'Clear Pose Constraints' in Pose Mode was updated
for consistency with the above update.

Pull Request: https://projects.blender.org/blender/blender/pulls/106918
This commit is contained in:
Adi Sage
2023-04-13 23:45:38 +05:30
committed by Sybren A. Stüvel
parent 4c99043a85
commit cc84d83929

View File

@@ -2045,7 +2045,7 @@ void POSE_OT_constraints_clear(wmOperatorType *ot)
/* identifiers */
ot->name = "Clear Pose Constraints";
ot->idname = "POSE_OT_constraints_clear";
ot->description = "Clear all the constraints for the selected bones";
ot->description = "Clear all constraints from the selected bones";
/* callbacks */
ot->exec = pose_constraints_clear_exec;
@@ -2084,7 +2084,7 @@ void OBJECT_OT_constraints_clear(wmOperatorType *ot)
/* identifiers */
ot->name = "Clear Object Constraints";
ot->idname = "OBJECT_OT_constraints_clear";
ot->description = "Clear all the constraints for the active object only";
ot->description = "Clear all constraints from the selected objects";
/* callbacks */
ot->exec = object_constraints_clear_exec;