Skip to content

Editor viewport global_canvas_transform auto reset when mouse hover on viewport #57898

Open
@yikescloud

Description

Godot version

3.4.2 stable[45eaa2d] steam version

System information

windows 10

Issue description

When use set_global_canvas_transform() on editor viewport, the editor viewport transform immediately
EditorTransform tscn - EditorCanvasTransform - Godot Engine-2022-02-10 16_20_52
But when any input(keyboard pressed, or mouse hovered on canvas editor), it will be reset as before. And the transform only change the item on canvas but not the hints( grids, axis..etc)

Steps to reproduce

Add a tool script then call
get_tree().edited_scene_root.get_viewport().set_global_canvas_transform()

Minimal reproduction project

EditorCanvasTransform.zip

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions