Quellcode durchsuchen

Revert "Fix LightProbe scaling by pressing S not working"

This reverts commit 4b2ff4dc19d7443465663166af3daa577ab8353a.
MeFisto94 vor 6 Jahren
Ursprung
Commit
836de36891

+ 1 - 1
jme3-scenecomposer/src/com/jme3/gde/scenecomposer/gizmo/light/LightProbeGizmo.java

@@ -92,7 +92,7 @@ public class LightProbeGizmo extends NodeCallback {
      */
     @Override
     public void onResize(Vector3f oldScale, Vector3f newScale) {
-        jmeProbe.getLightProbe().getArea().setRadius(LightGizmoFactory.scaleToRadius(newScale));
+        ((BoundingSphere)jmeProbe.getLightProbe().getBounds()).setRadius(LightGizmoFactory.scaleToRadius(newScale));
     }
 
     /**