fixed make local bug; it was only looking at editable objects, which of course lib...
authorJoseph Eagar <joeedh@gmail.com>
Tue, 13 Apr 2010 16:52:18 +0000 (16:52 +0000)
committerJoseph Eagar <joeedh@gmail.com>
Tue, 13 Apr 2010 16:52:18 +0000 (16:52 +0000)
source/blender/editors/object/object_relations.c

index 52d6a7a7b8b4b1cbf1d6ffcb43f4c2aef8d831c4..a6a955e6df8cae54a4c2b965cfcf3462d54a4c21 100644 (file)
@@ -1710,21 +1710,21 @@ static int make_local_exec(bContext *C, wmOperator *op)
 
        clear_id_newpoins();
        
-       CTX_DATA_BEGIN(C, Object*, ob, selected_editable_objects) {
+       CTX_DATA_BEGIN(C, Object*, ob, selected_objects) {
                if(ob->id.lib)
                        id_make_local(&ob->id, 0);
        }
        CTX_DATA_END;
        
        /* maybe object pointers */
-       CTX_DATA_BEGIN(C, Object*, ob, selected_editable_objects) {
+       CTX_DATA_BEGIN(C, Object*, ob, selected_objects) {
                if(ob->id.lib==NULL) {
                        ID_NEW(ob->parent);
                }
        }
        CTX_DATA_END;
 
-       CTX_DATA_BEGIN(C, Object*, ob, selected_editable_objects) {
+       CTX_DATA_BEGIN(C, Object*, ob, selected_objects) {
                id= ob->data;
                        
                if(id && mode>1) {
@@ -1742,7 +1742,7 @@ static int make_local_exec(bContext *C, wmOperator *op)
        CTX_DATA_END;
 
        if(mode>1) {
-               CTX_DATA_BEGIN(C, Object*, ob, selected_editable_objects) {
+               CTX_DATA_BEGIN(C, Object*, ob, selected_objects) {
                        if(ob->type==OB_LAMP) {
                                la= ob->data;