summaryrefslogtreecommitdiffstats
path: root/scene/2d/light_2d.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-03-22 10:33:58 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-03-22 10:33:58 -0300
commita93e33f5c8afc8ce2e9c1674718ff103bfae49b0 (patch)
tree747c340c104c4c650f67e9a8c36cc3d9f6ad85ff /scene/2d/light_2d.cpp
parentdac2017dee8a58c85b8b3218a779260d3b5f4072 (diff)
downloadredot-engine-a93e33f5c8afc8ce2e9c1674718ff103bfae49b0.tar.gz
added spatial and node2d helper methods
to perform operations such as translaiton, rotation, etc directly on nodes.
Diffstat (limited to 'scene/2d/light_2d.cpp')
-rw-r--r--scene/2d/light_2d.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/2d/light_2d.cpp b/scene/2d/light_2d.cpp
index 8f6907798f..949c952b39 100644
--- a/scene/2d/light_2d.cpp
+++ b/scene/2d/light_2d.cpp
@@ -23,7 +23,7 @@ Rect2 Light2D::get_item_rect() const {
Size2i s;
- s = texture->get_size()*scale;
+ s = texture->get_size()*_scale;
Point2i ofs=texture_offset;
ofs-=s/2;
@@ -98,8 +98,8 @@ float Light2D::get_height() const {
void Light2D::set_scale( float p_scale) {
- scale=p_scale;
- VS::get_singleton()->canvas_light_set_scale(canvas_light,scale);
+ _scale=p_scale;
+ VS::get_singleton()->canvas_light_set_scale(canvas_light,_scale);
item_rect_changed();
}
@@ -107,7 +107,7 @@ void Light2D::set_scale( float p_scale) {
float Light2D::get_scale() const {
- return scale;
+ return _scale;
}
void Light2D::set_z_range_min( int p_min_z) {
@@ -322,7 +322,7 @@ Light2D::Light2D() {
shadow=false;
color=Color(1,1,1);
height=0;
- scale=1.0;
+ _scale=1.0;
z_min=-1024;
z_max=1024;
layer_min=0;