MCPcopy Create free account
hub / github.com/OpenMW/openmw / ~DropObjectHeightHandler

Method ~DropObjectHeightHandler

apps/opencs/view/render/instancemode.cpp:1430–1443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428}
1429
1430CSVRender::DropObjectHeightHandler::~DropObjectHeightHandler()
1431{
1432 std::vector<osg::ref_ptr<TagBase>> selection = mWorldspaceWidget->getSelection(Mask_Reference);
1433 int counter = 0;
1434 for (osg::ref_ptr<TagBase> tag : selection)
1435 {
1436 if (CSVRender::ObjectTag* objectTag = dynamic_cast<CSVRender::ObjectTag*>(tag.get()))
1437 {
1438 osg::ref_ptr<osg::Group> objectNodeWithGUI = objectTag->mObject->getRootNode();
1439 objectNodeWithGUI->setNodeMask(mOldMasks[counter]);
1440 counter++;
1441 }
1442 }
1443}

Callers

nothing calls this directly

Calls 4

setNodeMaskMethod · 0.80
getSelectionMethod · 0.45
getMethod · 0.45
getRootNodeMethod · 0.45

Tested by

no test coverage detected