File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
src/beastfx/app/inputeditor Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1089,6 +1089,9 @@ public void addTraitSet(TraitSet trait) {
10891089 // TODO: this might not be a valid type conversion from TreeInterface to Tree
10901090 Tree tree = (Tree ) ((GenericTreeLikelihood ) d ).treeInput .get ();
10911091 tree .m_traitList .setValue (trait , tree );
1092+ List <TraitSet > list = new ArrayList <>();
1093+ list .add (trait );
1094+ tree .processTraits (list );
10921095 } catch (Exception e ) {
10931096 e .printStackTrace ();
10941097 }
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ public List<BEASTInterface> loadFile(File file) {
7171 selectedBEASTObjects .addAll (parser .calibrations );
7272 }
7373 }
74+ if (parser .traitSet != null ) {
75+ selectedBEASTObjects .add (parser .traitSet );
76+ }
7477 } catch (Exception ex ) {
7578 ex .printStackTrace ();
7679 Alert .showMessageDialog (null , "Loading of " + file .getPath () + " failed: " + ex .getMessage ());
You can’t perform that action at this time.
0 commit comments