Merge pull request #1591 from MostafaHassan/pr_FixCrashInVisualShader

(Fix crash) in visual shader for curve remap node
This commit is contained in:
Juan Linietsky 2015-04-07 20:14:10 -03:00
commit b1bf4fcef2
2 changed files with 2 additions and 2 deletions

View file

@ -1689,7 +1689,7 @@ bool GDScript::_update_exports() {
}
if (c->extends_used && String(c->extends_file)!="") {
if (c->extends_used && String(c->extends_file)!="" && String(c->extends_file) != get_path()) {
String path = c->extends_file;
if (path.is_rel_path()) {

View file

@ -376,7 +376,7 @@ void GraphCurveMapEdit::_input_event(const InputEvent& p_event) {
update();
}
if (p_event.type==InputEvent::MOUSE_MOTION && grabbing) {
if (p_event.type==InputEvent::MOUSE_MOTION && grabbing && grabbed != -1) {
Point2 p = Vector2(p_event.mouse_button.x,p_event.mouse_button.y)/get_size();
p.y=1.0-p.y;