Add site semantics to weld constraint. Fixes #1896
PiperOrigin-RevId: 675112981 Change-Id: Ie4c01440d54116075df89f480591700762892cbd
This commit is contained in:
committed by
Copybara-Service
parent
2da15cf137
commit
60a1921b34
@@ -4920,7 +4920,10 @@ void mjCEquality::ResolveReferences(const mjCModel* m) {
|
||||
|
||||
// determine object type
|
||||
if (type==mjEQ_WELD) {
|
||||
object_type = mjOBJ_BODY;
|
||||
if (objtype != mjOBJ_SITE && objtype != mjOBJ_BODY) {
|
||||
throw mjCError(this, "weld constraint supports only sites and bodies");
|
||||
}
|
||||
object_type = objtype;
|
||||
} else if (type==mjEQ_CONNECT) {
|
||||
if (objtype != mjOBJ_SITE && objtype != mjOBJ_BODY) {
|
||||
throw mjCError(this, "connect constraint supports only sites and bodies");
|
||||
|
||||
Reference in New Issue
Block a user