Corrupted Delta Scaling .blend Files Repair Solution

Files saved with svn trunk Blender, between Nov 29 and Dec 4, have a delta scaling issue, which makes objects appear zero scaled. A quick fix was supplied in the most recent Developer Meeting Notes, but David Black proposed a better solution.

I haven’t been able to verify this solution – please leave feedback!

David Black writes:

I have just found a method of fully repairing corrupted .blend files caused by the recent delta scaling issues, you need an older version of Blender to perform this fix, from just before the delta scaling problems.

My fix is not the same as the one mentioned several days ago, the original fix only allowed corrupted files to be opened in new versions of Blender, if the file was opened in Blender 2.60a it was obvious that the file is still corrupt, any backwards compatibility was lost.

This method fully repairs the files, so they can be opened in any version of Blender, hence the 2.60a screen shots.

  1. Open your corrupted .blend file in the older version of Blender (I found revision 42181 and revision 42195 works).
  2. In a python console window enter the line below, then press ‘Enter’ on your keyboard twice.

    for ob in bpy.data.objects: ob.delta_scale = (0,0,0)
  3. Save your fixed .blend file with a different test name.
  4. Test the newly saved .blend file by opening it with Blender 2.60a, everything should appear correctly scaled. The fixed .blend file also displays correctly in new versions of Blender.

This method has worked for me (tested several times) and have now fully restored 5 of my corrupted .blend files.

Hope this is helpful and works for others!

David Black

PS: If anyone needs Blender revision 42195 it is available here.


It looks like you're using an ad blocker. I really need the income to keep this site running, so please enable advertisements on BlenderNation, or leave me a small donation. Everything helps!

Thanks!
  • plasmasolutions

    Question: What is better on that solution? It’s basically the same..only longer and more steps..

    • http://www.blendernation.com Bart Veldhuizen

      David writes:

      “My fix is not the same as the one mentioned several days ago, the original fix only allowed corrupted files to be opened in new versions of Blender, if the file was opened in Blender 2.60a it was obvious that the file is still corrupt, any backwards compatibility was lost.”

      • Dusty

        Exactly as I was suffering. This method cured the problem for me.

        Thank you!

        • David Black

          Hi Dusty,

          That is great to hear!

          Thank you for your feedback,

          David

  • EnV

    And what if someone needs Blender revision 42195 for 64 bit linux Ubuntu?

    • http://www.blendernation.com Bart Veldhuizen

      If Graphicall doesn’t offer a specific version, you can always check it out from SVN and build it yourself..

      • EnV

        Err… no easier solution than build from scratch an outdated release?

        • http://www.blendernation.com Bart Veldhuizen

          Maybe you can also grab an older official release?

          http://download.blender.org/release/

          • EnV

            Ah! Sure but… I had the idea it had to be a precise build between revision 42181 and revision 42195.
            Or maybe not?

          • David Black

            Hi EnV,

            Any version from before the delta scaling problem should work, just be aware that very early versions might alter Cycles nodes, so it is best to use versions from just before the delta scaling problem.

            David

          • EnV

            Hi David, thanks. :)
            Yes, the Cycles node issue was my concern but, oh well, I can append materials after all.
            Best regards

            EnV

        • Lawrence D’Oliveiro

          Why? It’s not hard. My quad-core i5 only takes 2 minutes to build Blender from source.

  • Patrizio Melis

    There’s the solution I was looking for. Thanks coders!

    • David Black

      Hi Patrizio Melis,

      Great to hear it worked for you.
      Wouldn’t call myself a coder but thank you for your feedback.

      David

  • Oscurart

    The script that worked for me is:

    import bpyfor OBJECT in bpy.context.scene.objects[:]:    OBJECT.delta_scale = (1,) * 3In your script the scale is set to zero, is correct?

    • David Black

      Hi Oscurart,

      After applying the fix you mention to a copy of your file, try opening your file with Blender 2.60a, you will see all objects are still scaled incorrectly, the file is interpenetrated for new versions but in effect the file remains corrupt.  The method I mention overcomes this issue and files can once again be opened in any version of Blender showing the correct scaling.

      David