diff options
-rw-r--r-- | source/blender/editors/space_logic/logic_window.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/editors/space_logic/logic_window.c b/source/blender/editors/space_logic/logic_window.c index 1a0aab75fb8..9f3fc53482a 100644 --- a/source/blender/editors/space_logic/logic_window.c +++ b/source/blender/editors/space_logic/logic_window.c @@ -1147,27 +1147,22 @@ static void draw_sensor_message(uiLayout *layout, PointerRNA *ptr) static void draw_sensor_mouse(uiLayout *layout, PointerRNA *ptr, bContext *C) { uiLayout *split, *split2; - - Object *ob = (Object *)ptr->id.data; PointerRNA main_ptr; split = uiLayoutSplit(layout, 0.8f, false); uiItemR(split, ptr, "mouse_event", 0, NULL, ICON_NONE); - if (RNA_enum_get(ptr, "mouse_event") == BL_SENS_MOUSE_MOUSEOVER_ANY) - { + if (RNA_enum_get(ptr, "mouse_event") == BL_SENS_MOUSE_MOUSEOVER_ANY) { uiItemR(split, ptr, "use_pulse", UI_ITEM_R_TOGGLE, NULL, ICON_NONE); split = uiLayoutSplit(layout, 0.3f, false); uiItemR(split, ptr, "use_material", 0, "", ICON_NONE); split2 = uiLayoutSplit(split, 0.7f, false); - if (RNA_enum_get(ptr, "use_material") == SENS_RAY_PROPERTY) - { + if (RNA_enum_get(ptr, "use_material") == SENS_RAY_PROPERTY) { uiItemR(split2, ptr, "property", 0, "", ICON_NONE); } - else - { + else { RNA_main_pointer_create(CTX_data_main(C), &main_ptr); uiItemPointerR(split2, ptr, "material", &main_ptr, "materials", "", ICON_MATERIAL_DATA); } |