Fixed finding of renamed custom actors

This commit is contained in:
MysterD 2022-04-22 18:54:11 -07:00
parent f6ff4a0730
commit e7cd7ccd6d
2 changed files with 9 additions and 2 deletions

View File

@ -74,6 +74,13 @@ const void *DynOS_Actor_GetLayoutFromName(const char *aActorName) {
}
}
// check custom actors
for (auto& pair : DynosCustomActors()) {
if (!strcmp(aActorName, pair.first)) {
return pair.second;
}
}
// check loaded actors
for (auto& pair : DynosValidActors()) {
for (auto& geo : pair.second.mGfxData->mGeoLayouts) {

View File

@ -2,9 +2,9 @@
set -e
if [ $# -eq 0 ]; then
make DEBUG=1 DEVELOPMENT=1 STRICT=1 PROFILE=1 -j
make DEBUG=1 DEVELOPMENT=1 STRICT=1 PROFILE=1 LUA_PROFILER=1 -j
else
make DEBUG=1 DEVELOPMENT=1 PROFILE=1 -j
make DEBUG=1 DEVELOPMENT=1 PROFILE=1 LUA_PROFILER=1 -j
fi
# find file