forked from bartvdbraak/blender
buttons editing didnt let lib-obdata to changed once set (thanks for the report broken)
NMesh (error in last commit).
This commit is contained in:
parent
f19b56a541
commit
3d6f9b804f
@ -1303,7 +1303,7 @@ static PyObject *NMesh_getSelectedFaces( PyObject * self, PyObject * args )
|
||||
totfaces= me->totface;
|
||||
|
||||
if( flag ) {
|
||||
for( i = 0; i < me->totface; i++ ) {
|
||||
for( i = 0; i < totfaces; i++ ) {
|
||||
if( mf[i].flag & ME_FACE_SEL ) {
|
||||
pyval = PyInt_FromLong( i );
|
||||
PyList_Append( l, pyval );
|
||||
@ -1311,7 +1311,7 @@ static PyObject *NMesh_getSelectedFaces( PyObject * self, PyObject * args )
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for( i = 0; i < me->totface; i++ ) {
|
||||
for( i = 0; i < totfaces; i++ ) {
|
||||
if( mf[i].flag & ME_FACE_SEL )
|
||||
PyList_Append( l, PyList_GetItem( nm->faces, i ) );
|
||||
}
|
||||
|
@ -4447,7 +4447,7 @@ static void editing_panel_links(Object *ob)
|
||||
block= uiNewBlock(&curarea->uiblocks, "editing_panel_links", UI_EMBOSS, UI_HELV, curarea->win);
|
||||
if(uiNewPanel(curarea, block, "Link and Materials", "Editing", 0, 0, 318, 204)==0) return;
|
||||
|
||||
uiSetButLock(object_data_is_libdata(ob), ERROR_LIBDATA_MESSAGE);
|
||||
uiSetButLock((ob && ob->id.lib), ERROR_LIBDATA_MESSAGE);
|
||||
|
||||
buttons_active_id(&id, &idfrom);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user