Skip to content

Editor: Duplication of events #195

@eprikazchikov

Description

@eprikazchikov

Description

Engine duplicates update events during one frame in case of Viewport and Preview in split-screen mode.

Prerequisites

WorldEditor is run and a project is opened. Viewport and Preview widgets in split-screen mode.

Steps to Reproduce

  1. Create a sample NativeBehaviour code from the Additional Information section
  2. Launch the Game Mode (Ctrl+G)
  3. Press and release Arrow Up key on the keyboard
  4. Press and release Mouse Left
  5. Check the console output in the editor

Expected behavior:

Messages must appear only once

Actual behavior:

Message is doubled

Reproducibility:

The issue reproduces constantly

Versions

2019.3

Additional Information

    void update() {
        if(Input::isKeyDown(Input::KEY_UP)) {
            Log(Log::ERR) << "KeyPress";
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Next release is blocked by this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions