mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
VST3 hosting fix.
This commit is contained in:
parent
68fad9f35a
commit
4e8df54b4f
1 changed files with 2 additions and 9 deletions
|
|
@ -1995,10 +1995,7 @@ public:
|
|||
//==============================================================================
|
||||
AudioProcessorEditor* createEditor() override
|
||||
{
|
||||
if (view == nullptr)
|
||||
view = tryCreatingView();
|
||||
|
||||
if (view != nullptr)
|
||||
if (IPlugView* view = tryCreatingView())
|
||||
return new VST3PluginWindow (this, view);
|
||||
|
||||
return nullptr;
|
||||
|
|
@ -2006,9 +2003,7 @@ public:
|
|||
|
||||
bool hasEditor() const override
|
||||
{
|
||||
if (view == nullptr)
|
||||
view = tryCreatingView();
|
||||
|
||||
ComSmartPtr<IPlugView> view (tryCreatingView());
|
||||
return view != nullptr;
|
||||
}
|
||||
|
||||
|
|
@ -2147,8 +2142,6 @@ private:
|
|||
ComSmartPtr<Vst::IConnectionPoint> componentConnection;
|
||||
ComSmartPtr<Vst::IConnectionPoint> editControllerConnection;
|
||||
|
||||
mutable ComSmartPtr<IPlugView> view;
|
||||
|
||||
/** The number of IO busses MUST match that of the plugin,
|
||||
even if there aren't enough channels to process,
|
||||
as very poorly specified by the Steinberg SDK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue