Remove heinous hack that is no longer required if we are
authorCarl Hetherington <carl@carlh.net>
Wed, 23 Nov 2011 19:29:30 +0000 (19:29 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 23 Nov 2011 19:29:30 +0000 (19:29 +0000)
not attempting to track setting modified status.

git-svn-id: svn://localhost/ardour2/branches/3.0@10800 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/vst_plugin.cc

index ae5e4897f8642eb4aa48d63039f9b747daf95ccd..26212ba03dd687dc9c5183a310606243a49ab33b 100644 (file)
@@ -99,15 +99,7 @@ void
 VSTPlugin::set_parameter (uint32_t which, float val)
 {
        _plugin->setParameter (_plugin, which, val);
-       
-       if (_state->want_program == -1 && _state->want_chunk == 0) {
-               /* Heinous hack: Plugin::set_parameter below updates the `modified' status of the
-                  current preset, but if _state->want_program is not -1 then there is a preset
-                  setup pending or in progress, which we don't want any `modified' updates
-                  to happen for.  So we only do this if _state->want_program is -1.
-               */
-               Plugin::set_parameter (which, val);
-       }
+       Plugin::set_parameter (which, val);
 }
 
 uint32_t