PropertyPanel Update

This commit is contained in:
2026-06-13 08:45:16 +08:00
parent 2a8534eda7
commit 43c70be574
4 changed files with 93 additions and 17 deletions
+4
View File
@@ -13,6 +13,8 @@ PXR_NAMESPACE_USING_DIRECTIVE
namespace UsdLayerManager {
class CommandHistory;
using PropertyValue = std::variant<
bool, int, float, double, std::string,
pxr::GfVec3f, pxr::GfVec3d
@@ -35,6 +37,7 @@ public:
void SetStage(UsdStageRefPtr stage);
void SetCurrentLayer(const SdfLayerHandle& layer);
void SetCommandHistory(CommandHistory* history) { m_commandHistory = history; }
SdfLayerHandle GetCurrentLayer() const { return m_currentLayer; }
// Prim properties
@@ -61,6 +64,7 @@ private:
UsdStageRefPtr m_stage;
SdfLayerHandle m_currentLayer;
CommandHistory* m_commandHistory = nullptr;
};
} // namespace UsdLayerManager