| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2ccfe75 commit 7a21ace
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1365,6 +1365,7 @@ static int ue_PyUObject_setattro(ue_PyUObject* self, PyObject* attr_name, PyObje | |||
| 1365 | 1365 | FProperty* f_property = u_struct->FindPropertyByName(FName(UTF8_TO_TCHAR(attr))); | |
| 1366 | 1366 | if (f_property) | |
| 1367 | 1367 | { | |
| 1368 | + EXTRA_UE_LOG(LogPython, Warning, TEXT("Setting attr found %s"), UTF8_TO_TCHAR(attr)); | ||
| 1368 | 1369 | #ifdef EXTRA_DEBUG_CODE | |
| 1369 | 1370 | if (!strcmp(attr, "TargetType")) | |
| 1370 | 1371 | { | |
@@ -2512,6 +2513,7 @@ PyObject* ue_py_convert_property(FProperty* prop, uint8* buffer, int32 index) | |||
| 2512 | 2513 | if (auto casted_prop = CastField<FBoolProperty>(prop)) | |
| 2513 | 2514 | { | |
| 2514 | 2515 | bool value = casted_prop->GetPropertyValue_InContainer(buffer, index); | |
| 2516 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: bool %d"), value); | ||
| 2515 | 2517 | if (value) | |
| 2516 | 2518 | { | |
| 2517 | 2519 | Py_RETURN_TRUE; | |
@@ -2521,45 +2523,56 @@ PyObject* ue_py_convert_property(FProperty* prop, uint8* buffer, int32 index) | |||
| 2521 | 2523 | ||
| 2522 | 2524 | if (auto casted_prop = CastField<FIntProperty>(prop)) | |
| 2523 | 2525 | { | |
| 2526 | + // well I thought there was an issue here but turns out this is fine - its the test_blueprint.py thats wrong | ||
| 2527 | + //void* prop_addr = casted_prop->ContainerPtrToValuePtr<void>(buffer, index); | ||
| 2528 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: number int %p (%p) %x"), buffer, prop_addr, *((uint64*)prop_addr)); | ||
| 2529 | + //int value = casted_prop->GetPropertyValue(prop_addr); | ||
| 2524 | 2530 | int value = casted_prop->GetPropertyValue_InContainer(buffer, index); | |
| 2531 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: int %d %x"), value, value); | ||
| 2525 | 2532 | return PyLong_FromLong(value); | |
| 2526 | 2533 | } | |
| 2527 | 2534 | ||
| 2528 | 2535 | if (auto casted_prop = CastField<FUInt32Property>(prop)) | |
| 2529 | 2536 | { | |
| 2530 | 2537 | uint32 value = casted_prop->GetPropertyValue_InContainer(buffer, index); | |
| 2538 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: uint %d"), value); | ||
| 2531 | 2539 | return PyLong_FromUnsignedLong(value); | |
| 2532 | 2540 | } | |
| 2533 | 2541 | ||
| 2534 | 2542 | if (auto casted_prop = CastField<FInt64Property>(prop)) | |
| 2535 | 2543 | { | |
| 2536 | 2544 | long long value = casted_prop->GetPropertyValue_InContainer(buffer, index); | |
| 2545 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: ull %lld"), value); | ||
| 2537 | 2546 | return PyLong_FromLongLong(value); | |
| 2538 | 2547 | } | |
| 2539 | 2548 | ||
| 2540 | 2549 | // this is likely a bug - it was a FInt64Property before | |
| 2541 | 2550 | if (auto casted_prop = CastField<FUInt64Property>(prop)) | |
| 2542 | 2551 | { | |
| 2543 | 2552 | uint64 value = casted_prop->GetPropertyValue_InContainer(buffer, index); | |
| 2553 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: uint64 %lld"), value); | ||
| 2544 | 2554 | return PyLong_FromUnsignedLongLong(value); | |
| 2545 | 2555 | } | |
| 2546 | 2556 | ||
| 2547 | 2557 | if (auto casted_prop = CastField<FFloatProperty>(prop)) | |
| 2548 | 2558 | { | |
| 2549 | 2559 | float value = casted_prop->GetPropertyValue_InContainer(buffer, index); | |
| 2560 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: float %f"), value); | ||
| 2550 | 2561 | return PyFloat_FromDouble(value); | |
| 2551 | 2562 | } | |
| 2552 | 2563 | ||
| 2553 | 2564 | if (auto casted_prop = CastField<FByteProperty>(prop)) | |
| 2554 | 2565 | { | |
| 2555 | 2566 | uint8 value = casted_prop->GetPropertyValue_InContainer(buffer, index); | |
| 2567 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: uint8 %d"), value); | ||
| 2556 | 2568 | return PyLong_FromUnsignedLong(value); | |
| 2557 | 2569 | } | |
| 2558 | 2570 | ||
| 2559 | 2571 | if (auto casted_prop = CastField<FEnumProperty>(prop)) | |
| 2560 | 2572 | { | |
| 2561 | 2573 | void* prop_addr = casted_prop->ContainerPtrToValuePtr<void>(buffer, index); | |
| 2562 | 2574 | uint64 enum_index = casted_prop->GetUnderlyingProperty()->GetUnsignedIntPropertyValue(prop_addr); | |
| 2575 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: enum %lld"), enum_index); | ||
| 2563 | 2576 | return PyLong_FromUnsignedLong(enum_index); | |
| 2564 | 2577 | } | |
| 2565 | 2578 | ||
@@ -2740,9 +2753,11 @@ PyObject* ue_py_convert_property(FProperty* prop, uint8* buffer, int32 index) | |||
| 2740 | 2753 | // convert a python object to a property | |
| 2741 | 2754 | bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, int32 index) | |
| 2742 | 2755 | { | |
| 2756 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject")); | ||
| 2743 | 2757 | ||
| 2744 | 2758 | if (PyBool_Check(py_obj)) | |
| 2745 | 2759 | { | |
| 2760 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: bool")); | ||
| 2746 | 2761 | auto casted_prop = CastField<FBoolProperty>(prop); | |
| 2747 | 2762 | if (!casted_prop) | |
| 2748 | 2763 | return false; | |
@@ -2759,16 +2774,25 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 2759 | 2774 | ||
| 2760 | 2775 | if (PyNumber_Check(py_obj)) | |
| 2761 | 2776 | { | |
| 2777 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: number")); | ||
| 2762 | 2778 | if (auto casted_prop = CastField<FIntProperty>(prop)) | |
| 2763 | 2779 | { | |
| 2764 | 2780 | PyObject* py_long = PyNumber_Long(py_obj); | |
| 2781 | + //void* prop_addr = casted_prop->ContainerPtrToValuePtr<void>(buffer, index); | ||
| 2782 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: number int %p (%p) %ld"), buffer, prop_addr, PyLong_AsLong(py_long)); | ||
| 2783 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: number int %p (%p) %x"), buffer, prop_addr, *((uint64*)prop_addr)); | ||
| 2784 | + //casted_prop->SetIntPropertyValue(prop_addr, (int64) PyLong_AsLong(py_long)); | ||
| 2765 | 2785 | casted_prop->SetPropertyValue_InContainer(buffer, PyLong_AsLong(py_long), index); | |
| 2766 | 2786 | Py_DECREF(py_long); | |
| 2787 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_property: number int %p (%p) %x"), buffer, prop_addr, *((uint64*)prop_addr)); | ||
| 2767 | 2788 | return true; | |
| 2768 | 2789 | } | |
| 2769 | 2790 | if (auto casted_prop = CastField<FUInt32Property>(prop)) | |
| 2770 | 2791 | { | |
| 2771 | 2792 | PyObject* py_long = PyNumber_Long(py_obj); | |
| 2793 | + //void* prop_addr = casted_prop->ContainerPtrToValuePtr<void>(buffer, index); | ||
| 2794 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: number uint %p (%p) %ld"), buffer, prop_addr, PyLong_AsUnsignedLong(py_long)); | ||
| 2795 | + //casted_prop->SetIntPropertyValue(prop_addr, (uint64) PyLong_AsUnsignedLong(py_long)); | ||
| 2772 | 2796 | casted_prop->SetPropertyValue_InContainer(buffer, PyLong_AsUnsignedLong(py_long), index); | |
| 2773 | 2797 | Py_DECREF(py_long); | |
| 2774 | 2798 | return true; | |
@@ -2777,20 +2801,23 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 2777 | 2801 | { | |
| 2778 | 2802 | PyObject* py_long = PyNumber_Long(py_obj); | |
| 2779 | 2803 | casted_prop->SetPropertyValue_InContainer(buffer, PyLong_AsLongLong(py_long), index); | |
| 2804 | + //casted_prop->SetIntPropertyValue(buffer, PyLong_AsLongLong(py_long), index); | ||
| 2780 | 2805 | Py_DECREF(py_long); | |
| 2781 | 2806 | return true; | |
| 2782 | 2807 | } | |
| 2783 | 2808 | if (auto casted_prop = CastField<FInt64Property>(prop)) | |
| 2784 | 2809 | { | |
| 2785 | 2810 | PyObject* py_long = PyNumber_Long(py_obj); | |
| 2786 | 2811 | casted_prop->SetPropertyValue_InContainer(buffer, PyLong_AsUnsignedLongLong(py_long), index); | |
| 2812 | + //casted_prop->SetIntPropertyValue(buffer, PyLong_AsUnsignedLongLong(py_long), index); | ||
| 2787 | 2813 | Py_DECREF(py_long); | |
| 2788 | 2814 | return true; | |
| 2789 | 2815 | } | |
| 2790 | 2816 | if (auto casted_prop = CastField<FFloatProperty>(prop)) | |
| 2791 | 2817 | { | |
| 2792 | 2818 | PyObject* py_float = PyNumber_Float(py_obj); | |
| 2793 | 2819 | casted_prop->SetPropertyValue_InContainer(buffer, PyFloat_AsDouble(py_float), index); | |
| 2820 | + //casted_prop->SetFloatingPointPropertyValue(buffer, PyFloat_AsDouble(py_float), index); | ||
| 2794 | 2821 | Py_DECREF(py_float); | |
| 2795 | 2822 | return true; | |
| 2796 | 2823 | } | |
@@ -2810,11 +2837,14 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 2810 | 2837 | return true; | |
| 2811 | 2838 | } | |
| 2812 | 2839 | ||
| 2840 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: number FAILED")); | ||
| 2841 | + | ||
| 2813 | 2842 | return false; | |
| 2814 | 2843 | } | |
| 2815 | 2844 | ||
| 2816 | 2845 | if (PyUnicodeOrString_Check(py_obj)) | |
| 2817 | 2846 | { | |
| 2847 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: string")); | ||
| 2818 | 2848 | if (auto casted_prop = CastField<FStrProperty>(prop)) | |
| 2819 | 2849 | { | |
| 2820 | 2850 | casted_prop->SetPropertyValue_InContainer(buffer, UTF8_TO_TCHAR(UEPyUnicode_AsUTF8(py_obj)), index); | |
@@ -2830,11 +2860,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 2830 | 2860 | casted_prop->SetPropertyValue_InContainer(buffer, FText::FromString(UTF8_TO_TCHAR(UEPyUnicode_AsUTF8(py_obj))), index); | |
| 2831 | 2861 | return true; | |
| 2832 | 2862 | } | |
| 2863 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: string FAILED")); | ||
| 2833 | 2864 | return false; | |
| 2834 | 2865 | } | |
| 2835 | 2866 | ||
| 2836 | 2867 | if (PyBytes_Check(py_obj)) | |
| 2837 | 2868 | { | |
| 2869 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: bytes")); | ||
| 2838 | 2870 | if (auto casted_prop = CastField<FArrayProperty>(prop)) | |
| 2839 | 2871 | { | |
| 2840 | 2872 | FScriptArrayHelper_InContainer helper(casted_prop, buffer, index); | |
@@ -2862,11 +2894,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 2862 | 2894 | } | |
| 2863 | 2895 | } | |
| 2864 | 2896 | ||
| 2897 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: bytes FAILED")); | ||
| 2865 | 2898 | return false; | |
| 2866 | 2899 | } | |
| 2867 | 2900 | ||
| 2868 | 2901 | if (PyByteArray_Check(py_obj)) | |
| 2869 | 2902 | { | |
| 2903 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: array")); | ||
| 2870 | 2904 | if (auto casted_prop = CastField<FArrayProperty>(prop)) | |
| 2871 | 2905 | { | |
| 2872 | 2906 | FScriptArrayHelper_InContainer helper(casted_prop, buffer, index); | |
@@ -2895,11 +2929,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 2895 | 2929 | } | |
| 2896 | 2930 | } | |
| 2897 | 2931 | ||
| 2932 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: bytearray FAILED")); | ||
| 2898 | 2933 | return false; | |
| 2899 | 2934 | } | |
| 2900 | 2935 | ||
| 2901 | 2936 | if (PyList_Check(py_obj)) | |
| 2902 | 2937 | { | |
| 2938 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: list")); | ||
| 2903 | 2939 | if (auto casted_prop = CastField<FArrayProperty>(prop)) | |
| 2904 | 2940 | { | |
| 2905 | 2941 | FScriptArrayHelper_InContainer helper(casted_prop, buffer, index); | |
@@ -2928,11 +2964,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 2928 | 2964 | return true; | |
| 2929 | 2965 | } | |
| 2930 | 2966 | ||
| 2967 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: list FAILED")); | ||
| 2931 | 2968 | return false; | |
| 2932 | 2969 | } | |
| 2933 | 2970 | ||
| 2934 | 2971 | if (PyTuple_Check(py_obj)) | |
| 2935 | 2972 | { | |
| 2973 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: tuple")); | ||
| 2936 | 2974 | if (auto casted_prop = CastField<FArrayProperty>(prop)) | |
| 2937 | 2975 | { | |
| 2938 | 2976 | FScriptArrayHelper_InContainer helper(casted_prop, buffer, index); | |
@@ -2961,11 +2999,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 2961 | 2999 | return true; | |
| 2962 | 3000 | } | |
| 2963 | 3001 | ||
| 3002 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: tuple FAILED")); | ||
| 2964 | 3003 | return false; | |
| 2965 | 3004 | } | |
| 2966 | 3005 | ||
| 2967 | 3006 | if (PyDict_Check(py_obj)) | |
| 2968 | 3007 | { | |
| 3008 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: dict")); | ||
| 2969 | 3009 | if (auto casted_prop = CastField<FMapProperty>(prop)) | |
| 2970 | 3010 | { | |
| 2971 | 3011 | FScriptMapHelper_InContainer map_helper(casted_prop, buffer, index); | |
@@ -2996,13 +3036,15 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 2996 | 3036 | return true; | |
| 2997 | 3037 | } | |
| 2998 | 3038 | ||
| 3039 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: dict FAILED")); | ||
| 2999 | 3040 | return false; | |
| 3000 | 3041 | } | |
| 3001 | 3042 | ||
| 3002 | 3043 | // structs | |
| 3003 | 3044 | ||
| 3004 | 3045 | if (ue_PyFVector * py_vec = py_ue_is_fvector(py_obj)) | |
| 3005 | 3046 | { | |
| 3047 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: fvector")); | ||
| 3006 | 3048 | if (auto casted_prop = CastField<FStructProperty>(prop)) | |
| 3007 | 3049 | { | |
| 3008 | 3050 | if (casted_prop->Struct == TBaseStructure<FVector>::Get()) | |
@@ -3011,11 +3053,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3011 | 3053 | return true; | |
| 3012 | 3054 | } | |
| 3013 | 3055 | } | |
| 3056 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: fvector FAILED")); | ||
| 3014 | 3057 | return false; | |
| 3015 | 3058 | } | |
| 3016 | 3059 | ||
| 3017 | 3060 | if (ue_PyFVector2D * py_vec = py_ue_is_fvector2d(py_obj)) | |
| 3018 | 3061 | { | |
| 3062 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: fvector2D")); | ||
| 3019 | 3063 | if (auto casted_prop = CastField<FStructProperty>(prop)) | |
| 3020 | 3064 | { | |
| 3021 | 3065 | if (casted_prop->Struct == TBaseStructure<FVector2D>::Get()) | |
@@ -3024,11 +3068,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3024 | 3068 | return true; | |
| 3025 | 3069 | } | |
| 3026 | 3070 | } | |
| 3071 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: fvector2D FAILED")); | ||
| 3027 | 3072 | return false; | |
| 3028 | 3073 | } | |
| 3029 | 3074 | ||
| 3030 | 3075 | if (ue_PyFRotator * py_rot = py_ue_is_frotator(py_obj)) | |
| 3031 | 3076 | { | |
| 3077 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: frotator")); | ||
| 3032 | 3078 | if (auto casted_prop = CastField<FStructProperty>(prop)) | |
| 3033 | 3079 | { | |
| 3034 | 3080 | if (casted_prop->Struct == TBaseStructure<FRotator>::Get()) | |
@@ -3037,11 +3083,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3037 | 3083 | return true; | |
| 3038 | 3084 | } | |
| 3039 | 3085 | } | |
| 3086 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: frotator FAILED")); | ||
| 3040 | 3087 | return false; | |
| 3041 | 3088 | } | |
| 3042 | 3089 | ||
| 3043 | 3090 | if (ue_PyFTransform * py_transform = py_ue_is_ftransform(py_obj)) | |
| 3044 | 3091 | { | |
| 3092 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: ftransform")); | ||
| 3045 | 3093 | if (auto casted_prop = CastField<FStructProperty>(prop)) | |
| 3046 | 3094 | { | |
| 3047 | 3095 | if (casted_prop->Struct == TBaseStructure<FTransform>::Get()) | |
@@ -3050,11 +3098,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3050 | 3098 | return true; | |
| 3051 | 3099 | } | |
| 3052 | 3100 | } | |
| 3101 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: ftransform FAILED")); | ||
| 3053 | 3102 | return false; | |
| 3054 | 3103 | } | |
| 3055 | 3104 | ||
| 3056 | 3105 | if (ue_PyFColor * py_color = py_ue_is_fcolor(py_obj)) | |
| 3057 | 3106 | { | |
| 3107 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: fcolor")); | ||
| 3058 | 3108 | if (auto casted_prop = CastField<FStructProperty>(prop)) | |
| 3059 | 3109 | { | |
| 3060 | 3110 | if (casted_prop->Struct == TBaseStructure<FColor>::Get()) | |
@@ -3064,11 +3114,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3064 | 3114 | return true; | |
| 3065 | 3115 | } | |
| 3066 | 3116 | } | |
| 3117 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: fcolor FAILED")); | ||
| 3067 | 3118 | return false; | |
| 3068 | 3119 | } | |
| 3069 | 3120 | ||
| 3070 | 3121 | if (ue_PyFLinearColor * py_color = py_ue_is_flinearcolor(py_obj)) | |
| 3071 | 3122 | { | |
| 3123 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: flinearcolor")); | ||
| 3072 | 3124 | if (auto casted_prop = CastField<FStructProperty>(prop)) | |
| 3073 | 3125 | { | |
| 3074 | 3126 | if (casted_prop->Struct == TBaseStructure<FLinearColor>::Get()) | |
@@ -3077,11 +3129,13 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3077 | 3129 | return true; | |
| 3078 | 3130 | } | |
| 3079 | 3131 | } | |
| 3132 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: flinearcolor FAILED")); | ||
| 3080 | 3133 | return false; | |
| 3081 | 3134 | } | |
| 3082 | 3135 | ||
| 3083 | 3136 | if (ue_PyFHitResult * py_hit = py_ue_is_fhitresult(py_obj)) | |
| 3084 | 3137 | { | |
| 3138 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: fhitresult")); | ||
| 3085 | 3139 | if (auto casted_prop = CastField<FStructProperty>(prop)) | |
| 3086 | 3140 | { | |
| 3087 | 3141 | if (casted_prop->Struct == FHitResult::StaticStruct()) | |
@@ -3090,12 +3144,14 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3090 | 3144 | return true; | |
| 3091 | 3145 | } | |
| 3092 | 3146 | } | |
| 3147 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: fhitresult FAILED")); | ||
| 3093 | 3148 | return false; | |
| 3094 | 3149 | } | |
| 3095 | 3150 | ||
| 3096 | 3151 | // generic structs | |
| 3097 | 3152 | if (py_ue_is_uscriptstruct(py_obj)) | |
| 3098 | 3153 | { | |
| 3154 | + //EXTRA_UE_LOG(LogPython, Warning, TEXT("ue_py_convert_pyobject: uscriptstruct")); | ||
| 3099 | 3155 | ue_PyUScriptStruct* py_u_struct = (ue_PyUScriptStruct*)py_obj; | |
| 3100 | 3156 | if (auto casted_prop = CastField<FStructProperty>(prop)) | |
| 3101 | 3157 | { | |
@@ -3107,6 +3163,7 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3107 | 3163 | return true; | |
| 3108 | 3164 | } | |
| 3109 | 3165 | } | |
| 3166 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: uscriptstruct FAILED")); | ||
| 3110 | 3167 | return false; | |
| 3111 | 3168 | } | |
| 3112 | 3169 | ||
@@ -3160,6 +3217,7 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3160 | 3217 | return true; | |
| 3161 | 3218 | } | |
| 3162 | 3219 | ||
| 3220 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: uclass FAILED")); | ||
| 3163 | 3221 | return false; | |
| 3164 | 3222 | } | |
| 3165 | 3223 | ||
@@ -3206,6 +3264,7 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3206 | 3264 | return true; | |
| 3207 | 3265 | } | |
| 3208 | 3266 | } | |
| 3267 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: uobject FAILED")); | ||
| 3209 | 3268 | return false; | |
| 3210 | 3269 | } | |
| 3211 | 3270 | ||
@@ -3227,6 +3286,7 @@ bool ue_py_convert_pyobject(PyObject* py_obj, FProperty* prop, uint8* buffer, in | |||
| 3227 | 3286 | ||
| 3228 | 3287 | return true; | |
| 3229 | 3288 | } | |
| 3289 | + EXTRA_UE_LOG(LogPython, Error, TEXT("ue_py_convert_pyobject: Py_None FAILED")); | ||
| 3230 | 3290 | return false; | |
| 3231 | 3291 | } | |
| 3232 | 3292 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments