2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323...
[blender.git] / source / blender / blenkernel / intern / scene.c
index 22f2674..5c936c3 100644 (file)
@@ -243,6 +243,11 @@ Scene *add_scene(char *name)
        sce->r.threads= 1;
        
        sce->r.stereomode = 1;  // no stereo
+       sce->r.domeangle = 180;
+       sce->r.domemode = 1;
+       sce->r.domesize = 1.0f;
+       sce->r.domeres = 4;
+       sce->r.domeresbuf = 1.0f;
 
        sce->r.simplify_subsurf= 6;
        sce->r.simplify_particles= 1.0f;
@@ -708,3 +713,14 @@ float get_render_aosss_error(RenderData *r, float error)
                return error;
 }
 
+void free_dome_warp_text(struct Text *txt)
+{
+       Scene *scene;
+
+       scene = G.main->scene.first;
+       while(scene) {
+               if (scene->r.dometext == txt)
+                       scene->r.dometext = NULL;
+               scene = scene->id.next;
+       }
+}
\ No newline at end of file