Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object.c
| Show All 24 Lines | |||||
| #include "DNA_brush_types.h" | #include "DNA_brush_types.h" | ||||
| #include "DNA_collection_types.h" | #include "DNA_collection_types.h" | ||||
| #include "DNA_customdata_types.h" | #include "DNA_customdata_types.h" | ||||
| #include "DNA_gpencil_modifier_types.h" | #include "DNA_gpencil_modifier_types.h" | ||||
| #include "DNA_lightprobe_types.h" | #include "DNA_lightprobe_types.h" | ||||
| #include "DNA_material_types.h" | #include "DNA_material_types.h" | ||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_meta_types.h" | #include "DNA_meta_types.h" | ||||
| #include "DNA_heightmap_types.h" | |||||
| #include "DNA_object_force_types.h" | #include "DNA_object_force_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_shader_fx_types.h" | #include "DNA_shader_fx_types.h" | ||||
| #include "DNA_workspace_types.h" | #include "DNA_workspace_types.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| ▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | const EnumPropertyItem rna_enum_object_mode_items[] = { | ||||
| ICON_WPAINT_HLT, | ICON_WPAINT_HLT, | ||||
| "Weight Paint", | "Weight Paint", | ||||
| "Grease Pencil Weight Paint Strokes"}, | "Grease Pencil Weight Paint Strokes"}, | ||||
| {OB_MODE_VERTEX_GPENCIL, | {OB_MODE_VERTEX_GPENCIL, | ||||
| "VERTEX_GPENCIL", | "VERTEX_GPENCIL", | ||||
| ICON_VPAINT_HLT, | ICON_VPAINT_HLT, | ||||
| "Vertex Paint", | "Vertex Paint", | ||||
| "Grease Pencil Vertex Paint Strokes"}, | "Grease Pencil Vertex Paint Strokes"}, | ||||
| {OB_MODE_SCULPT_HEIGHTMAP, | |||||
| "SCULPT_HEIGHTMAP", | |||||
| ICON_SCULPTMODE_HLT, | |||||
| "Sculpt Mode", | |||||
| "Sculpt Heightmap"}, | |||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| /* Same as above, but with names that distinguish grease pencil. */ | /* Same as above, but with names that distinguish grease pencil. */ | ||||
| const EnumPropertyItem rna_enum_workspace_object_mode_items[] = { | const EnumPropertyItem rna_enum_workspace_object_mode_items[] = { | ||||
| {OB_MODE_OBJECT, "OBJECT", ICON_OBJECT_DATAMODE, "Object Mode", ""}, | {OB_MODE_OBJECT, "OBJECT", ICON_OBJECT_DATAMODE, "Object Mode", ""}, | ||||
| {OB_MODE_EDIT, "EDIT", ICON_EDITMODE_HLT, "Edit Mode", ""}, | {OB_MODE_EDIT, "EDIT", ICON_EDITMODE_HLT, "Edit Mode", ""}, | ||||
| {OB_MODE_POSE, "POSE", ICON_POSE_HLT, "Pose Mode", ""}, | {OB_MODE_POSE, "POSE", ICON_POSE_HLT, "Pose Mode", ""}, | ||||
| Show All 22 Lines | const EnumPropertyItem rna_enum_workspace_object_mode_items[] = { | ||||
| ICON_VPAINT_HLT, | ICON_VPAINT_HLT, | ||||
| "Grease Pencil Vertex Paint", | "Grease Pencil Vertex Paint", | ||||
| "Grease Pencil Vertex Paint Strokes"}, | "Grease Pencil Vertex Paint Strokes"}, | ||||
| {OB_MODE_WEIGHT_GPENCIL, | {OB_MODE_WEIGHT_GPENCIL, | ||||
| "WEIGHT_GPENCIL", | "WEIGHT_GPENCIL", | ||||
| ICON_WPAINT_HLT, | ICON_WPAINT_HLT, | ||||
| "Grease Pencil Weight Paint", | "Grease Pencil Weight Paint", | ||||
| "Grease Pencil Weight Paint Strokes"}, | "Grease Pencil Weight Paint Strokes"}, | ||||
| {OB_MODE_SCULPT_HEIGHTMAP, | |||||
| "SCULPT_HEIGHTMAP", | |||||
| ICON_SCULPTMODE_HLT, | |||||
| "Sculpt Mode", | |||||
| "Sculpt Heightmap"}, | |||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| const EnumPropertyItem rna_enum_object_empty_drawtype_items[] = { | const EnumPropertyItem rna_enum_object_empty_drawtype_items[] = { | ||||
| {OB_PLAINAXES, "PLAIN_AXES", ICON_EMPTY_AXIS, "Plain Axes", ""}, | {OB_PLAINAXES, "PLAIN_AXES", ICON_EMPTY_AXIS, "Plain Axes", ""}, | ||||
| {OB_ARROWS, "ARROWS", ICON_EMPTY_ARROWS, "Arrows", ""}, | {OB_ARROWS, "ARROWS", ICON_EMPTY_ARROWS, "Arrows", ""}, | ||||
| {OB_SINGLE_ARROW, "SINGLE_ARROW", ICON_EMPTY_SINGLE_ARROW, "Single Arrow", ""}, | {OB_SINGLE_ARROW, "SINGLE_ARROW", ICON_EMPTY_SINGLE_ARROW, "Single Arrow", ""}, | ||||
| {OB_CIRCLE, "CIRCLE", ICON_MESH_CIRCLE, "Circle", ""}, | {OB_CIRCLE, "CIRCLE", ICON_MESH_CIRCLE, "Circle", ""}, | ||||
| ▲ Show 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | #define OBTYPE_CU_FONT \ | ||||
| OB_FONT, "FONT", ICON_OUTLINER_OB_FONT, "Text", "" \ | OB_FONT, "FONT", ICON_OUTLINER_OB_FONT, "Text", "" \ | ||||
| } | } | ||||
| const EnumPropertyItem rna_enum_object_type_items[] = { | const EnumPropertyItem rna_enum_object_type_items[] = { | ||||
| {OB_MESH, "MESH", ICON_OUTLINER_OB_MESH, "Mesh", ""}, | {OB_MESH, "MESH", ICON_OUTLINER_OB_MESH, "Mesh", ""}, | ||||
| OBTYPE_CU_CURVE, | OBTYPE_CU_CURVE, | ||||
| OBTYPE_CU_SURF, | OBTYPE_CU_SURF, | ||||
| {OB_MBALL, "META", ICON_OUTLINER_OB_META, "Metaball", ""}, | {OB_MBALL, "META", ICON_OUTLINER_OB_META, "Metaball", ""}, | ||||
| {OB_HEIGHTMAP, "HEIGHTMAP", ICON_GRID, "HeightMap", ""}, | |||||
| OBTYPE_CU_FONT, | OBTYPE_CU_FONT, | ||||
| {OB_HAIR, "HAIR", ICON_OUTLINER_OB_HAIR, "Hair", ""}, | {OB_HAIR, "HAIR", ICON_OUTLINER_OB_HAIR, "Hair", ""}, | ||||
| {OB_POINTCLOUD, "POINTCLOUD", ICON_OUTLINER_OB_POINTCLOUD, "Point Cloud", ""}, | {OB_POINTCLOUD, "POINTCLOUD", ICON_OUTLINER_OB_POINTCLOUD, "Point Cloud", ""}, | ||||
| {OB_VOLUME, "VOLUME", ICON_OUTLINER_OB_VOLUME, "Volume", ""}, | {OB_VOLUME, "VOLUME", ICON_OUTLINER_OB_VOLUME, "Volume", ""}, | ||||
| {OB_GPENCIL, "GPENCIL", ICON_OUTLINER_OB_GREASEPENCIL, "Grease Pencil", ""}, | {OB_GPENCIL, "GPENCIL", ICON_OUTLINER_OB_GREASEPENCIL, "Grease Pencil", ""}, | ||||
| {0, "", 0, NULL, NULL}, | {0, "", 0, NULL, NULL}, | ||||
| {OB_ARMATURE, "ARMATURE", ICON_OUTLINER_OB_ARMATURE, "Armature", ""}, | {OB_ARMATURE, "ARMATURE", ICON_OUTLINER_OB_ARMATURE, "Armature", ""}, | ||||
| {OB_LATTICE, "LATTICE", ICON_OUTLINER_OB_LATTICE, "Lattice", ""}, | {OB_LATTICE, "LATTICE", ICON_OUTLINER_OB_LATTICE, "Lattice", ""}, | ||||
| ▲ Show 20 Lines • Show All 313 Lines • ▼ Show 20 Lines | switch (ob->type) { | ||||
| case OB_CURVE: | case OB_CURVE: | ||||
| return &RNA_Curve; | return &RNA_Curve; | ||||
| case OB_SURF: | case OB_SURF: | ||||
| return &RNA_Curve; | return &RNA_Curve; | ||||
| case OB_FONT: | case OB_FONT: | ||||
| return &RNA_Curve; | return &RNA_Curve; | ||||
| case OB_MBALL: | case OB_MBALL: | ||||
| return &RNA_MetaBall; | return &RNA_MetaBall; | ||||
| case OB_HEIGHTMAP: | |||||
| return &RNA_HeightMap; | |||||
| case OB_LAMP: | case OB_LAMP: | ||||
| return &RNA_Light; | return &RNA_Light; | ||||
| case OB_CAMERA: | case OB_CAMERA: | ||||
| return &RNA_Camera; | return &RNA_Camera; | ||||
| case OB_LATTICE: | case OB_LATTICE: | ||||
| return &RNA_Lattice; | return &RNA_Lattice; | ||||
| case OB_ARMATURE: | case OB_ARMATURE: | ||||
| return &RNA_Armature; | return &RNA_Armature; | ||||
| ▲ Show 20 Lines • Show All 3,209 Lines • Show Last 20 Lines | |||||