Patch #18462: Fisheye (Dome) and Spherical Panoramic mode in BGE.
[blender.git] / source / blender / blenkernel / intern / scene.c
index 1727edc10fce3735c32401c34952683b1a500fe5..5def3577218b89ca256f860fcfb84cf987e89008 100644 (file)
@@ -230,6 +230,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;
@@ -775,3 +780,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