Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_actuator.c
| Show First 20 Lines • Show All 2,050 Lines • ▼ Show 20 Lines | static void rna_def_steering_actuator(BlenderRNA *brna) | ||||
| RNA_def_property_enum_items(prop, facingaxis_items); | RNA_def_property_enum_items(prop, facingaxis_items); | ||||
| RNA_def_property_ui_text(prop, "Axis", "Axis for automatic facing"); | RNA_def_property_ui_text(prop, "Axis", "Axis for automatic facing"); | ||||
| RNA_def_property_update(prop, NC_LOGIC, NULL); | RNA_def_property_update(prop, NC_LOGIC, NULL); | ||||
| prop = RNA_def_property(srna, "normal_up", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "normal_up", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", ACT_STEERING_NORMALUP); | RNA_def_property_boolean_sdna(prop, NULL, "flag", ACT_STEERING_NORMALUP); | ||||
| RNA_def_property_ui_text(prop, "N", "Use normal of the navmesh to set \"UP\" vector"); | RNA_def_property_ui_text(prop, "N", "Use normal of the navmesh to set \"UP\" vector"); | ||||
| RNA_def_property_update(prop, NC_LOGIC, NULL); | RNA_def_property_update(prop, NC_LOGIC, NULL); | ||||
| prop = RNA_def_property(srna, "lock_z_velocity", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", ACT_STEERING_LOCKZVEL); | |||||
| RNA_def_property_ui_text(prop, "Lock Z velocity", "Disable simulation of linear motion along Z axis"); | |||||
| RNA_def_property_update(prop, NC_LOGIC, NULL); | |||||
| } | } | ||||
| static void rna_def_mouse_actuator(BlenderRNA *brna) | static void rna_def_mouse_actuator(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static EnumPropertyItem prop_type_items[] = { | static EnumPropertyItem prop_type_items[] = { | ||||
| ▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines | |||||