diff options
author | Jere Tuliniemi <jere.tuliniemi@qt.io> | 2018-12-03 16:15:28 +0200 |
---|---|---|
committer | Jere Tuliniemi <jere.tuliniemi@qt.io> | 2018-12-03 15:25:53 +0000 |
commit | 5a476f2d888aab2eb4a5c847af6be3d4e1cca727 (patch) | |
tree | 259fd6f06f7ef6fc7ba922d3482ba260f3568bde | |
parent | f45720e80034b13f98ae3e65c86bb032940a4a3d (diff) |
Refresh material after setting values
The editor didn't show the most up to date changes to the material in
the scene view after setting values read from the materialdef file.
Change-Id: I8f9499d7250489168e177ab150acd7836041c07c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r-- | src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp b/src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp index 9663f920..3171f50c 100644 --- a/src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp +++ b/src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp @@ -2481,6 +2481,8 @@ public: if (textureValues.contains(child.name)) setPropertyValues(child.handle, textureValues[child.name]); } + + m_Doc.GetCore()->GetDispatch()->FireImmediateRefreshInstance(instance); } void SetSlideName(TInstanceHandle inSlideInstance, TPropertyHandle propName, |