| 160 | } |
| 161 | |
| 162 | void VRMLObject::Restore(Base::XMLReader& reader) |
| 163 | { |
| 164 | App::GeoFeature::Restore(reader); |
| 165 | Urls.setSize(Resources.getSize()); |
| 166 | |
| 167 | // restore also the inline files if there |
| 168 | const std::vector<std::string>& urls = Resources.getValues(); |
| 169 | for (const auto& url : urls) { |
| 170 | reader.addFile(url.c_str(), this); |
| 171 | } |
| 172 | |
| 173 | this->indexRestore = 0; |
| 174 | } |
| 175 | |
| 176 | void VRMLObject::SaveDocFile(Base::Writer& writer) const |
| 177 | { |