Bug #1264
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:
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user