@@ -619,8 +619,10 @@ static PyMethodDef ue_PyUObject_methods[] = {
619619#endif
620620
621621#if ENGINE_MINOR_VERSION >= 15
622+ #if WITH_EDITOR
622623 { " can_modify" , (PyCFunction)py_ue_can_modify, METH_VARARGS, " " },
623624#endif
625+ #endif
624626
625627
626628 { " set_name" , (PyCFunction)py_ue_set_name, METH_VARARGS, " " },
@@ -1156,7 +1158,9 @@ static PyMethodDef ue_PyUObject_methods[] = {
11561158 { " get_material_scalar_parameter" , (PyCFunction)py_ue_get_material_scalar_parameter, METH_VARARGS, " " },
11571159 { " get_material_vector_parameter" , (PyCFunction)py_ue_get_material_vector_parameter, METH_VARARGS, " " },
11581160 { " get_material_texture_parameter" , (PyCFunction)py_ue_get_material_texture_parameter, METH_VARARGS, " " },
1161+ #if WITH_EDITOR
11591162 { " get_material_static_switch_parameter" , (PyCFunction)py_ue_get_material_static_switch_parameter, METH_VARARGS, " " },
1163+ #endif
11601164 { " create_material_instance_dynamic" , (PyCFunction)py_ue_create_material_instance_dynamic, METH_VARARGS, " " },
11611165#if WITH_EDITOR
11621166 { " set_material_parent" , (PyCFunction)py_ue_set_material_parent, METH_VARARGS, " " },
@@ -1705,9 +1709,12 @@ static int ue_PyFProperty_setattro(ue_PyFProperty* self, PyObject* attr_name, Py
17051709
17061710
17071711static PyMethodDef ue_PyFProperty_methods[] = {
1712+ #if WITH_EDITOR
1713+ // strictly WITH_EDITORONLY_DATA
17081714 { " get_metadata" , (PyCFunction)py_ue_fproperty_get_metadata, METH_VARARGS, " " },
17091715 { " set_metadata" , (PyCFunction)py_ue_fproperty_set_metadata, METH_VARARGS, " " },
17101716 { " has_metadata" , (PyCFunction)py_ue_fproperty_has_metadata, METH_VARARGS, " " },
1717+ #endif
17111718 { NULL } /* Sentinel */
17121719};
17131720
0 commit comments