Skip to content

Commit d3d6d9e

Browse files
authored
Remove 'new Vector3f()' (#2326)
Removed unnecessary instantiation of 'Vector3f' objects on setWidth() and setHeight() methods.
1 parent b34fed9 commit d3d6d9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jme3-core/src/main/java/com/jme3/ui/Picture.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public float getWidth() {
113113
*/
114114
public void setWidth(float width){
115115
this.width = width;
116-
setLocalScale(new Vector3f(width, height, 1f));
116+
setLocalScale(width, height, 1f);
117117
}
118118

119119
/**
@@ -125,7 +125,7 @@ public void setWidth(float width){
125125
*/
126126
public void setHeight(float height){
127127
this.height = height;
128-
setLocalScale(new Vector3f(width, height, 1f));
128+
setLocalScale(width, height, 1f);
129129
}
130130

131131
/**

0 commit comments

Comments
 (0)