MCPcopy Create free account
hub / github.com/MyGUI/mygui / doMerge

Method doMerge

Tools/SkinEditor/ChangeTextureValueAction.cpp:33–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 bool ChangeTextureValueAction::doMerge(Action* _action)
34 {
35 ChangeTextureValueAction* action = dynamic_cast<ChangeTextureValueAction*>(_action);
36 if (action != nullptr)
37 {
38 if (action->getProperty() == getProperty())
39 {
40 getProperty()->setValue(action->getValue());
41 return true;
42 }
43 }
44
45 return false;
46 }
47
48}

Callers

nothing calls this directly

Calls 3

getPropertyMethod · 0.45
setValueMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected