mirror of
				https://github.com/nefrace/godot-camera-preview.git
				synced 2025-11-04 07:49:19 +03:00 
			
		
		
		
	Version number updated
This commit is contained in:
		@ -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"
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user