| 1660 | } |
| 1661 | |
| 1662 | void EnvObject::GetDesc(EntityDescription& desc) const { |
| 1663 | if (!attached_ || (attached_ && parent && parent->IsGroupDerived())) { |
| 1664 | // Save everything if part of a group |
| 1665 | Object::GetDesc(desc); |
| 1666 | } else { |
| 1667 | // Skip transform info if object is attached to character |
| 1668 | desc.AddString(EDF_NAME, GetName()); |
| 1669 | desc.AddVec3(EDF_SCALE, GetScale()); |
| 1670 | desc.AddEntityType(EDF_ENTITY_TYPE, GetType()); |
| 1671 | desc.AddInt(EDF_ID, GetID()); |
| 1672 | desc.AddScriptParams(EDF_SCRIPT_PARAMS, sp.GetParameterMap()); |
| 1673 | } |
| 1674 | color_tint_component_.AddToDescription(desc); |
| 1675 | desc.AddString(EDF_FILE_PATH, obj_file); |
| 1676 | desc.AddBool(EDF_NO_NAVMESH, no_navmesh); |
| 1677 | } |
| 1678 | |
| 1679 | MaterialRef EnvObject::GetMaterial(const vec3& pos, int* tri) { |
| 1680 | // return (*Materials::Instance()->ReturnRef(ofr->material_path)); |
nothing calls this directly
no test coverage detected