MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / MouseReleased

Method MouseReleased

Source/Prefab.cpp:143–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void Prefab::MouseReleased()
144{
145 IDrawableModule::MouseReleased();
146
147 if (CanAddDropModules() && !VectorContains<IDrawableModule*>(this, TheSynth->GetGroupSelectedModules()))
148 {
149 if (IsAddableModule(sJustReleasedModule))
150 mModuleContainer.TakeModule(sJustReleasedModule);
151
152 for (auto* module : TheSynth->GetGroupSelectedModules())
153 {
154 if (IsAddableModule(module))
155 mModuleContainer.TakeModule(module);
156 }
157 }
158}
159
160void Prefab::DrawModule()
161{

Callers 1

mouseUpMethod · 0.45

Calls 1

TakeModuleMethod · 0.80

Tested by

no test coverage detected