Added better grouping for text markers with a separate group field (instead of using flags). The lower two bytes of the group are used for python scripts while the upper two (or more) are reserved for internal grouping. Plenty either way.
This commit is contained in:
@@ -708,7 +708,9 @@ static PyObject *Text_markSelection( BPy_Text * self, PyObject * args )
|
||||
clr[2] = (char) (b&0xFF);
|
||||
clr[3] = 255;
|
||||
|
||||
txt_add_marker(text, text->curl, text->curc, text->selc, clr, ((group+2)<<16)|flags);
|
||||
group &= 0xFFFF;
|
||||
|
||||
txt_add_marker(text, text->curl, text->curc, text->selc, clr, group, flags);
|
||||
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user