From 518e2484944bf79bf53adfb1f77815e60ca0f79a Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 28 May 2021 15:57:40 +0200 Subject: [PATCH] Add support for focusing on model when painting its vertices --- Source/Editor/Tools/VertexPainting.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Editor/Tools/VertexPainting.cs b/Source/Editor/Tools/VertexPainting.cs index ad2a93251..715f075ca 100644 --- a/Source/Editor/Tools/VertexPainting.cs +++ b/Source/Editor/Tools/VertexPainting.cs @@ -543,6 +543,9 @@ namespace FlaxEditor.Tools /// public override bool IsControllingMouse => IsPainting; + /// + public override BoundingSphere FocusBounds => _selectedModel?.Sphere ?? base.FocusBounds; + /// public override void Update(float dt) {