- started moving stuff out of PClassActor into meta data.
This reinstates the old FActorInfo as part of the meta data a class can have so that the class descriptor itself can be freed from any data not directly relevant for managing the class's type information.
This commit is contained in:
parent
6a3ddaa8fa
commit
311ce2362a
8 changed files with 106 additions and 25 deletions
|
|
@ -1058,7 +1058,7 @@ void InitializeActorLights()
|
|||
void *mem = ClassDataAllocator.Alloc(sizeof(FInternalLightAssociation));
|
||||
FInternalLightAssociation * iasso = new(mem) FInternalLightAssociation(&LightAssociations[i]);
|
||||
if (iasso->Light() != nullptr)
|
||||
ti->LightAssociations.Push(iasso);
|
||||
ti->ActorInfo()->LightAssociations.Push(iasso);
|
||||
}
|
||||
}
|
||||
// we don't need the parser data for the light associations anymore
|
||||
|
|
@ -1124,7 +1124,7 @@ void AActor::AttachLight(unsigned int count, const FLightDefaults *lightdef)
|
|||
|
||||
void AActor::SetDynamicLights()
|
||||
{
|
||||
TArray<FInternalLightAssociation *> & LightAssociations = GetClass()->LightAssociations;
|
||||
TArray<FInternalLightAssociation *> & LightAssociations = GetInfo()->LightAssociations;
|
||||
unsigned int count = 0;
|
||||
|
||||
if (state == NULL) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue