mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 07:03:36 -04:00
task: Check sys.platform instead of PandaSystem for emscripten tag
This seems to have been standardized in upstream cpython now
This commit is contained in:
parent
b3730bf707
commit
7cd4ca07ed
@ -36,7 +36,6 @@ from panda3d.core import (
|
||||
ClockObject,
|
||||
ConfigVariableBool,
|
||||
GlobPattern,
|
||||
PandaSystem,
|
||||
PythonTask,
|
||||
Thread,
|
||||
)
|
||||
@ -539,7 +538,7 @@ class TaskManager:
|
||||
"""Starts the task manager running. Does not return until an
|
||||
exception is encountered (including KeyboardInterrupt). """
|
||||
|
||||
if PandaSystem.getPlatform() == 'emscripten':
|
||||
if sys.platform == 'emscripten':
|
||||
return
|
||||
|
||||
# Set the clock to have last frame's time in case we were
|
||||
|
Loading…
x
Reference in New Issue
Block a user