Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_object_info.cc
| Show All 19 Lines | |||||
| #include "UI_resources.h" | #include "UI_resources.h" | ||||
| #include "node_geometry_util.hh" | #include "node_geometry_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void geo_node_object_info_declare(NodeDeclarationBuilder &b) | static void geo_node_object_info_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Object>("Object").hide_label(); | b.add_input<decl::Object>(N_("Object")).hide_label(); | ||||
| b.add_input<decl::Bool>("As Instance") | b.add_input<decl::Bool>(N_("As Instance")) | ||||
| .description( | .description( | ||||
| "Output the entire object as single instance. " | N_("Output the entire object as single instance. " | ||||
| "This allows instancing non-geometry object types"); | "This allows instancing non-geometry object types")); | ||||
| b.add_output<decl::Vector>("Location"); | b.add_output<decl::Vector>(N_("Location")); | ||||
| b.add_output<decl::Vector>("Rotation"); | b.add_output<decl::Vector>(N_("Rotation")); | ||||
| b.add_output<decl::Vector>("Scale"); | b.add_output<decl::Vector>(N_("Scale")); | ||||
| b.add_output<decl::Geometry>("Geometry"); | b.add_output<decl::Geometry>(N_("Geometry")); | ||||
| } | } | ||||
| static void geo_node_object_info_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void geo_node_object_info_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "transform_space", UI_ITEM_R_EXPAND, nullptr, ICON_NONE); | uiItemR(layout, ptr, "transform_space", UI_ITEM_R_EXPAND, nullptr, ICON_NONE); | ||||
| } | } | ||||
| static void geo_node_object_info_exec(GeoNodeExecParams params) | static void geo_node_object_info_exec(GeoNodeExecParams params) | ||||
| ▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines | |||||