changeset 5192:d7772ae23f15

RT-30264 3D shapes' getBoundsInLocal() fail to update when dimension changes Summary: When invalidate dimension property, it should call impl_geomChanged() to mark bounds dirty. Reviewed-by: kcr
author Yao Wang <yao.w.wang@oracle.com>
date Wed, 25 Sep 2013 10:44:13 -0700
parents e5e4a26f2a09
children ca4cca436907
files modules/graphics/src/main/java/javafx/scene/shape/Box.java modules/graphics/src/main/java/javafx/scene/shape/Cylinder.java modules/graphics/src/main/java/javafx/scene/shape/Sphere.java
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/javafx/scene/shape/Box.java	Wed Sep 25 12:24:11 2013 +0400
+++ b/modules/graphics/src/main/java/javafx/scene/shape/Box.java	Wed Sep 25 10:44:13 2013 -0700
@@ -93,6 +93,7 @@
                     impl_markDirty(DirtyBits.MESH_GEOM);
                     manager.invalidateBoxMesh(key);
                     key = 0;
+                    impl_geomChanged();
                 }
             };
         }
@@ -122,6 +123,7 @@
                     impl_markDirty(DirtyBits.MESH_GEOM);
                     manager.invalidateBoxMesh(key);
                     key = 0;
+                    impl_geomChanged();
                 }
             };
         }
@@ -151,6 +153,7 @@
                     impl_markDirty(DirtyBits.MESH_GEOM);
                     manager.invalidateBoxMesh(key);
                     key = 0;
+                    impl_geomChanged();
                 }
             };
         }
--- a/modules/graphics/src/main/java/javafx/scene/shape/Cylinder.java	Wed Sep 25 12:24:11 2013 +0400
+++ b/modules/graphics/src/main/java/javafx/scene/shape/Cylinder.java	Wed Sep 25 10:44:13 2013 -0700
@@ -115,6 +115,7 @@
                     impl_markDirty(DirtyBits.MESH_GEOM);
                     manager.invalidateCylinderMesh(key);
                     key = 0;
+                    impl_geomChanged();
                 }
             };
         }
@@ -144,6 +145,7 @@
                     impl_markDirty(DirtyBits.MESH_GEOM);
                     manager.invalidateCylinderMesh(key);
                     key = 0;
+                    impl_geomChanged();
                 }
             };
         }
--- a/modules/graphics/src/main/java/javafx/scene/shape/Sphere.java	Wed Sep 25 12:24:11 2013 +0400
+++ b/modules/graphics/src/main/java/javafx/scene/shape/Sphere.java	Wed Sep 25 10:44:13 2013 -0700
@@ -112,6 +112,7 @@
                     impl_markDirty(DirtyBits.MESH_GEOM);
                     manager.invalidateSphereMesh(key);
                     key = 0;
+                    impl_geomChanged();
                 }
             };
         }