diff --git a/hi_scripting/scripting/api/ScriptComponentWrappers.cpp b/hi_scripting/scripting/api/ScriptComponentWrappers.cpp index a090807458..609bab6d20 100644 --- a/hi_scripting/scripting/api/ScriptComponentWrappers.cpp +++ b/hi_scripting/scripting/api/ScriptComponentWrappers.cpp @@ -326,6 +326,14 @@ void ScriptCreatedComponentWrapper::sourceHasChanged(ComplexDataUIBase*, Complex bool ScriptCreatedComponentWrapper::setMouseCursorFromParentPanel(ScriptComponent* sc, MouseCursor& c) { + if(auto sb = dynamic_cast(sc)) + { + auto mouseCursor = sb->getScriptObjectProperty(ScriptingApi::Content::ScriptButton::Properties::mouseCursor).toString(); + + if(mouseCursor != "ParentCursor") + return false; + } + if (sc == nullptr) return false;