fix(property): naming a model no longer renames the property

The model info window sends UpdatePropertyOrModelForFilterCheck with isProperty false (client 0x00cc42e0); only the property editor sends it true (0x00c2e710).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-30 22:06:10 -05:00
parent 9bcc132dde
commit 030efdaa0f
2 changed files with 5 additions and 1 deletions

View File

@@ -373,6 +373,9 @@ namespace GameMessages {
}
void UpdatePropertyOrModelForFilterCheck::Handle(Entity& entity, const SystemAddress& sysAddr) {
// A model's name and description (the property editor's model info window,
// LWOPropertyEditorComponent::OnUpdateModelDescription 0x00cc42e0) aren't stored yet; they must not rename the property
if (!isProperty) return;
auto* property = PropertyManagementComponent::Instance();
// Only the owner names the property
const auto* sender = PlayerManager::GetPlayer(sysAddr);

View File

@@ -186,7 +186,8 @@ namespace GameMessages {
int32_t renew{}; // optional
};
// Client -> server. A new name and description for the property.
// Client -> server. A new name and description for the property (isProperty) or for a placed model (worldId: its object,
// ugcId: its user model id).
struct UpdatePropertyOrModelForFilterCheck : public NetGameMsg {
UpdatePropertyOrModelForFilterCheck() : NetGameMsg(MessageType::Game::UPDATE_PROPERTY_OR_MODEL_FOR_FILTER_CHECK) {}
void Serialize(RakNet::BitStream& bitStream) const override;