Changed TESTBASE and TESTBASE_LIB to check the hidden flag
Checked every instance of testbase to see this dosnt break anything, also changed TESTBASE and TESTBASELIB, both were used incorrectly in places. added error_libdata() for library error messages that are everywhere. added object_data_is_libdata to test if the object and its data's are from a library. fixed 2 crashs in adding Curve points to a library object (remember to check, verify_ipocurve returns NULL!) made duplicating and making dupli's real for lib objects possible, disabled joining into lib armatures and meshes.
This commit is contained in:
@@ -2536,7 +2536,7 @@ void logic_buts(void)
|
||||
ob= OBACT;
|
||||
|
||||
if(ob==0) return;
|
||||
uiSetButLock(ob->id.lib!=0, "Can't edit library data");
|
||||
uiSetButLock(object_data_is_libdata(ob), ERROR_LIBDATA_MESSAGE);
|
||||
|
||||
sprintf(name, "buttonswin %d", curarea->win);
|
||||
block= uiNewBlock(&curarea->uiblocks, name, UI_EMBOSS, UI_HELV, curarea->win);
|
||||
@@ -2622,7 +2622,7 @@ void logic_buts(void)
|
||||
for(a=0; a<count; a++) {
|
||||
ob= (Object *)idar[a];
|
||||
uiClearButLock();
|
||||
uiSetButLock(ob->id.lib!=0, "Can't edit library data");
|
||||
uiSetButLock(object_data_is_libdata(ob), ERROR_LIBDATA_MESSAGE);
|
||||
|
||||
if( (ob->scavisflag & OB_VIS_SENS) == 0) continue;
|
||||
|
||||
@@ -2693,7 +2693,7 @@ void logic_buts(void)
|
||||
for(a=0; a<count; a++) {
|
||||
ob= (Object *)idar[a];
|
||||
uiClearButLock();
|
||||
uiSetButLock(ob->id.lib!=0, "Can't edit library data");
|
||||
uiSetButLock(object_data_is_libdata(ob), ERROR_LIBDATA_MESSAGE);
|
||||
if( (ob->scavisflag & OB_VIS_CONT) == 0) continue;
|
||||
|
||||
/* presume it is only objects for now */
|
||||
@@ -2761,7 +2761,7 @@ void logic_buts(void)
|
||||
for(a=0; a<count; a++) {
|
||||
ob= (Object *)idar[a];
|
||||
uiClearButLock();
|
||||
uiSetButLock(ob->id.lib!=0, "Can't edit library data");
|
||||
uiSetButLock(object_data_is_libdata(ob), ERROR_LIBDATA_MESSAGE);
|
||||
if( (ob->scavisflag & OB_VIS_ACT) == 0) continue;
|
||||
|
||||
/* presume it is only objects for now */
|
||||
|
||||
Reference in New Issue
Block a user