added motion trajectory simulation
This commit is contained in:
@@ -51,6 +51,17 @@ def _parse_args(argv: list[str]) -> argparse.Namespace:
|
||||
return parser.parse_args(argv)
|
||||
|
||||
|
||||
def _request_compatible_gl() -> bool:
|
||||
"""Ask for a GL profile the 3D preview can draw with; see the preview module.
|
||||
|
||||
Thin wrapper so the entry point does not have to know the details — the
|
||||
reasoning and the version choice live next to the drawing code that needs them.
|
||||
"""
|
||||
from .ui.pose_preview import configure_compatible_gl
|
||||
|
||||
return configure_compatible_gl()
|
||||
|
||||
|
||||
def main(argv: list[str] | None = None) -> int:
|
||||
args = _parse_args(list(argv if argv is not None else sys.argv[1:]))
|
||||
_force_utf8_streams()
|
||||
@@ -80,6 +91,7 @@ def main(argv: list[str] | None = None) -> int:
|
||||
app = QApplication(sys.argv[:1])
|
||||
app.setApplicationName("Orisys AutoCal")
|
||||
app.setApplicationVersion(app_version)
|
||||
_request_compatible_gl()
|
||||
app.setStyleSheet(build_qss(theme))
|
||||
|
||||
transport = None
|
||||
|
||||
Reference in New Issue
Block a user