Commit 803ad61a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Motion tracker: don't switch to real time analysis on reset, add None type to...

Motion tracker: don't switch to real time analysis on reset, add None type to blur and make it default
parent 5f2d557d
......@@ -19,17 +19,17 @@
<paramlistdisplay>Rectangle,Ellipse,Arrow</paramlistdisplay>
<name>Frame shape</name>
</parameter>
<parameter type="constant" name="shape_width" max="100" min="-1" default="1" suffix="pixels">
<parameter type="constant" name="shape_width" max="100" min="-1" default="6" suffix="pixels">
<name>Shape width</name>
</parameter>
<parameter type="color" name="shape_color" default="0xff0000ff">
<name>Shape color</name>
</parameter>
<parameter type="constant" name="blur" max="200" min="0" default="5">
<parameter type="constant" name="blur" max="200" min="0" default="20">
<name>Blur</name>
</parameter>
<parameter type="list" name="blur_type" default="2" paramlist="0;1;2;3">
<paramlistdisplay>Median Blur,Gaussian Blur,Pixelate,Opaque fill</paramlistdisplay>
<parameter type="list" name="blur_type" default="4" paramlist="0;1;2;3;4">
<paramlistdisplay>Median Blur,Gaussian Blur,Pixelate,Opaque fill,None</paramlistdisplay>
<name>Blur type</name>
</parameter>
<parameter type="hidden" name="modelsfolder" default="">
......
......@@ -118,9 +118,9 @@ ButtonParamWidget::ButtonParamWidget(std::shared_ptr<AssetParameterModel> model,
current = defaultValue;
}
}
values << QPair<QString, QVariant>(QString("rect"),current);
//values << QPair<QString, QVariant>(QString("rect"),current);
//values << QPair<QString, QVariant>(QString("_reset"),1);
values << QPair<QString, QVariant>(m_keyParam,current);
values << QPair<QString, QVariant>(QString("_reset"),1);
} else {
values << QPair<QString, QVariant>(m_keyParam,defaultValue);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment