Fix a small typo-bug in UVProject modifier (using v3 instead of v4 to detect tri...
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 20 Dec 2011 09:57:01 +0000 (09:57 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 20 Dec 2011 09:57:01 +0000 (09:57 +0000)
source/blender/modifiers/intern/MOD_uvproject.c

index 3146d1c9d5dd83e5a9ba53abd80932dc8cd464bb..71292c6e5211f17abef3e95f5ce8d8d8d574444c 100644 (file)
@@ -290,7 +290,7 @@ static DerivedMesh *uvprojectModifier_do(UVProjectModifierData *umd,
                                        project_from_camera(tface->uv[0], coords[mf->v1], projectors[0].uci);
                                        project_from_camera(tface->uv[1], coords[mf->v2], projectors[0].uci);
                                        project_from_camera(tface->uv[2], coords[mf->v3], projectors[0].uci);
-                                       if(mf->v3)
+                                       if(mf->v4)
                                                project_from_camera(tface->uv[3], coords[mf->v4], projectors[0].uci);
                                }
                                else {
@@ -343,7 +343,7 @@ static DerivedMesh *uvprojectModifier_do(UVProjectModifierData *umd,
                                        project_from_camera(tface->uv[0], coords[mf->v1], best_projector->uci);
                                        project_from_camera(tface->uv[1], coords[mf->v2], best_projector->uci);
                                        project_from_camera(tface->uv[2], coords[mf->v3], best_projector->uci);
-                                       if(mf->v3)
+                                       if(mf->v4)
                                                project_from_camera(tface->uv[3], coords[mf->v4], best_projector->uci);
                                }
                                else {