tobyfolds2206 / eepe

Automatically exported from code.google.com/p/eepe
0 stars 0 forks source link

Mixers and templates #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What feature/option would you like to have?
1.Applying a template should delete previous mixers

What is the expected output?
Creating a new model automatically generate 4 mixers for Ail Thr Rud and Ele
When applying a template (ie Simple 4 CH) mixers get duplicated for each channel
Each time a template is applied mixers get added and not substituted.

What version of the product are you using? On what operating system?
eepe R274 linux

Please provide any additional information below.

Original issue reported on code.google.com by romolo.m...@gmail.com on 11 Oct 2011 at 4:58

GoogleCodeExporter commented 8 years ago
The following patch avoid duplicate mixers, 
simple 4 channel template if applied to a model with existing mixers, clear 
mixers.

--- modeledit.cpp~      2011-10-22 16:25:17.637519015 +0200
+++ modeledit.cpp       2011-10-22 16:18:12.000000000 +0200
@@ -2529,6 +2529,9 @@
     //Simple 4-Ch
     if(idx==j++)
     {
+        if (md->destCh) {
+            clearMixes();
+        }
         md=setDest(ICC(STK_RUD));  md->srcRaw=CM(STK_RUD);  md->weight=100;
         md=setDest(ICC(STK_ELE));  md->srcRaw=CM(STK_ELE);  md->weight=100;
         md=setDest(ICC(STK_THR));  md->srcRaw=CM(STK_THR);  md->weight=100;

Original comment by romolo.m...@gmail.com on 22 Oct 2011 at 2:28

GoogleCodeExporter commented 8 years ago
Fixed, please close

Original comment by romolo.m...@gmail.com on 13 Nov 2011 at 2:07