From eff4641547f1074cf2b856e292aeea31fd2ffda8 Mon Sep 17 00:00:00 2001 From: nefrace Date: Mon, 6 Jun 2022 13:05:22 +0300 Subject: [PATCH] Version number updated --- plugin.cfg | 2 +- plugin.gd | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/plugin.cfg b/plugin.cfg index bff5242..165dcb6 100644 --- a/plugin.cfg +++ b/plugin.cfg @@ -3,5 +3,5 @@ name="CameraPreview" description="Allows user to create a small window inside the main editor view to preview selected Camera in 3d scene" author="Nefrace" -version="0.4" +version="0.5" script="plugin.gd" diff --git a/plugin.gd b/plugin.gd index e89d218..d223590 100644 --- a/plugin.gd +++ b/plugin.gd @@ -36,6 +36,12 @@ func _exit_tree(): if button_instance: button_instance.queue_free() +func _process(_delta): + if cam_selected and pcam: + pcam.fov = cam_selected.fov + pcam.projection = cam_selected.projection + pcam.size = cam_selected.size + func find_a_camera(root) -> Camera: if root is Camera: return root