forked from bartvdbraak/blender
Logic UI bugfix: [#24628] two specific tooltips of keyboard sensor reversed
I also changed the order of them (target and log toggle) in the UI to match 2.49
This commit is contained in:
parent
43e6ccd57b
commit
f4912b933e
@ -3365,8 +3365,8 @@ static void draw_sensor_keyboard(uiLayout *layout, PointerRNA *ptr)
|
||||
uiItemR(row, ptr, "modifier_key_2", UI_ITEM_R_EVENT, "", 0);
|
||||
|
||||
RNA_pointer_create((ID *)ob, &RNA_GameObjectSettings, ob, &settings_ptr);
|
||||
uiItemPointerR(layout, ptr, "target", &settings_ptr, "properties", NULL, 0);
|
||||
uiItemPointerR(layout, ptr, "log", &settings_ptr, "properties", NULL, 0);
|
||||
uiItemPointerR(layout, ptr, "target", &settings_ptr, "properties", NULL, 0);
|
||||
}
|
||||
|
||||
static void draw_sensor_message(uiLayout *layout, PointerRNA *ptr)
|
||||
|
@ -425,12 +425,12 @@ static void rna_def_keyboard_sensor(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "target", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "targetName");
|
||||
RNA_def_property_ui_text(prop, "Target", "Property that indicates whether to log keystrokes as a string");
|
||||
RNA_def_property_ui_text(prop, "Target", "Property that receive the keystrokes in case a string is logged");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "log", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "toggleName");
|
||||
RNA_def_property_ui_text(prop, "Log Toggle", "Property that receive the keystrokes in case a string is logged");
|
||||
RNA_def_property_ui_text(prop, "Log Toggle", "Property that indicates whether to log keystrokes as a string");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "use_all_keys", PROP_BOOLEAN, PROP_NONE);
|
||||
|
Loading…
Reference in New Issue
Block a user