ObjectUpdateType.OBJECT_UPDATE -> ObjectUpdateType.UPDATE

This commit is contained in:
Salad Dais
2023-12-31 14:57:28 +00:00
parent d21c3ec004
commit e9d7ee7e8e
4 changed files with 15 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ class PixelArtistAddon(BaseAddon):
# Watch for any newly created prims, this is basically what the viewer does to find
# prims that it just created with the build tool.
with session.objects.events.subscribe_async(
(ObjectUpdateType.OBJECT_UPDATE,),
(ObjectUpdateType.UPDATE,),
predicate=lambda e: e.object.UpdateFlags & JUST_CREATED_FLAGS and "LocalID" in e.updated
) as get_events:
# Create a pool of prims to use for building the pixel art