Skip to content

Commit

Permalink
#5836: setValuesOnEntity() is now setLightVectorsOnEntity()
Browse files Browse the repository at this point in the history
All other value-setting has been moved into separate methods.
  • Loading branch information
Matthew Mott committed Jan 4, 2022
1 parent 9d0fe8e commit 3473cfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions radiant/ui/lightinspector/LightInspector.cpp
Expand Up @@ -588,7 +588,7 @@ void LightInspector::writeToAllEntities(StringMap newValues)
}
else {
// Set all values from dialog elements
setValuesOnEntity(entity);
setLightVectorsOnEntity(entity);
}
}

Expand All @@ -607,7 +607,7 @@ void LightInspector::setKeyValueAllLights(const std::string& key,
}

// Set the keyvalues on the entity from the dialog widgets
void LightInspector::setValuesOnEntity(Entity* entity)
void LightInspector::setLightVectorsOnEntity(Entity* entity)
{
// Write out all vectors to the entity
for (const auto& pair : _valueMap)
Expand Down
4 changes: 2 additions & 2 deletions radiant/ui/lightinspector/LightInspector.h
Expand Up @@ -94,10 +94,10 @@ class LightInspector :
void getValuesFromEntity();

// Write the widget contents to the given entity
void setValuesOnEntity(Entity* entity);
void setLightVectorsOnEntity(Entity* entity);

// Write contents to all light entities. Pass a string map containing
// explicit values to set, or an empty map to call setValuesOnEntity() for
// explicit values to set, or an empty map to call setLightVectorsOnEntity() for
// each entity.
void writeToAllEntities(StringMap newValues = {});

Expand Down

0 comments on commit 3473cfb

Please sign in to comment.