changes for materials to treat them as shorts not int/chars (since they are stored...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 20 Sep 2011 06:25:15 +0000 (06:25 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 20 Sep 2011 06:25:15 +0000 (06:25 +0000)
commit13dfd8299758a5248613624e99a1643f35e2ff4e
tree6e10f1aa1c9fab187cae0172890153bb6ff5d252
parent2b1513dbdad785c0f95acbe195215706a2ee873b
changes for materials to treat them as shorts not int/chars (since they are stored as shorts intermally)
- converting nurbs to mesh was casting the material to unsigned char.
- subsurf was casting to char, then int -> short in a loop.
- have material functions take & return shorts.
16 files changed:
build_files/cmake/cmake_static_check_splint.py
source/blender/blenkernel/BKE_material.h
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/material.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/blenloader/intern/readfile.c
source/blender/collada/GeometryExporter.cpp
source/blender/collada/GeometryExporter.h
source/blender/collada/MeshImporter.cpp
source/blender/collada/MeshImporter.h
source/blender/editors/mesh/meshtools.c
source/blender/editors/space_view3d/drawmesh.c
source/blender/makesdna/DNA_material_types.h
source/blender/makesrna/intern/rna_curve.c
source/blender/render/intern/source/convertblender.c