Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_mesh.c
| Show First 20 Lines • Show All 4,018 Lines • ▼ Show 20 Lines | static void rna_def_mesh(BlenderRNA *brna) | ||||
| RNA_def_property_float_sdna(prop, NULL, "remesh_voxel_size"); | RNA_def_property_float_sdna(prop, NULL, "remesh_voxel_size"); | ||||
| RNA_def_property_range(prop, 0.0001f, FLT_MAX); | RNA_def_property_range(prop, 0.0001f, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0.0001f, FLT_MAX, 0.01, 4); | RNA_def_property_ui_range(prop, 0.0001f, FLT_MAX, 0.01, 4); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Voxel Size", | "Voxel Size", | ||||
| "Size of the voxel in object space used for volume evaluation. Lower " | "Size of the voxel in object space used for volume evaluation. Lower " | ||||
| "values preserve finer details"); | "values preserve finer details"); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| prop = RNA_def_property(srna, "remesh_voxel_adaptivity", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "remesh_voxel_adaptivity", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "remesh_voxel_adaptivity"); | RNA_def_property_float_sdna(prop, NULL, "remesh_voxel_adaptivity"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.01, 4); | RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.01, 4); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Adaptivity", | "Adaptivity", | ||||
| "Reduces the final face count by simplifying geometry where detail is not needed, " | "Reduces the final face count by simplifying geometry where detail is not needed, " | ||||
| "generating triangles. A value greater than 0 disables Fix Poles"); | "generating triangles. A value greater than 0 disables Fix Poles"); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| prop = RNA_def_property(srna, "use_remesh_fix_poles", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_remesh_fix_poles", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_FIX_POLES); | RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_FIX_POLES); | ||||
| RNA_def_property_ui_text(prop, "Fix Poles", "Produces less poles and a better topology flow"); | RNA_def_property_ui_text(prop, "Fix Poles", "Produces less poles and a better topology flow"); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| prop = RNA_def_property(srna, "use_remesh_preserve_volume", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_remesh_preserve_volume", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_REPROJECT_VOLUME); | RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_REPROJECT_VOLUME); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Preserve Volume", | "Preserve Volume", | ||||
| "Projects the mesh to preserve the volume and details of the original mesh"); | "Projects the mesh to preserve the volume and details of the original mesh"); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| prop = RNA_def_property(srna, "use_remesh_preserve_paint_mask", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_remesh_preserve_paint_mask", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_REPROJECT_PAINT_MASK); | RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_REPROJECT_PAINT_MASK); | ||||
| RNA_def_property_ui_text(prop, "Preserve Paint Mask", "Keep the current mask on the new mesh"); | RNA_def_property_ui_text(prop, "Preserve Paint Mask", "Keep the current mask on the new mesh"); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| prop = RNA_def_property(srna, "use_remesh_preserve_sculpt_face_sets", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_remesh_preserve_sculpt_face_sets", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_REPROJECT_SCULPT_FACE_SETS); | RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_REPROJECT_SCULPT_FACE_SETS); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Preserve Face Sets", "Keep the current Face Sets on the new mesh"); | prop, "Preserve Face Sets", "Keep the current Face Sets on the new mesh"); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| prop = RNA_def_property(srna, "use_remesh_preserve_vertex_colors", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_remesh_preserve_vertex_colors", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_REPROJECT_VERTEX_COLORS); | RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_REMESH_REPROJECT_VERTEX_COLORS); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Preserve Vertex Colors", "Keep the current vertex colors on the new mesh"); | prop, "Preserve Vertex Colors", "Keep the current vertex colors on the new mesh"); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| prop = RNA_def_property(srna, "remesh_mode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "remesh_mode", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "remesh_mode"); | RNA_def_property_enum_sdna(prop, NULL, "remesh_mode"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_mesh_remesh_mode_items); | RNA_def_property_enum_items(prop, rna_enum_mesh_remesh_mode_items); | ||||
| RNA_def_property_ui_text(prop, "Remesh Mode", ""); | RNA_def_property_ui_text(prop, "Remesh Mode", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| /* End remesh */ | /* End remesh */ | ||||
| /* Symmetry */ | /* Symmetry */ | ||||
| prop = RNA_def_property(srna, "use_mirror_x", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_mirror_x", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "symmetry", ME_SYMMETRY_X); | RNA_def_property_boolean_sdna(prop, NULL, "symmetry", ME_SYMMETRY_X); | ||||
| RNA_def_property_ui_text(prop, "X", "Enable symmetry in the X axis"); | RNA_def_property_ui_text(prop, "X", "Enable symmetry in the X axis"); | ||||
| RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | RNA_def_property_update(prop, 0, "rna_Mesh_update_draw"); | ||||
| ▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines | |||||