floatauto_type = FloatAuto::SMOOTH;
red = green = blue = 0;
+ red_max = green_max = blue_max = 0;
+ use_max = 0;
}
LocalSession::~LocalSession()
preview_end = that->preview_end;
red = that->red;
green = that->green;
+ blue = that->blue;
+ red_max = that->red_max;
+ green_max = that->green_max;
+ blue_max = that->blue_max;
+ use_max = that->use_max;
for (int i = 0; i < AUTOGROUPTYPE_COUNT; i++) {
automation_mins[i] = that->automation_mins[i];
automation_maxs[i] = that->automation_maxs[i];
}
floatauto_type = that->floatauto_type;
-
- blue = that->blue;
}
void LocalSession::save_xml(FileXML *file, double start)
file->tag.set_property("RED", red);
file->tag.set_property("GREEN", green);
file->tag.set_property("BLUE", blue);
+ file->tag.set_property("RED_MAX", red_max);
+ file->tag.set_property("GREEN_MAX", green_max);
+ file->tag.set_property("BLUE_MAX", blue_max);
+ file->tag.set_property("USE_MAX", use_max);
for (int i = 0; i < AUTOGROUPTYPE_COUNT; i++) {
if (!Automation::autogrouptypes_fixedrange[i]) {
red = that->red;
green = that->green;
blue = that->blue;
+ red_max = that->red_max;
+ green_max = that->green_max;
+ blue_max = that->blue_max;
}
red = file->tag.get_property("RED", red);
green = file->tag.get_property("GREEN", green);
blue = file->tag.get_property("BLUE", blue);
-
+ red_max = file->tag.get_property("RED_MAX", red_max);
+ green_max = file->tag.get_property("GREEN_MAX", green_max);
+ blue_max = file->tag.get_property("BLUE_MAX", blue_max);
+ use_max = file->tag.get_property("USE_MAX", use_max);
for (int i = 0; i < AUTOGROUPTYPE_COUNT; i++) {
if (!Automation::autogrouptypes_fixedrange[i]) {
red = defaults->get("RED", 0.0);
green = defaults->get("GREEN", 0.0);
blue = defaults->get("BLUE", 0.0);
+ red_max = defaults->get("RED_MAX", 0.0);
+ green_max = defaults->get("GREEN_MAX", 0.0);
+ blue_max = defaults->get("BLUE_MAX", 0.0);
+ use_max = defaults->get("USE_MAX", 0);
for (int i = 0; i < AUTOGROUPTYPE_COUNT; i++) {
if (!Automation::autogrouptypes_fixedrange[i]) {
defaults->update("RED", red);
defaults->update("GREEN", green);
defaults->update("BLUE", blue);
+ defaults->update("RED_MAX", red_max);
+ defaults->update("GREEN_MAX", green_max);
+ defaults->update("BLUE_MAX", blue_max);
+ defaults->update("USE_MAX", use_max);
for (int i = 0; i < AUTOGROUPTYPE_COUNT; i++) {
if (!Automation::autogrouptypes_fixedrange[i]) {