Changeset 1255 for cpp/frams


Ignore:
Timestamp:
06/22/23 03:31:05 (17 months ago)
Author:
Maciej Komosinski
Message:

structview (Canvas and GL) not resetting view when switching between genotype development checkpoints

Location:
cpp/frams/userinput
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/userinput/modelcheckpoints.cpp

    r999 r1255  
    8383                if (current_index < mod_checkpoints->getCheckpointCount())
    8484                {
    85                         model_view.showModel(mod_checkpoints->getCheckpoint(i));
     85                        model_view.showModel(mod_checkpoints->getCheckpoint(i),false);
    8686                        enableSelection(false);
    8787                }
    8888                else
    8989                {
    90                         model_view.showModel(mod);
     90                        model_view.showModel(mod, false);
    9191                        enableSelection(true);
    9292                }
     
    9494}
    9595
    96 int ModelCheckpointSupport::showModel(const Model *m)
     96int ModelCheckpointSupport::showModel(const Model *m, bool reset_view)
    9797{
    9898        freeModel();
    99         return model_view.showModel(m);
     99        return model_view.showModel(m, reset_view);
    100100}
    101101
  • cpp/frams/userinput/modelcheckpoints.h

    r741 r1255  
    4343        SString checkpointHint();
    4444
    45         int showGeno(const Geno*, bool use_checkpoints);
    46         int showModel(const Model *m);
    47         Model *getModel();
    48         ModelSelection& getModelSelection();
     45        int showGeno(const Geno*, bool use_checkpoints) override;
     46        int showModel(const Model *m, bool reset_view=true) override;
     47        Model *getModel() override;
     48        ModelSelection& getModelSelection() override;
    4949        CheckpointsMode getCheckpointsMode();
    5050};
Note: See TracChangeset for help on using the changeset viewer.