Browse Source

Fix Crash due to ConcurrentModificationException when creating a LightProbe.

MeFisto94 7 years ago
parent
commit
59f30de589

+ 2 - 1
jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/NewLightPopup.java

@@ -200,7 +200,8 @@ public class NewLightPopup extends AbstractAction implements Presenter.Popup {
                     }
                     LightProbe lightProbe = LightProbeFactory.makeProbe(envCam, node, new JmeLightProbeProgressHandler());                                
                     node.addLight(lightProbe);
-                    ((BoundingSphere)lightProbe.getBounds()).setRadius(10);
+                    ((BoundingSphere) lightProbe.getBounds()).setRadius(10);
+                    node.updateModelBound();
                     addLightUndo(node, lightProbe);
                     setModified();