editor: camera preview gui fix

This commit is contained in:
Turanszki Janos
2025-06-12 08:08:06 +02:00
parent 997ec4fca5
commit 9e6fd9f3c3
+1
View File
@@ -14,6 +14,7 @@ void CameraPreview::RenderPreview()
{
renderpath.camera = camera;
scale_local.y = scale_local.x * renderpath.camera->height / renderpath.camera->width;
scale = scale_local;
if (!camera->render_to_texture.rendertarget_render.IsValid())
{
renderpath.setSceneUpdateEnabled(false); // we just view our scene with this that's updated by the main rernderpath