- BGE crash fix when casting a ray to the same location as the object from python.

- Incorrect Mathutils vector docstrings.
- last rayshade commit had an incomplete comment.
This commit is contained in:
Campbell Barton
2009-08-27 06:55:54 +00:00
parent 0db2975ff6
commit 324b3fbe74
3 changed files with 8 additions and 8 deletions

View File

@@ -1240,7 +1240,9 @@ void ray_trace(ShadeInput *shi, ShadeResult *shr)
if(shi->combinedflag & SCE_PASS_REFLECT) {
/* values in shr->spec can be greater then 1.0.
* in the case when it is 1.0 diff */
* In this case the mircol uses a zero blending factor, so ignoring it is ok.
* Fixes bug #18837 - when the spec is higher then 1.0,
* diff can become a negative color - Campbell */
f1= 1.0f-i;