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"
 | 
					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
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user