mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Fix search for closest
This commit is contained in:
@@ -260,7 +260,8 @@ function helper_searchDB(db, x, y, radius, shared_workspace) {
|
||||
var tempConn = helper_createConnection(x, y,
|
||||
Blockly.NEXT_STATEMENT, shared_workspace);
|
||||
tempConn.sourceBlock_ = helper_makeSourceBlock(shared_workspace);
|
||||
return db.searchForClosest(tempConn, radius, 0, 0);
|
||||
var closest = db.searchForClosest(tempConn, radius, 0, 0);
|
||||
return closest.connection;
|
||||
}
|
||||
|
||||
function helper_makeSourceBlock(sharedWorkspace) {
|
||||
|
||||
Reference in New Issue
Block a user