Version number updated
This commit is contained in:
parent
2255903ab2
commit
eff4641547
|
@ -3,5 +3,5 @@
|
||||||
name="CameraPreview"
|
name="CameraPreview"
|
||||||
description="Allows user to create a small window inside the main editor view to preview selected Camera in 3d scene"
|
description="Allows user to create a small window inside the main editor view to preview selected Camera in 3d scene"
|
||||||
author="Nefrace"
|
author="Nefrace"
|
||||||
version="0.4"
|
version="0.5"
|
||||||
script="plugin.gd"
|
script="plugin.gd"
|
||||||
|
|
|
@ -36,6 +36,12 @@ func _exit_tree():
|
||||||
if button_instance:
|
if button_instance:
|
||||||
button_instance.queue_free()
|
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:
|
func find_a_camera(root) -> Camera:
|
||||||
if root is Camera:
|
if root is Camera:
|
||||||
return root
|
return root
|
||||||
|
|
Loading…
Reference in New Issue