Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-11-15 06:05:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-15 06:05:32 +0400
commite59ab6486f9e7285815671044b785c28365d5165 (patch)
tree4a9406c8181a817a8b96243ae167acc740ed20f7 /source/blender/blenloader
parent35ab6cabbf62187290e417dba6d8b18cd4fe18de (diff)
parentb1019a56b54294fc91293c5c43ef46d54950ae84 (diff)
svn merge -r41751:41779 ^/trunk/blender
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 357cbffc717..c1da40f4b2a 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1556,14 +1556,14 @@ static void IDP_DirectLinkProperty(IDProperty *prop, int switch_endian, FileData
IDP_DirectLinkIDPArray(prop, switch_endian, fd);
break;
case IDP_DOUBLE:
- /*erg, stupid doubles. since I'm storing them
- in the same field as int val; val2 in the
- IDPropertyData struct, they have to deal with
- endianness specifically
-
- in theory, val and val2 would've already been swapped
- if switch_endian is true, so we have to first unswap
- them then reswap them as a single 64-bit entity.
+ /* erg, stupid doubles. since I'm storing them
+ * in the same field as int val; val2 in the
+ * IDPropertyData struct, they have to deal with
+ * endianness specifically
+
+ * in theory, val and val2 would've already been swapped
+ * if switch_endian is true, so we have to first unswap
+ * them then reswap them as a single 64-bit entity.
*/
if (switch_endian) {
@@ -3579,8 +3579,8 @@ static void lib_link_mtface(FileData *fd, Mesh *me, MTFace *mtface, int totface)
int i;
/* Add pseudo-references (not fake users!) to images used by texface. A
- little bogus; it would be better if each mesh consistently added one ref
- to each image it used. - z0r */
+ * little bogus; it would be better if each mesh consistently added one ref
+ * to each image it used. - z0r */
for (i=0; i<totface; i++, tf++) {
tf->tpage= newlibadr(fd, me->id.lib, tf->tpage);
if(tf->tpage && tf->tpage->id.us==0)
@@ -3851,7 +3851,7 @@ static void direct_link_mesh(FileData *fd, Mesh *mesh)
}
/* if multires is present but has no valid vertex data,
- there's no way to recover it; silently remove multires */
+ * there's no way to recover it; silently remove multires */
if(mesh->mr && !mesh->mr->verts) {
multires_free(mesh->mr);
mesh->mr = NULL;
@@ -8926,7 +8926,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
/* make sure old cameras have title safe on */
if (!(cam->flag & CAM_SHOWTITLESAFE))
- cam->flag |= CAM_SHOWTITLESAFE;
+ cam->flag |= CAM_SHOWTITLESAFE;
/* set an appropriate camera passepartout alpha */
if (!(cam->passepartalpha)) cam->passepartalpha = 0.2f;
@@ -9223,7 +9223,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
for(group= main->group.first; group; group= group->id.next)
if(group->layer==0)
- group->layer= (1<<20)-1;
+ group->layer= (1<<20)-1;
/* History fix (python?), shape key adrcode numbers have to be sorted */
sort_shape_fix(main);
@@ -12448,10 +12448,10 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
{
Camera *cam;
for(cam= main->camera.first; cam; cam= cam->id.next) {
- if (cam->sensor_x < 0.01)
+ if (cam->sensor_x < 0.01f)
cam->sensor_x = DEFAULT_SENSOR_WIDTH;
- if (cam->sensor_y < 0.01)
+ if (cam->sensor_y < 0.01f)
cam->sensor_y = DEFAULT_SENSOR_HEIGHT;
}
}