mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 08:45:43 +08:00
commit
28c51a119f
@ -26,7 +26,7 @@ class SharedObjects:
|
|||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
activity = ba.getactivity()
|
activity = ba.getactivity()
|
||||||
if hasattr(activity, self._STORENAME):
|
if self._STORENAME in activity.customdata:
|
||||||
raise RuntimeError('Use SharedObjects.get() to fetch the'
|
raise RuntimeError('Use SharedObjects.get() to fetch the'
|
||||||
' shared instance for this activity.')
|
' shared instance for this activity.')
|
||||||
self._object_material: Optional[ba.Material] = None
|
self._object_material: Optional[ba.Material] = None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user