fix long standing grind bug
[carveJwlIkooP6JGAAIwe30JlM.git] / model.h
diff --git a/model.h b/model.h
index e37e3239bd8ab173f94870dda2a8bdf8e23911ac..686a42849b5e6cdf630ac5d448d0a2e247e1b6e4 100644 (file)
--- a/model.h
+++ b/model.h
@@ -36,7 +36,8 @@ enum material_flag
    k_material_flag_grow_grass       = 0x00000004,
    k_material_flag_grindable        = 0x00000008,
    k_material_flag_invisible        = 0x00000010,
-   k_material_flag_boundary         = 0x00000020
+   k_material_flag_boundary         = 0x00000020,
+   k_material_flag_preview_visibile = 0x00000040
 };
 
 #pragma pack(push,1)
@@ -447,6 +448,7 @@ VG_STATIC const char *mdl_pstr( mdl_context *mdl, u32 pstr )
    return ((char *)mdl_arritm( &mdl->strings, pstr )) + 4;
 }
 
+
 VG_STATIC int 
 mdl_pstreq( mdl_context *mdl, u32 pstr, const char *str, u32 djb2 )
 {
@@ -458,6 +460,9 @@ mdl_pstreq( mdl_context *mdl, u32 pstr, const char *str, u32 djb2 )
    else return 0;
 }
 
+#define MDL_CONST_PSTREQ( MDL, Q, CONSTSTR )\
+   mdl_pstreq( MDL, Q, CONSTSTR, vg_strdjb2( CONSTSTR ) )
+
 /*
  * Simple mesh interface for OpenGL
  * ----------------------------------------------------------------------------