- if (ds.vertexScaleProperty.isPresent()) {
- scaling = Simantics.applySCLRead(graph, ds.vertexScaleProperty.get(), groupItem);
- if (scaling == null) {
- scaling = ONE;
- } else {
-// System.out.println("read vertex scaling: " + scaling + " : " + ds.vertexScaleProperty);
- scaling = scaling * ds.vertexScaleGain + ds.vertexScaleBias;
-// System.out.println("RESULT: " + scaling);
+ // Prevent PendingVariableExceptions from coming through
+ boolean wasSynchronous = graph.setSynchronous(true);
+ try {
+ if (ds.vertexScaleProperty.isPresent()) {
+ scaling = Simantics.applySCLRead(graph, ds.vertexScaleProperty.get(), groupItem);
+ if (scaling == null) {
+ scaling = ONE;
+ } else {
+ // System.out.println("read vertex scaling: " + scaling + " : " + ds.vertexScaleProperty);
+ scaling = scaling * ds.vertexScaleGain + ds.vertexScaleBias;
+ // System.out.println("RESULT: " + scaling);
+ }