Skip to content

Commit

Permalink
- fix plugin compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Oct 12, 2024
1 parent c74524c commit 0082207
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion currentGitHash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3735ffd29ed66c01805992b4fe0e574e29d00c5c
c74524c48743ccc455d802694a731daa94a1bf8e
2 changes: 1 addition & 1 deletion hi_backend/backend/currentGit.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PREVIOUS_HISE_COMMIT "3735ffd29ed66c01805992b4fe0e574e29d00c5c"
#define PREVIOUS_HISE_COMMIT "c74524c48743ccc455d802694a731daa94a1bf8e"
2 changes: 2 additions & 0 deletions hi_scripting/scripting/scriptnode/api/DspNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2438,11 +2438,13 @@ void HostHelpers::setNumDataObjectsFromValueTree(OpaqueNode& on, const ValueTree
});
}

#if USE_BACKEND
void DspNetworkListeners::DspNetworkGraphRootListener::onChangeStatic(DspNetworkGraphRootListener& l, NodeBase* n)
{
if(n != nullptr)
l.onRootChange(n);
}
#endif

bool OpaqueNetworkHolder::isPolyphonic() const
{ return false; }
Expand Down
2 changes: 2 additions & 0 deletions hi_scripting/scripting/scriptnode/api/StaticNodeWrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ TemplateNodeFactory::TemplateNodeFactory(DspNetwork* n) :
registerNodeRaw<node_templates::softbypass_switch<7>>();
registerNodeRaw<node_templates::softbypass_switch<8>>();

#if USE_BACKEND
auto fileTemplates = BackendDllManager::getAllNodeTemplates(n->getScriptProcessor()->getMainController_());

for(auto v: fileTemplates)
Expand All @@ -810,6 +811,7 @@ TemplateNodeFactory::TemplateNodeFactory(DspNetwork* n) :
return newNode;
});
}
#endif
}

int TemplateNodeFactory::Builder::addNode(int parent, const String& path, const String& id, int index)
Expand Down
2 changes: 1 addition & 1 deletion hi_scripting/scripting/scriptnode/ui/NodeComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ void NodeComponent::handlePopupMenuResult(int result)

juce::Colour NodeComponent::getOutlineColour() const
{
if (node->getRootNetwork()->getRootNode() == node)
if (node->getRootNetwork()->getRootNode() == node.get())
return dynamic_cast<const Processor*>(node->getScriptProcessor())->getColour();

auto& exceptionHandler = node->getRootNetwork()->getExceptionHandler();
Expand Down
4 changes: 4 additions & 0 deletions hi_scripting/scripting/scriptnode/ui/ParameterSlider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,7 @@ void ParameterSlider::updateRange(Identifier, var)

bool ParameterSlider::isInterestedInDragSource(const SourceDetails& details)
{
#if USE_BACKEND
if (details.sourceComponent == this)
return false;

Expand Down Expand Up @@ -1118,6 +1119,9 @@ bool ParameterSlider::isInterestedInDragSource(const SourceDetails& details)
return false;

return !isReadOnlyModulated;
#else
return false;
#endif
}

void ParameterSlider::paint(Graphics& g)
Expand Down

0 comments on commit 0082207

Please sign in to comment.