When in texture buttons, selecting Lamp, Camera or other Object didnt
update the shown texture correctly. Now it nicely switches.
This commit is contained in:
Ton Roosendaal
2004-05-09 21:37:36 +00:00
parent 366f58fca7
commit 6c7747a6f1

View File

@@ -336,6 +336,9 @@ void butspace_context_switch(SpaceButs *buts, Base *new)
}
else if(tab == TAB_SHADING_TEX) {
if(new->object->type==OB_LAMP) buts->texfrom= 2;
else if(new->object->type==OB_CAMERA) buts->texfrom= 1;
else buts->texfrom= 0;
}
else if(tab == TAB_SHADING_RAD) {
}