Cycles: svn merge -r36747:36777 https://svn.blender.org/svnroot/bf-blender/trunk...
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 19 May 2011 12:37:26 +0000 (12:37 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 19 May 2011 12:37:26 +0000 (12:37 +0000)
1  2 
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/world.c
source/blender/blenloader/intern/readfile.c
source/blender/makesdna/DNA_view3d_types.h
source/blender/makesrna/intern/rna_space.c

@@@ -867,11 -866,9 +867,12 @@@ Lamp *copy_lamp(Lamp *la
        }
        
        lan->curfalloff = curvemapping_copy(la->curfalloff);
 +
 +      if(la->nodetree)
 +              lan->nodetree= ntreeCopyTree(la->nodetree);
        
-       if (la->preview) lan->preview = BKE_previewimg_copy(la->preview);
+       if(la->preview)
+               lan->preview = BKE_previewimg_copy(la->preview);
        
        return lan;
  }
@@@ -131,12 -123,10 +131,13 @@@ World *copy_world(World *wrld
                        id_us_plus((ID *)wrldn->mtex[a]->tex);
                }
        }
 +
 +      if(wrld->nodetree)
 +              wrldn->nodetree= ntreeCopyTree(wrld->nodetree);
        
-       if (wrld->preview) wrldn->preview = BKE_previewimg_copy(wrld->preview);
+       if(wrld->preview)
+               wrldn->preview = BKE_previewimg_copy(wrld->preview);
 -
 +      
        return wrldn;
  }