Added warnings to new camera control calls

This commit is contained in:
Eric Froemling 2021-11-04 15:47:51 -05:00
parent 67d65fa039
commit 5f87476e96
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98
3 changed files with 46 additions and 6 deletions

View File

@ -1 +1 @@
320686119307869972803010339077202626108
207646555889684244275321000216220256792

View File

@ -2012,6 +2012,10 @@ def get_camera_position() -> tuple[float, ...]:
"""get_camera_position() -> tuple[float, ...]
(internal)
WARNING: these camera controls will not apply to network clients
and may behave unpredicably in other ways. Use them only for
tinkering.
"""
return (0.0, 0.0, 0.0)
@ -2020,6 +2024,10 @@ def get_camera_target() -> tuple[float, ...]:
"""get_camera_target() -> tuple[float, ...]
(internal)
WARNING: these camera controls will not apply to network clients
and may behave unpredicably in other ways. Use them only for
tinkering.
"""
return (0.0, 0.0, 0.0)
@ -3505,6 +3513,10 @@ def set_camera_manual(value: bool) -> None:
"""set_camera_manual(value: bool) -> None
(internal)
WARNING: these camera controls will not apply to network clients
and may behave unpredicably in other ways. Use them only for
tinkering.
"""
return None
@ -3513,6 +3525,10 @@ def set_camera_position(x: float, y: float, z: float) -> None:
"""set_camera_position(x: float, y: float, z: float) -> None
(internal)
WARNING: these camera controls will not apply to network clients
and may behave unpredicably in other ways. Use them only for
tinkering.
"""
return None
@ -3521,6 +3537,10 @@ def set_camera_target(x: float, y: float, z: float) -> None:
"""set_camera_target(x: float, y: float, z: float) -> None
(internal)
WARNING: these camera controls will not apply to network clients
and may behave unpredicably in other ways. Use them only for
tinkering.
"""
return None

View File

@ -315,31 +315,51 @@ auto PythonMethodsGraphics::GetMethods() -> std::vector<PyMethodDef> {
METH_VARARGS | METH_KEYWORDS,
"get_camera_position() -> tuple[float, ...]\n"
"\n"
"(internal)"},
"(internal)\n"
"\n"
"WARNING: these camera controls will not apply to network clients\n"
"and may behave unpredicably in other ways. Use them only for\n"
"tinkering."},
{"get_camera_target", (PyCFunction)PyGetCameraTarget,
METH_VARARGS | METH_KEYWORDS,
"get_camera_target() -> tuple[float, ...]\n"
"\n"
"(internal)"},
"(internal)\n"
"\n"
"WARNING: these camera controls will not apply to network clients\n"
"and may behave unpredicably in other ways. Use them only for\n"
"tinkering."},
{"set_camera_position", (PyCFunction)PySetCameraPosition,
METH_VARARGS | METH_KEYWORDS,
"set_camera_position(x: float, y: float, z: float) -> None\n"
"\n"
"(internal)"},
"(internal)\n"
"\n"
"WARNING: these camera controls will not apply to network clients\n"
"and may behave unpredicably in other ways. Use them only for\n"
"tinkering."},
{"set_camera_target", (PyCFunction)PySetCameraTarget,
METH_VARARGS | METH_KEYWORDS,
"set_camera_target(x: float, y: float, z: float) -> None\n"
"\n"
"(internal)"},
"(internal)\n"
"\n"
"WARNING: these camera controls will not apply to network clients\n"
"and may behave unpredicably in other ways. Use them only for\n"
"tinkering."},
{"set_camera_manual", (PyCFunction)PySetCameraManual,
METH_VARARGS | METH_KEYWORDS,
"set_camera_manual(value: bool) -> None\n"
"\n"
"(internal)"},
"(internal)\n"
"\n"
"WARNING: these camera controls will not apply to network clients\n"
"and may behave unpredicably in other ways. Use them only for\n"
"tinkering."},
{"has_gamma_control", PyHasGammaControl, METH_VARARGS,
"has_gamma_control() -> bool\n"