git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@25743
ac1ea38d-2e2b-0410-8846-
a27921b304fc
if(va.length == 0 || va.length == 2)\r
return null;\r
\r
- // Get playback time from the experiment\r
- Double time = rootVariable.getPossiblePropertyValue(graph, Functions.TIME , Bindings.DOUBLE);\r
+ // Get playback time from the experiment run\r
+ Double time = null;\r
+ if(diagramVariable != null) {\r
+ Variable timeVar = diagramVariable.browsePossible(graph, "#" + Functions.TIME + "#");\r
+ if(timeVar != null)\r
+ time = timeVar.getValue(graph, Bindings.DOUBLE);\r
+ }\r
+\r
if(time == null)\r
return null;\r
\r