~jose-falanga-5/godot/master

« back to all changes in this revision

Viewing changes to scene/gui/spin_box.cpp

  • Committer: Juan Linietsky
  • Date: 2015-08-30 13:10:51 UTC
  • Revision ID: git-v1:947b28324895ba13017d780d392a01ff745c77dc
-fix compile issue (pow)
-ask user for track to call nodes when adding call track

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
                if (drag.enabled) {
126
126
 
127
127
                        float diff_y = drag.mouse_pos.y - cpos.y;
128
 
                        diff_y=pow(ABS(diff_y),1.8)*SGN(diff_y);
 
128
                        diff_y=Math::pow(ABS(diff_y),1.8)*SGN(diff_y);
129
129
                        diff_y*=0.1;
130
130
 
131
131
                        drag.mouse_pos=cpos;