Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object_api.c
| Context not available. | |||||
| static const EnumPropertyItem space_items[] = { | static const EnumPropertyItem space_items[] = { | ||||
| {CONSTRAINT_SPACE_WORLD, "WORLD", 0, "World Space", | {CONSTRAINT_SPACE_WORLD, "WORLD", 0, "World Space", | ||||
| "The most gobal space in Blender"}, | "The most global space in Blender"}, | ||||
| {CONSTRAINT_SPACE_POSE, "POSE", 0, "Pose Space", | {CONSTRAINT_SPACE_POSE, "POSE", 0, "Pose Space", | ||||
| "The pose space of a bone (its armature's object space)"}, | "The pose space of a bone (its armature's object space)"}, | ||||
| {CONSTRAINT_SPACE_PARLOCAL, "LOCAL_WITH_PARENT", 0, "Local With Parent", | {CONSTRAINT_SPACE_PARLOCAL, "LOCAL_WITH_PARENT", 0, "Local With Parent", | ||||
| Context not available. | |||||
| func = RNA_def_function(srna, "to_mesh", "rna_Object_to_mesh"); | func = RNA_def_function(srna, "to_mesh", "rna_Object_to_mesh"); | ||||
| RNA_def_function_ui_description(func, "Create a Mesh data-block with modifiers applied"); | RNA_def_function_ui_description(func, "Create a Mesh data-block with modifiers applied"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_CONTEXT); | ||||
| parm = RNA_def_pointer(func, "depsgraph", "Depsgraph", "Dependency Graph", "Evaluated dependency graph within wich to evaluate modifiers"); | parm = RNA_def_pointer(func, "depsgraph", "Depsgraph", "Dependency Graph", "Evaluated dependency graph within which to evaluate modifiers"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); | ||||
| parm = RNA_def_boolean(func, "apply_modifiers", 0, "", "Apply modifiers"); | parm = RNA_def_boolean(func, "apply_modifiers", 0, "", "Apply modifiers"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| Context not available. | |||||