From 17a5db7303df52c319ea34cecea25442932cfe03 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Fri, 19 Mar 2021 15:30:41 -0400 Subject: Geometry Nodes: Add geometry instances data to the spreadsheet This patch adds data about instances generated by geometry nodes to the spreadsheet. The transform data is decomposed into position, rotation, and scale, and there is a name column to display the name of the instanced object or collection. This data is implemented specifically for the spreadsheet, because we're not sure that we want to expose this data as attributes for the use elsewhere. Differential Revision: https://developer.blender.org/D10770 --- release/scripts/startup/bl_ui/space_spreadsheet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'release/scripts/startup/bl_ui') diff --git a/release/scripts/startup/bl_ui/space_spreadsheet.py b/release/scripts/startup/bl_ui/space_spreadsheet.py index a12fe68c9a5..db9133456a7 100644 --- a/release/scripts/startup/bl_ui/space_spreadsheet.py +++ b/release/scripts/startup/bl_ui/space_spreadsheet.py @@ -34,7 +34,8 @@ class SPREADSHEET_HT_header(bpy.types.Header): layout.prop(space, "object_eval_state", text="") if space.object_eval_state != "ORIGINAL": layout.prop(space, "geometry_component_type", text="") - layout.prop(space, "attribute_domain", text="") + if space.geometry_component_type != 'INSTANCES': + layout.prop(space, "attribute_domain", text="") if used_id: layout.label(text=used_id.name, icon="OBJECT_DATA") -- cgit v1.2.3