Page MenuHome

logicbricklinks.patch

File Metadata

Author
Balajee R C (balajeerc)
Created
Nov 13 2013, 3:02 PM

logicbricklinks.patch

Index: source/blender/makesrna/intern/rna_controller.c
===================================================================
--- source/blender/makesrna/intern/rna_controller.c (revision 39358)
+++ source/blender/makesrna/intern/rna_controller.c (working copy)
@@ -200,7 +200,18 @@
RNA_def_property_ui_text(prop, "Priority", "Mark controller for execution before all non-marked controllers (good for startup scripts)");
RNA_def_property_ui_icon(prop, ICON_BOOKMARKS, 1);
RNA_def_property_update(prop, NC_LOGIC, NULL);
-
+
+ prop= RNA_def_property(srna, "linked_actuators", PROP_COLLECTION, PROP_NONE);
+ RNA_def_property_collection_sdna(prop, NULL, "links", "totlinks");
+ RNA_def_property_struct_type(prop, "Actuator");
+ RNA_def_property_ui_text(prop, "linked_actuators", "Actuators linked to this controller");
+
+ prop= RNA_def_property(srna, "linked_sensors", PROP_COLLECTION, PROP_NONE);
+ RNA_def_property_collection_sdna(prop, NULL, "slinks", "totslinks");
+ RNA_def_property_struct_type(prop, "Sensor");
+ RNA_def_property_ui_text(prop, "linked_sensors", "Sensors linked to this controller");
+
+
/* State */
// array of OB_MAX_STATES
Index: source/blender/makesrna/intern/rna_sensor.c
===================================================================
--- source/blender/makesrna/intern/rna_sensor.c (revision 39358)
+++ source/blender/makesrna/intern/rna_sensor.c (working copy)
@@ -315,7 +315,12 @@
RNA_def_property_boolean_funcs(prop, NULL, "rna_Sensor_tap_set");
RNA_def_property_ui_text(prop, "Tap", "Trigger controllers only for an instant, even while the sensor remains true");
RNA_def_property_update(prop, NC_LOGIC, NULL);
-
+
+ prop= RNA_def_property(srna, "linked_controllers", PROP_COLLECTION, PROP_NONE);
+ RNA_def_property_collection_sdna(prop, NULL, "links", "totlinks");
+ RNA_def_property_struct_type(prop, "Controller");
+ RNA_def_property_ui_text(prop, "linked_controllers", "Controllers linked to this sensor");
+
RNA_api_sensor(srna);
}

Event Timeline