mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
-Added ATITC texture support
-Fixed bug of some tabs showing wrong names -Exported properties for viewport
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user