From 4794cbe0bfda049777aeb75e0863989c8abbd294 Mon Sep 17 00:00:00 2001 From: YimingWu Date: Tue, 15 Apr 2025 08:43:03 +0800 Subject: [PATCH] Fix #137493: UI: Show "Active Spline" panel for surface types Previously in 5fe1051839d89ce2c88469ca424cb40799808bc4 the "Active Spline" panel was moved to the viewport but not updated correctly for it to display when active object is of "SURFACE" type. Now it will show for both curve and surface types. --- scripts/startup/bl_ui/space_view3d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/startup/bl_ui/space_view3d.py b/scripts/startup/bl_ui/space_view3d.py index 4a4abaa7e19..63d28019b77 100644 --- a/scripts/startup/bl_ui/space_view3d.py +++ b/scripts/startup/bl_ui/space_view3d.py @@ -8132,7 +8132,7 @@ class VIEW3D_PT_active_spline(Panel): @classmethod def poll(cls, context): ob = context.object - if ob is None or ob.type != 'CURVE' or ob.mode != 'EDIT': + if ob is None or ob.type not in {'CURVE', 'SURFACE'} or ob.mode != 'EDIT': return False curve = ob.data return curve.splines.active is not None