Add deprecation warning for the Rope Composite type.

PiperOrigin-RevId: 494985209
Change-Id: I6ce7ca2aeae6f1e798bd4bda9b755852add26a36
This commit is contained in:
Alessio Quaglino
2022-12-13 04:35:02 -08:00
committed by Copybara-Service
parent 7076da6909
commit 3de2873883
3 changed files with 9 additions and 32 deletions
+2
View File
@@ -297,6 +297,8 @@ bool mjCComposite::Make(mjCModel* model, mjCBody* body, char* error, int error_s
return MakeGrid(model, body, error, error_sz);
case mjCOMPTYPE_ROPE:
mju_warning("The \"rope\" composite type is deprecated. Please use \"cable\" instead.");
[[fallthrough]];
case mjCOMPTYPE_LOOP:
return MakeRope(model, body, error, error_sz);