fix upload .pano suffix, make first layer fixed when animating

This commit is contained in:
2018-03-10 19:26:32 +01:00
parent 660a7ea1ef
commit e5ad765fe1
3 changed files with 11 additions and 3 deletions

View File

@@ -727,9 +727,11 @@
<!-- timeline -->
<node height="100%" width="1" grow="1" dir="col" justify="flex-start">
<border color=".3 .3 .3 .4" height="50" width="100%" pad="10" dir="row">
<text text="Timeline: " font-face="arial" font-size="11" margin="8 10 0 0"/>
<text text="Timeline: " font-face="arial" font-size="11" margin="8 10 0 0"/>
<slider-h id="frames-slider" width="1" grow="1" margin="0 10 0 0"></slider-h>
<text id="timeline-frame" text="00" font-face="arial" font-size="30" margin="5 10 0 10"/>
<node width="30" margin="5 10 0 10">
<text id="timeline-frame" text="00" font-face="arial" font-size="30"/>
</node>
</border>
</node>
</node>

View File

@@ -31,7 +31,7 @@ void App::cloud_upload()
async_redraw();
async_end();
upload(path, doc_name, [this,pb](float p){
upload(path, doc_name + ".pano", [this,pb](float p){
async_start();
pb->m_progress->SetWidthP(p * 100.f);
async_redraw();

View File

@@ -601,6 +601,12 @@ void App::initLayout()
layers->handle_layer_opacity(l, .25f);
}
// First layer always visible
{
auto l = layers->get_layer_at(0);
layers->handle_layer_opacity(l, 1.0f);
}
if (frame_text)
{
char str[16];