Fix hair random rotation limited to 180 degrees
[blender.git] / source / blender / blenloader / intern / versioning_270.c
index 1b91d3d869e7d778518d19ede97ab77a02c21943..49e81b1cfff2940fcd4d8d5655d0b7af07db9e38 100644 (file)
@@ -799,4 +799,12 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
                        }
                }
        }
+
+       if (!MAIN_VERSION_ATLEAST(main, 274, 5)) {
+               /* Particle random phase range doubled. */
+               ParticleSettings *part;
+               for (part = main->particle.first; part; part = part->id.next) {
+                       part->randphasefac *= 0.5f;
+               }
+       }
 }