incorrect rna type for the BGE ui.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 25 Mar 2011 14:32:47 +0000 (14:32 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 25 Mar 2011 14:32:47 +0000 (14:32 +0000)
source/blender/editors/space_logic/logic_window.c

index 8cbe56c852f8abfe8154c960b0393c7bbe98c96e..66e19cf04003ef487a3d171a59c4bb179d494551 100644 (file)
@@ -3303,7 +3303,7 @@ static void draw_sensor_collision(uiLayout *layout, PointerRNA *ptr, bContext *C
        uiItemR(row, ptr, "use_pulse", UI_ITEM_R_TOGGLE, NULL, ICON_NONE);
        uiItemR(row, ptr, "use_material", UI_ITEM_R_TOGGLE, NULL, ICON_NONE);
 
-       switch (RNA_enum_get(ptr, "use_material")) {
+       switch (RNA_boolean_get(ptr, "use_material")) {
                case SENS_COLLISION_PROPERTY:
                        uiItemR(split, ptr, "property", 0, NULL, ICON_NONE);
                        break;