]> granicus.if.org Git - file/commitdiff
improved blender magic
authorChristos Zoulas <christos@zoulas.com>
Sun, 16 Dec 2007 04:29:20 +0000 (04:29 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 16 Dec 2007 04:29:20 +0000 (04:29 +0000)
magic/Magdir/blender

index 01d4e54f3ee7208355a6c6d3c00674b91502664f..6ef79507ef9b1a264b91c6ca8d83743a21e4c9f8 100644 (file)
@@ -1,17 +1,37 @@
 #------------------------------------------------------------------------------
-# blender: file(1) magic for Blender 3D data files
+# blender: file(1) magic for Blender 3D related files
 #
-# Coded by Guillermo S. Romero <gsromero@alumnos.euitt.upm.es> using the
-# data from Ton Roosendaal <ton@blender.nl>. Ton or his company do not
-# support the rule, so mail GSR if problems with it. Rule version: 1.1.
-# You can get latest version with comments and details about the format
-# at http://acd.asoc.euitt.upm.es/~gsromero/3d/blender/magic.blender
+# Native format rule v1.2. For questions use the developers list 
+# http://lists.blender.org/mailman/listinfo/bf-committers
+# GLOB chunk was moved near start and provides subversion info since 2.42 
 
-0      string  =BLENDER        Blender3D,
->7     string  =_              saved as 32-bits
->7      string =-              saved as 64-bits
->8     string  =v              little endian
->8     string  =V              big endian
->9     byte    x               with version %c.
->10    byte    x               \b%c
->11    byte    x               \b%c
+0              string  =BLENDER        Blender3D,
+>7             string  =_              saved as 32-bits
+>>8            string  =v              little endian
+>>>9           byte    x               with version %c.
+>>>10          byte    x               \b%c
+>>>11          byte    x               \b%c
+>>>0x40                string  =GLOB           \b.
+>>>>0x58       leshort x               \b%.4d
+>>8            string  =V              big endian
+>>>9           byte    x               with version %c.
+>>>10          byte    x               \b%c
+>>>11          byte    x               \b%c
+>>>0x40                string  =GLOB           \b.
+>>>>0x58       beshort x               \b%.4d
+>7             string  =-              saved as 64-bits
+>>8            string  =v              little endian
+>>9            byte    x               with version %c.
+>>10           byte    x               \b%c
+>>11           byte    x               \b%c
+>>0x44         string  =GLOB           \b.
+>>>0x60                leshort x               \b%.4d
+>>8            string  =V              big endian
+>>>9           byte    x               with version %c.
+>>>10          byte    x               \b%c
+>>>11          byte    x               \b%c
+>>>0x44                string  =GLOB           \b.
+>>>>0x60       beshort x               \b%.4d
+
+# Scripts that run in the embeded Python interpreter
+0              string  #!BPY           Blender3D BPython script