Blender  V3.3
rna_simulation.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include <stdlib.h>
8 
9 #include "RNA_define.h"
10 #include "RNA_enum_types.h"
11 
12 #include "DNA_simulation_types.h"
13 
14 #include "rna_internal.h"
15 
16 #ifdef RNA_RUNTIME
17 
18 #else
19 
20 static void rna_def_simulation(BlenderRNA *brna)
21 {
22  StructRNA *srna;
23  PropertyRNA *prop;
24 
25  srna = RNA_def_struct(brna, "Simulation", "ID");
26  RNA_def_struct_ui_text(srna, "Simulation", "Simulation data-block");
27  RNA_def_struct_ui_icon(srna, ICON_PHYSICS); /* TODO: Use correct icon. */
28 
29  prop = RNA_def_property(srna, "node_tree", PROP_POINTER, PROP_NONE);
30  RNA_def_property_pointer_sdna(prop, NULL, "nodetree");
33  RNA_def_property_ui_text(prop, "Node Tree", "Node tree defining the simulation");
34 
35  /* common */
37 }
38 
40 {
41  rna_def_simulation(brna);
42 }
43 
44 #endif
@ PROP_POINTER
Definition: RNA_types.h:64
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
Definition: RNA_types.h:312
@ PROP_PTR_NO_OWNERSHIP
Definition: RNA_types.h:257
@ PROP_NONE
Definition: RNA_types.h:126
void rna_def_animdata_common(StructRNA *srna)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2740
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
Definition: rna_define.c:1645
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
Definition: rna_define.c:1237
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
Definition: rna_define.c:1257
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
Definition: rna_define.c:1495
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
Definition: rna_define.c:1028
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
Definition: rna_define.c:1245
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
Definition: rna_define.c:1503
void RNA_def_simulation(BlenderRNA *brna)
static void rna_def_simulation(BlenderRNA *brna)