| 185 | } |
| 186 | |
| 187 | void Prefab::PostRepatch(PatchCableSource* cableSource, bool fromUserClick) |
| 188 | { |
| 189 | if (cableSource == mRemoveModuleCable) |
| 190 | { |
| 191 | IDrawableModule* module = dynamic_cast<IDrawableModule*>(cableSource->GetTarget()); |
| 192 | if (module) |
| 193 | { |
| 194 | if (VectorContains(module, mModuleContainer.GetModules())) |
| 195 | { |
| 196 | GetOwningContainer()->TakeModule(module); |
| 197 | GetOwningContainer()->MoveToFront(this); |
| 198 | } |
| 199 | } |
| 200 | cableSource->Clear(); |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | void Prefab::GetModuleDimensions(float& width, float& height) |
| 205 | { |
no test coverage detected