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:
authorTon Roosendaal <ton@blender.org>2005-12-17 17:05:40 +0300
committerTon Roosendaal <ton@blender.org>2005-12-17 17:05:40 +0300
commit128b187db1561b65d0cc558ae3185d032eb49c17 (patch)
tree3076da03e3016b4f57e495e1d708edcb0d672b34 /source/blender/src/editview.c
parent16aa8ea1b0b951d15dc04b2c9412a6b58f63447b (diff)
Orange: New option "Shadow Bias", to extend the boundary between shadow or
no shadow a little bit. Uses same threshold function as the "Bias" button. (That latter still works, and will use an automatic bias value based on the geometry, to prevent terminator errors in raytracing). Anyhoo, with this manual bias you can get rid of terminator problems for weird diffuse shaders now as well (like tangent or fresnel). Committed a few more files than needed, that's just code cleanup.
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r--source/blender/src/editview.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index 458be9a0897..73fff83f98d 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -1026,8 +1026,6 @@ static unsigned int samplerect(unsigned int *buf, int size, unsigned int dontdo)
}
#endif
-#define SELECTSIZE 51
-
void set_active_base(Base *base)
{
Base *tbase;
@@ -1035,6 +1033,7 @@ void set_active_base(Base *base)
BASACT= base;
if(base) {
+
/* signals to buttons */
redraw_test_buttons(base->object);
@@ -1060,13 +1059,11 @@ void set_active_object(Object *ob)
{
Base *base;
- base= FIRSTBASE;
- while(base) {
+ for(base= FIRSTBASE; base; base= base->next) {
if(base->object==ob) {
set_active_base(base);
return;
}
- base= base->next;
}
}