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:
2007-04-22 22:08:19 +00:00
parent 1c52e2cfa4
commit 94ad8c810c
30 changed files with 197 additions and 136 deletions

View File

@@ -1419,16 +1419,12 @@ void set_faceselect() /* toggle */
Mesh *me = 0;
if(ob==NULL) return;
if(ob->id.lib) {
error("Can't edit library data");
if(object_data_is_libdata(ob)) {
error_libdata();
return;
}
me= get_mesh(ob);
if(me && me->id.lib) {
error("Can't edit library data");
return;
}
scrarea_queue_headredraw(curarea);
@@ -1517,16 +1513,13 @@ void set_texturepaint() /* toggle */
scrarea_queue_headredraw(curarea);
if(ob==NULL) return;
if(ob->id.lib) {
error("Can't edit library data");
if (object_data_is_libdata(ob)) {
error_libdata();
return;
}
me= get_mesh(ob);
if(me && me->id.lib) {
error("Can't edit library data");
return;
}
if(me)
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);