Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
| Show First 20 Lines • Show All 1,203 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static const EnumPropertyItem *rna_SpaceImageEditor_pivot_itemf( | static const EnumPropertyItem *rna_SpaceImageEditor_pivot_itemf( | ||||
| bContext *UNUSED(C), PointerRNA *ptr, | bContext *UNUSED(C), PointerRNA *ptr, | ||||
| PropertyRNA *UNUSED(prop), bool *UNUSED(r_free)) | PropertyRNA *UNUSED(prop), bool *UNUSED(r_free)) | ||||
| { | { | ||||
| static const EnumPropertyItem pivot_items[] = { | static const EnumPropertyItem pivot_items[] = { | ||||
| {V3D_AROUND_CENTER_BOUNDS, "CENTER", ICON_ROTATE, "Bounding Box Center", ""}, | {V3D_AROUND_CENTER_BOUNDS, "CENTER", ICON_ROTATE, "Bounding Box Center", ""}, | ||||
| {V3D_AROUND_CENTER_MEAN, "MEDIAN", ICON_ROTATECENTER, "Median Point", ""}, | {V3D_AROUND_CENTER_MEAN, "MEAN", ICON_ROTATECENTER, "Mean Point", ""}, | ||||
| {V3D_AROUND_CURSOR, "CURSOR", ICON_CURSOR, "2D Cursor", ""}, | {V3D_AROUND_CURSOR, "CURSOR", ICON_CURSOR, "2D Cursor", ""}, | ||||
| {V3D_AROUND_LOCAL_ORIGINS, "INDIVIDUAL_ORIGINS", ICON_ROTATECOLLECTION, | {V3D_AROUND_LOCAL_ORIGINS, "INDIVIDUAL_ORIGINS", ICON_ROTATECOLLECTION, | ||||
| "Individual Origins", "Pivot around each selected island's own median point"}, | "Individual Origins", "Pivot around each selected island's own mean point"}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| SpaceImage *sima = (SpaceImage *)ptr->data; | SpaceImage *sima = (SpaceImage *)ptr->data; | ||||
| if (sima->mode == SI_MODE_PAINT) | if (sima->mode == SI_MODE_PAINT) | ||||
| return rna_enum_transform_pivot_items_full; | return rna_enum_transform_pivot_items_full; | ||||
| else | else | ||||
| ▲ Show 20 Lines • Show All 2,779 Lines • ▼ Show 20 Lines | static void rna_def_space_graph(BlenderRNA *brna) | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| /* this is basically the same as the one for the 3D-View, but with some entries omitted */ | /* this is basically the same as the one for the 3D-View, but with some entries omitted */ | ||||
| static const EnumPropertyItem gpivot_items[] = { | static const EnumPropertyItem gpivot_items[] = { | ||||
| {V3D_AROUND_CENTER_BOUNDS, "BOUNDING_BOX_CENTER", ICON_ROTATE, "Bounding Box Center", ""}, | {V3D_AROUND_CENTER_BOUNDS, "BOUNDING_BOX_CENTER", ICON_ROTATE, "Bounding Box Center", ""}, | ||||
| {V3D_AROUND_CURSOR, "CURSOR", ICON_CURSOR, "2D Cursor", ""}, | {V3D_AROUND_CURSOR, "CURSOR", ICON_CURSOR, "2D Cursor", ""}, | ||||
| {V3D_AROUND_LOCAL_ORIGINS, "INDIVIDUAL_ORIGINS", ICON_ROTATECOLLECTION, "Individual Centers", ""}, | {V3D_AROUND_LOCAL_ORIGINS, "INDIVIDUAL_ORIGINS", ICON_ROTATECOLLECTION, "Individual Centers", ""}, | ||||
| /*{V3D_AROUND_CENTER_MEAN, "MEDIAN_POINT", 0, "Median Point", ""}, */ | /*{V3D_AROUND_CENTER_MEAN, "MEAN_POINT", 0, "Mean Point", ""}, */ | ||||
| /*{V3D_AROUND_ACTIVE, "ACTIVE_ELEMENT", 0, "Active Element", ""}, */ | /*{V3D_AROUND_ACTIVE, "ACTIVE_ELEMENT", 0, "Active Element", ""}, */ | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| srna = RNA_def_struct(brna, "SpaceGraphEditor", "Space"); | srna = RNA_def_struct(brna, "SpaceGraphEditor", "Space"); | ||||
| RNA_def_struct_sdna(srna, "SpaceIpo"); | RNA_def_struct_sdna(srna, "SpaceIpo"); | ||||
| RNA_def_struct_ui_text(srna, "Space Graph Editor", "Graph Editor space data"); | RNA_def_struct_ui_text(srna, "Space Graph Editor", "Graph Editor space data"); | ||||
| ▲ Show 20 Lines • Show All 891 Lines • ▼ Show 20 Lines | static void rna_def_space_clip(BlenderRNA *brna) | ||||
| }; | }; | ||||
| static const EnumPropertyItem pivot_items[] = { | static const EnumPropertyItem pivot_items[] = { | ||||
| {V3D_AROUND_CENTER_BOUNDS, "BOUNDING_BOX_CENTER", ICON_ROTATE, "Bounding Box Center", | {V3D_AROUND_CENTER_BOUNDS, "BOUNDING_BOX_CENTER", ICON_ROTATE, "Bounding Box Center", | ||||
| "Pivot around bounding box center of selected object(s)"}, | "Pivot around bounding box center of selected object(s)"}, | ||||
| {V3D_AROUND_CURSOR, "CURSOR", ICON_CURSOR, "2D Cursor", "Pivot around the 2D cursor"}, | {V3D_AROUND_CURSOR, "CURSOR", ICON_CURSOR, "2D Cursor", "Pivot around the 2D cursor"}, | ||||
| {V3D_AROUND_LOCAL_ORIGINS, "INDIVIDUAL_ORIGINS", ICON_ROTATECOLLECTION, | {V3D_AROUND_LOCAL_ORIGINS, "INDIVIDUAL_ORIGINS", ICON_ROTATECOLLECTION, | ||||
| "Individual Origins", "Pivot around each object's own origin"}, | "Individual Origins", "Pivot around each object's own origin"}, | ||||
| {V3D_AROUND_CENTER_MEAN, "MEDIAN_POINT", ICON_ROTATECENTER, "Median Point", | {V3D_AROUND_CENTER_MEAN, "MEAN_POINT", ICON_ROTATECENTER, "Mean Point", | ||||
| "Pivot around the median point of selected objects"}, | "Pivot around the mean point of selected objects"}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| srna = RNA_def_struct(brna, "SpaceClipEditor", "Space"); | srna = RNA_def_struct(brna, "SpaceClipEditor", "Space"); | ||||
| RNA_def_struct_sdna(srna, "SpaceClip"); | RNA_def_struct_sdna(srna, "SpaceClip"); | ||||
| RNA_def_struct_ui_text(srna, "Space Clip Editor", "Clip editor space data"); | RNA_def_struct_ui_text(srna, "Space Clip Editor", "Clip editor space data"); | ||||
| /* movieclip */ | /* movieclip */ | ||||
| ▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines | |||||