Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
| Context not available. | |||||
| #include "ED_render.h" | #include "ED_render.h" | ||||
| #include "ED_transform.h" | #include "ED_transform.h" | ||||
| #include "ED_view3d.h" | |||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| Context not available. | |||||
| #endif | #endif | ||||
| const EnumPropertyItem rna_enum_v3d_cursor_orientation_items_full[] = { | |||||
| {V3D_CURSOR_ORIENT_NONE, "NONE", 0, "None", "Leave orientation unchanged"}, | |||||
| {V3D_CURSOR_ORIENT_VIEW, "VIEW", 0, "View", "Orient to the viewport"}, | |||||
| {V3D_CURSOR_ORIENT_XFORM, "XFORM", 0, "Transform", "Orient to the current transform setting"}, | |||||
| {V3D_CURSOR_ORIENT_GEOM, "GEOM", 0, "Geometry", "Match the surface normal"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| const EnumPropertyItem rna_enum_transform_pivot_items_full[] = { | const EnumPropertyItem rna_enum_transform_pivot_items_full[] = { | ||||
| {V3D_AROUND_CENTER_BOUNDS, "BOUNDING_BOX_CENTER", ICON_PIVOT_BOUNDBOX, "Bounding Box Center", | {V3D_AROUND_CENTER_BOUNDS, "BOUNDING_BOX_CENTER", ICON_PIVOT_BOUNDBOX, "Bounding Box Center", | ||||
| "Pivot around bounding box center of selected object(s)"}, | "Pivot around bounding box center of selected object(s)"}, | ||||
| Context not available. | |||||
| RNA_def_property_range(prop, 0.0, 1.0); | RNA_def_property_range(prop, 0.0, 1.0); | ||||
| RNA_def_property_ui_range(prop, 0.0, 0.1, 0.01, 6); | RNA_def_property_ui_range(prop, 0.0, 0.1, 0.01, 6); | ||||
| /* 3D cursor */ | |||||
| prop = RNA_def_property(srna, "v3d_cursor_project", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "v3d_cursor_project", 0); | |||||
| RNA_def_property_ui_text(prop, "Surface Project", "Project onto the surface"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | |||||
| prop = RNA_def_property(srna, "v3d_cursor_orientation", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "v3d_cursor_orientation"); | |||||
| RNA_def_property_enum_items(prop, rna_enum_v3d_cursor_orientation_items_full); | |||||
| RNA_def_property_ui_text(prop, "Orientation", "Preset viewpoint to use"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | |||||
| /* Pivot Point */ | /* Pivot Point */ | ||||
| prop = RNA_def_property(srna, "transform_pivot_point", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "transform_pivot_point", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "transform_pivot_point"); | RNA_def_property_enum_sdna(prop, NULL, "transform_pivot_point"); | ||||
| Context not available. | |||||