mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-02 03:37:55 +03:00
Glitter Editor: Fixed Locus display
This commit is contained in:
@@ -809,16 +809,14 @@ namespace Glitter {
|
||||
Glitter::counter = counter;
|
||||
Glitter::random = random;
|
||||
|
||||
curr_frame = 0.0f;
|
||||
curr_frame = -1.0f;
|
||||
}
|
||||
|
||||
float_t remain_frame = next_frame - curr_frame;
|
||||
if (curr_frame == 0.0f)
|
||||
remain_frame += 1.0f;
|
||||
float_t delta_frame = 1.0f;
|
||||
while (true) {
|
||||
for (Effect*& i : effect_group->effects)
|
||||
if ((float_t)i->data.appear_time == curr_frame) {
|
||||
if ((float_t)i->data.appear_time == curr_frame + delta_frame) {
|
||||
LoadSceneEffect(i->data.name_hash);
|
||||
|
||||
if (!scene) {
|
||||
|
||||
@@ -1635,7 +1635,7 @@ static void glitter_editor_load_file(GlitterEditor* glt_edt, const char* path, c
|
||||
|
||||
eg->GetStartEndFrame(glt_edt->start_frame, glt_edt->end_frame);
|
||||
glt_edt->frame_counter = 0.0f;
|
||||
glt_edt->old_frame_counter = 0.0f;
|
||||
glt_edt->old_frame_counter = -1.0f;
|
||||
glt_edt->input_pause = true;
|
||||
glt_edt->counter = Glitter::counter;
|
||||
glt_edt->effect_group = eg;
|
||||
|
||||
Reference in New Issue
Block a user