Checkpoint workspace changes

This commit is contained in:
2026-04-29 01:24:21 +08:00
parent 9b6adf1806
commit ef11651ec2
67 changed files with 3161 additions and 1904 deletions

View File

@@ -299,7 +299,7 @@ std::string InspectorPanel::BuildSubjectKey() const {
case InspectorSubjectKind::ProjectAsset:
return std::string("project:") + m_subject.projectAsset.selection.itemId;
case InspectorSubjectKind::SceneObject:
return std::string("scene:") + m_subject.sceneObject.itemId;
return std::string("scene:") + m_subject.sceneObject.object.itemId;
case InspectorSubjectKind::None:
default:
return "none";
@@ -709,7 +709,7 @@ bool InspectorPanel::ApplyChangedField(std::string_view fieldId) {
}
InspectorComponentEditorContext context = {};
context.gameObject = m_subject.sceneObject.gameObject;
context.gameObject = &m_subject.sceneObject.object;
context.componentId = binding->componentId;
context.typeName = binding->typeName;
context.displayName = binding->displayName;
@@ -717,7 +717,7 @@ bool InspectorPanel::ApplyChangedField(std::string_view fieldId) {
for (const EditorSceneComponentDescriptor& descriptor :
m_sceneRuntime->GetSelectedComponents()) {
if (descriptor.componentId == binding->componentId) {
context.component = descriptor.component;
context.component = descriptor.view.get();
break;
}
}