Skip to content

Commit aaef79a

Browse files
committed
Fix Apollo Justice VR UI sprite rendering
1 parent 80bed55 commit aaef79a

2 files changed

Lines changed: 290 additions & 32 deletions

File tree

shared/sdk/REGameObject.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ RETransform* get_transform(REGameObject* obj) {
3333
return nullptr;
3434
}
3535

36+
if (obj->transform != nullptr) {
37+
return obj->transform;
38+
}
39+
3640
static const auto game_object_t = sdk::find_type_definition("via.GameObject");
3741
static const auto get_transform_fn = game_object_t != nullptr ? game_object_t->get_method("get_Transform") : nullptr;
3842
static const auto transform_field = game_object_t != nullptr ? game_object_t->get_field("Transform") : nullptr;
@@ -56,6 +60,6 @@ RETransform* get_transform(REGameObject* obj) {
5660
}
5761
}
5862

59-
return obj->transform;
63+
return nullptr;
6064
}
6165
}

0 commit comments

Comments
 (0)