Commit fa640f66 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Go always back to the base state if you change the state

Should work without this, but the performance hit is not so high,
and this is more robust to changes in the qml state code.

Task-Number: BAUHAUS-660
Reviewed-by: kkoehne
parent 1a114248
...@@ -616,6 +616,7 @@ NodeInstance NodeInstanceView::loadNode(const ModelNode &node, QObject *objectTo ...@@ -616,6 +616,7 @@ NodeInstance NodeInstanceView::loadNode(const ModelNode &node, QObject *objectTo
void NodeInstanceView::activateState(const NodeInstance &instance) void NodeInstanceView::activateState(const NodeInstance &instance)
{ {
activateBaseState();
NodeInstance stateInstance(instance); NodeInstance stateInstance(instance);
stateInstance.activateState(); stateInstance.activateState();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment