From 2613a2552dec7d236032f2b4a1dd367be9214df5 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 14 Mar 2022 14:21:10 +0100 Subject: Fix some properties missing in the UI for new Curves object type Missed some renames from HAIR to CURVES. --- release/scripts/startup/bl_ui/properties_object.py | 2 +- release/scripts/startup/bl_ui/space_node.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py index 5721e20f328..89f840306e1 100644 --- a/release/scripts/startup/bl_ui/properties_object.py +++ b/release/scripts/startup/bl_ui/properties_object.py @@ -193,7 +193,7 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel): obj = context.object obj_type = obj.type - is_geometry = (obj_type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT', 'VOLUME', 'HAIR', 'POINTCLOUD'}) + is_geometry = (obj_type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT', 'VOLUME', 'CURVES', 'POINTCLOUD'}) has_bounds = (is_geometry or obj_type in {'LATTICE', 'ARMATURE'}) is_wire = (obj_type in {'CAMERA', 'EMPTY'}) is_empty_image = (obj_type == 'EMPTY' and obj.empty_display_type == 'IMAGE') diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 7c88006a4d6..d7d905cb820 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -61,7 +61,7 @@ class NODE_HT_header(Header): layout.separator_spacer() types_that_support_material = {'MESH', 'CURVE', 'SURFACE', 'FONT', 'META', - 'GPENCIL', 'VOLUME', 'HAIR', 'POINTCLOUD'} + 'GPENCIL', 'VOLUME', 'CURVES', 'POINTCLOUD'} # disable material slot buttons when pinned, cannot find correct slot within id_from (T36589) # disable also when the selected object does not support materials has_material_slots = not snode.pin and ob_type in types_that_support_material -- cgit v1.2.3