Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
| Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | |||||
| ICON_AUTOMERGE_OFF, | ICON_AUTOMERGE_OFF, | ||||
| "Weld", | "Weld", | ||||
| "Find groups of vertices closer than dist and merge them together"}, | "Find groups of vertices closer than dist and merge them together"}, | ||||
| {eModifierType_Wireframe, | {eModifierType_Wireframe, | ||||
| "WIREFRAME", | "WIREFRAME", | ||||
| ICON_MOD_WIREFRAME, | ICON_MOD_WIREFRAME, | ||||
| "Wireframe", | "Wireframe", | ||||
| "Convert faces into thickened edges"}, | "Convert faces into thickened edges"}, | ||||
| {eModifierType_SmoothContour, | |||||
| "SMOOTHCONTOUR", | |||||
| ICON_DOT /* dummy! */, | |||||
| "Smooth Contour", | |||||
| "Ensure smooth contour for feature line visibility check"}, | |||||
| {0, "", 0, N_("Deform"), ""}, | {0, "", 0, N_("Deform"), ""}, | ||||
| {eModifierType_Armature, | {eModifierType_Armature, | ||||
| "ARMATURE", | "ARMATURE", | ||||
| ICON_MOD_ARMATURE, | ICON_MOD_ARMATURE, | ||||
| "Armature", | "Armature", | ||||
| "Deform the shape using an armature object"}, | "Deform the shape using an armature object"}, | ||||
| {eModifierType_Cast, | {eModifierType_Cast, | ||||
| "CAST", | "CAST", | ||||
| ▲ Show 20 Lines • Show All 1,984 Lines • ▼ Show 20 Lines | |||||
| prop = RNA_def_property(srna, "voxel_amount", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "voxel_amount", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_ui_text(prop, "Voxel Amount", "Approximate number of voxels along one axis"); | RNA_def_property_ui_text(prop, "Voxel Amount", "Approximate number of voxels along one axis"); | ||||
| RNA_def_property_range(prop, 0, INT_MAX); | RNA_def_property_range(prop, 0, INT_MAX); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| RNA_define_lib_overridable(false); | RNA_define_lib_overridable(false); | ||||
| } | } | ||||
| static void rna_def_modifier_smoothcontour(BlenderRNA *brna) | |||||
| { | |||||
| StructRNA *srna; | |||||
| PropertyRNA *prop; | |||||
| srna = RNA_def_struct(brna, "SmoothContourModifier", "Modifier"); | |||||
| RNA_def_struct_ui_text(srna, "Smooth Contour Modifier", ""); | |||||
| RNA_def_struct_sdna(srna, "SmoothContourModifierData"); | |||||
| RNA_def_struct_ui_icon(srna, ICON_MOD_MESHDEFORM); | |||||
| prop = RNA_def_property(srna, "do_tri", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SMOOTHCONTOUR_TRIANG); | |||||
| RNA_def_property_ui_text(prop, "b)", "Triangulate the mesh"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "do_ff_bb_split", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SMOOTHCONTOUR_FF_SPLIT); | |||||
| RNA_def_property_ui_text(prop, "Split", "Split inconsitent FF/BB edges"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "do_cusp_dect", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SMOOTHCONTOUR_CUSP_D); | |||||
| RNA_def_property_ui_text(prop, "Cusp detetion", "Detect cusps and insert new edges"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "do_insert", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SMOOTHCONTOUR_FB_SPLIT); | |||||
| RNA_def_property_ui_text(prop, "FB split", "Split FB edges"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "do_cusp_insert", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SMOOTHCONTOUR_CUSP_I); | |||||
| RNA_def_property_ui_text(prop, "Cusp insertion", "Insert cusps from detection stage"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "do_rad_insert", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SMOOTHCONTOUR_RAD_I); | |||||
| RNA_def_property_ui_text(prop, "Radial edge insert", "Insert radial edges"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "do_rad_flip", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SMOOTHCONTOUR_RAD_FLIP); | |||||
| RNA_def_property_ui_text(prop, "Radial edge flip", "Do radial edge flipping"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "do_opti", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SMOOTHCONTOUR_OPTI); | |||||
| RNA_def_property_ui_text(prop, "Mesh optimization", "Try to eliminate inconsistent faces"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "camera_object", PROP_POINTER, PROP_NONE); | |||||
| RNA_def_property_pointer_sdna(prop, NULL, "camera_ob"); | |||||
| RNA_def_property_ui_text(prop, "Camera Object", "Object to use as camera location"); | |||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update"); | |||||
| prop = RNA_def_property(srna, "do_sel", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SMOOTHCONTOUR_SEL); | |||||
| RNA_def_property_ui_text(prop, "Select C verts", "Select contour verts for GP stroke creation"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| } | |||||
| void RNA_def_modifier(BlenderRNA *brna) | void RNA_def_modifier(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| /* data */ | /* data */ | ||||
| srna = RNA_def_struct(brna, "Modifier", NULL); | srna = RNA_def_struct(brna, "Modifier", NULL); | ||||
| RNA_def_struct_ui_text(srna, "Modifier", "Modifier affecting the geometry data of an object"); | RNA_def_struct_ui_text(srna, "Modifier", "Modifier affecting the geometry data of an object"); | ||||
| ▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
| rna_def_modifier_normaledit(brna); | rna_def_modifier_normaledit(brna); | ||||
| rna_def_modifier_meshseqcache(brna); | rna_def_modifier_meshseqcache(brna); | ||||
| rna_def_modifier_surfacedeform(brna); | rna_def_modifier_surfacedeform(brna); | ||||
| rna_def_modifier_weightednormal(brna); | rna_def_modifier_weightednormal(brna); | ||||
| rna_def_modifier_nodes(brna); | rna_def_modifier_nodes(brna); | ||||
| rna_def_modifier_mesh_to_volume(brna); | rna_def_modifier_mesh_to_volume(brna); | ||||
| rna_def_modifier_volume_displace(brna); | rna_def_modifier_volume_displace(brna); | ||||
| rna_def_modifier_volume_to_mesh(brna); | rna_def_modifier_volume_to_mesh(brna); | ||||
| rna_def_modifier_smoothcontour(brna); | |||||
| } | } | ||||
| #endif | #endif | ||||
| Context not available. | |||||