Assigns an existing scene-object to the named constraint
| 431 | |
| 432 | // Assigns an existing scene-object to the named constraint |
| 433 | afxConstraintID afxConstraintMgr::setReferenceObject(StringTableEntry which, SceneObject* obj) |
| 434 | { |
| 435 | S32 idx = find_cons_idx_from_name(which); |
| 436 | if (idx < 0) |
| 437 | return afxConstraintID(); |
| 438 | |
| 439 | afxConstraintID id = afxConstraintID(idx); |
| 440 | setReferenceObject(id, obj); |
| 441 | |
| 442 | return id; |
| 443 | } |
| 444 | |
| 445 | // Assigns an un-scoped scene-object by scope_id to the named constraint |
| 446 | afxConstraintID afxConstraintMgr::setReferenceObjectByScopeId(StringTableEntry which, U16 scope_id, bool is_shape) |
no test coverage detected