diff options
author | Mahmoud Badri <mahmoud.badri@qt.io> | 2019-03-27 12:40:35 +0200 |
---|---|---|
committer | Mahmoud Badri <mahmoud.badri@qt.io> | 2019-03-27 10:50:18 +0000 |
commit | e5a6750ffb16df035738a033aee873bb958f2f49 (patch) | |
tree | 55ffeeb12b02fdc130f0bc10299742562e99bc17 | |
parent | d443c5f820e74b0a23d512623446f2bb5c4d5b95 (diff) |
Update inspector variants model upon undoing setting tag
Task-number: QT3DS-3231
Change-Id: I0a530e83ce279e96a5e9c2effbed747627ffa38d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r-- | src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp b/src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp index dc2ef136..594455ea 100644 --- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp +++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp @@ -162,8 +162,11 @@ void InspectorControlModel::notifyPropertyChanged(qt3dsdm::Qt3DSDMInstanceHandle if (!bridge->IsSceneGraphInstance(inInstance)) return; - if (inProperty == bridge->GetLayer().m_variants) // variants model is updated upon edit + if (inProperty == bridge->GetLayer().m_variants) { + // variants model is updated upon edit but this is needed to handle undoing + m_variantsModel->refresh(); return; + } bool changed = false; for (int row = 0; row < m_groupElements.count(); ++row) { |