Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_transform.c
| Show First 20 Lines • Show All 1,248 Lines • ▼ Show 20 Lines | static const EnumPropertyItem prop_set_center_types[] = { | ||||
| {ORIGIN_TO_CENTER_OF_MASS_SURFACE, "ORIGIN_CENTER_OF_MASS", 0, "Origin to Center of Mass (Surface)", | {ORIGIN_TO_CENTER_OF_MASS_SURFACE, "ORIGIN_CENTER_OF_MASS", 0, "Origin to Center of Mass (Surface)", | ||||
| "Calculate the center of mass from the surface area"}, | "Calculate the center of mass from the surface area"}, | ||||
| {ORIGIN_TO_CENTER_OF_MASS_VOLUME, "ORIGIN_CENTER_OF_VOLUME", 0, "Origin to Center of Mass (Volume)", | {ORIGIN_TO_CENTER_OF_MASS_VOLUME, "ORIGIN_CENTER_OF_VOLUME", 0, "Origin to Center of Mass (Volume)", | ||||
| "Calculate the center of mass from the volume (must be manifold geometry with consistent normals)"}, | "Calculate the center of mass from the volume (must be manifold geometry with consistent normals)"}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| static const EnumPropertyItem prop_set_bounds_types[] = { | static const EnumPropertyItem prop_set_bounds_types[] = { | ||||
| {V3D_AROUND_CENTER_MEAN, "MEDIAN", 0, "Median Center", ""}, | {V3D_AROUND_CENTER_MEAN, "MEAN", 0, "Mean Center", ""}, | ||||
| {V3D_AROUND_CENTER_BOUNDS, "BOUNDS", 0, "Bounds Center", ""}, | {V3D_AROUND_CENTER_BOUNDS, "BOUNDS", 0, "Bounds Center", ""}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Set Origin"; | ot->name = "Set Origin"; | ||||
| ot->description = "Set the object's origin, by either moving the data, or set to center of data, or use 3D cursor"; | ot->description = "Set the object's origin, by either moving the data, or set to center of data, or use 3D cursor"; | ||||
| ot->idname = "OBJECT_OT_origin_set"; | ot->idname = "OBJECT_OT_origin_set"; | ||||
| ▲ Show 20 Lines • Show All 395 Lines • Show Last 20 Lines | |||||