From ed6d9463d264d0983f75c2dc93191c8526e9115b Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 26 Feb 2014 10:08:17 -0300 Subject: -Added ATITC texture support -Fixed bug of some tabs showing wrong names -Exported properties for viewport --- scene/2d/node_2d.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scene/2d') 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"); -- cgit v1.2.3