| 41 | } |
| 42 | |
| 43 | void constructPrefab(const AABB& aabb, const std::string& shader, EPatchPrefab eType, |
| 44 | OrthoOrientation viewType, std::size_t width, std::size_t height) |
| 45 | { |
| 46 | GlobalSelectionSystem().setSelectedAll(false); |
| 47 | |
| 48 | scene::INodePtr node(GlobalPatchModule().createPatch(patch::PatchDefType::Def2)); |
| 49 | GlobalMapModule().findOrInsertWorldspawn()->addChildNode(node); |
| 50 | |
| 51 | Patch* patch = Node_getPatch(node); |
| 52 | patch->setShader(shader); |
| 53 | |
| 54 | patch->ConstructPrefab(aabb, eType, viewType, width, height); |
| 55 | patch->controlPointsChanged(); |
| 56 | |
| 57 | Node_setSelected(node, true); |
| 58 | } |
| 59 | |
| 60 | AABB getDefaultBoundsFromSelection() |
| 61 | { |
no test coverage detected