diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-02-26 10:08:17 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-02-26 10:08:17 -0300 |
commit | ed6d9463d264d0983f75c2dc93191c8526e9115b (patch) | |
tree | 3518ba92d9e4fa5b5d36e7272faa3faa01f908c7 /scene/2d | |
parent | b2ce682f6ed9493423be257a5b2e87126692a94f (diff) |
-Added ATITC texture support
-Fixed bug of some tabs showing wrong names
-Exported properties for viewport
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/node_2d.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/node_2d.cpp b/scene/2d/node_2d.cpp index 9b2994ef84..a2bee43e58 100644 --- a/scene/2d/node_2d.cpp +++ b/scene/2d/node_2d.cpp @@ -162,6 +162,10 @@ void Node2D::set_scale(const Size2& p_scale) { if (_xform_dirty) ((Node2D*)this)->_update_xform_values(); scale=p_scale; + if (scale.x==0) + scale.x=CMP_EPSILON; + if (scale.y==0) + scale.y=CMP_EPSILON; _update_transform(); _change_notify("transform/scale"); |