Renamed the mx/my coordinates in SpaceNode to more descriptive 'cursor'. This follows the naming in the View3D space, since this vector is used for essentially the same purpose (adding nodes at a specific location), although not used for any transform origin and not displayed in the editor.
Note: While renaming DNA properties is usually dangerous and can break files, in this case it is possible because the mx/my values are only used at runtime.
This commit is contained in:
@@ -330,8 +330,8 @@ static int node_mouse_select(Main *bmain, SpaceNode *snode, ARegion *ar, const i
|
||||
/* get mouse coordinates in view2d space */
|
||||
UI_view2d_region_to_view(&ar->v2d, mval[0], mval[1], &mx, &my);
|
||||
/* node_find_indicated_socket uses snode->mx/my */
|
||||
snode->mx = mx;
|
||||
snode->my = my;
|
||||
snode->cursor[0] = mx;
|
||||
snode->cursor[1] = my;
|
||||
|
||||
if (extend) {
|
||||
/* first do socket selection, these generally overlap with nodes.
|
||||
|
||||
Reference in New Issue
Block a user