| 26 | } |
| 27 | |
| 28 | scene::INodePtr PatchModule::createPatch(PatchDefType type) |
| 29 | { |
| 30 | scene::INodePtr node = std::make_shared<PatchNode>(type); |
| 31 | |
| 32 | if (GlobalMapModule().getRoot()) |
| 33 | { |
| 34 | // All patches are created in the active layer by default |
| 35 | node->moveToLayer(GlobalMapModule().getRoot()->getLayerManager().getActiveLayer()); |
| 36 | } |
| 37 | |
| 38 | return node; |
| 39 | } |
| 40 | |
| 41 | IPatchSettings& PatchModule::getSettings() |
| 42 | { |
no test coverage detected