Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_pointcloud.c
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void rna_def_pointcloud(BlenderRNA *brna) | static void rna_def_pointcloud(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "PointCloud", "ID"); | srna = RNA_def_struct(brna, "PointCloud", "ID"); | ||||
| RNA_def_struct_ui_text(srna, "PointCloud", "Point cloud data-block"); | RNA_def_struct_ui_text(srna, "Point Cloud", "Point cloud data-block"); | ||||
| RNA_def_struct_ui_icon(srna, ICON_POINTCLOUD_DATA); | RNA_def_struct_ui_icon(srna, ICON_POINTCLOUD_DATA); | ||||
| /* geometry */ | /* geometry */ | ||||
| /* TODO: better solution for (*co)[3] parsing issue. */ | /* TODO: better solution for (*co)[3] parsing issue. */ | ||||
| RNA_define_verify_sdna(0); | RNA_define_verify_sdna(0); | ||||
| prop = RNA_def_property(srna, "points", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "points", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "co", "totpoint"); | RNA_def_property_collection_sdna(prop, NULL, "co", "totpoint"); | ||||
| RNA_def_property_struct_type(prop, "Point"); | RNA_def_property_struct_type(prop, "Point"); | ||||
| Show All 25 Lines | |||||