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>2010-03-28 22:41:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-03-28 22:41:49 +0400
commit751a9975e4c633e1ea8818c1f2f07fd6020c0ec0 (patch)
tree1705b4fbc5cd5d6efca7c0a72c5eb7825e44e68d /source/blender/blenkernel
parenta99d584008f80f6f5361e1af507d8ed6bdd2fffd (diff)
[#21802] UVProject Modifier Crash
fix for bug in recent addition of panorama support
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/modifier.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c
index 5cda09cad85..96877a9ae9e 100644
--- a/source/blender/blenkernel/intern/modifier.c
+++ b/source/blender/blenkernel/intern/modifier.c
@@ -3717,9 +3717,10 @@ static DerivedMesh *uvprojectModifier_do(UVProjectModifierData *umd,
/* calculate projection matrix */
invert_m4_m4(projectors[i].projmat, projectors[i].ob->obmat);
+ projectors[i].uci= NULL;
+
if(projectors[i].ob->type == OB_CAMERA) {
cam = (Camera *)projectors[i].ob->data;
- projectors[i].uci= NULL;
if(cam->flag & CAM_PANORAMA) {
projectors[i].uci= project_camera_info(projectors[i].ob, NULL, aspx, aspy);