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.
- Open your corrupted .blend file in the older version of Blender (I found revision 42181 and revision 42195 works).
- 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)- Save your fixed .blend file with a different test name.
- 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.
16 Comments
Question: What is better on that solution? It's basically the same..only longer and more steps..
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."
Exactly as I was suffering. This method cured the problem for me.
Thank you!
Hi Dusty,
That is great to hear!
Thank you for your feedback,
David
And what if someone needs Blender revision 42195 for 64 bit linux Ubuntu?
If Graphicall doesn't offer a specific version, you can always check it out from SVN and build it yourself..
Err... no easier solution than build from scratch an outdated release?
Maybe you can also grab an older official release?
http://download.blender.org/release/
Ah! Sure but... I had the idea it had to be a precise build between revision 42181 and revision 42195.
Or maybe not?
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
Hi David, thanks. :)
Yes, the Cycles node issue was my concern but, oh well, I can append materials after all.
Best regards
EnV
Why? It’s not hard. My quad-core i5 only takes 2 minutes to build Blender from source.
There's the solution I was looking for. Thanks coders!
Hi Patrizio Melis,
Great to hear it worked for you.
Wouldn't call myself a coder but thank you for your feedback.
David
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?
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