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-09-24 19:10:08 +0400
committerTon Roosendaal <ton@blender.org>2005-09-24 19:10:08 +0400
commit0ce3341aaaeea41f61cbbfde892d1d216156f3bd (patch)
tree95cd7ec5f54929017df09496ac6059673f92629b /source/blender/src/butspace.c
parentabe9799c471dd0b139b1422a811dbe4963c50e33 (diff)
Created a new sub-context ("tab") for all physics related button panels.
There we can find now Particles, Fields & deflectors, Soft Body and Fluids. This also as preparation for more work on the particle side (becomes two panels). Also renamed panels, and made sure the name "Soft Body" is spelled every- where the same! It uses an icon as was designed long ago already. Needs some thinking...
Diffstat (limited to 'source/blender/src/butspace.c')
-rw-r--r--source/blender/src/butspace.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/src/butspace.c b/source/blender/src/butspace.c
index d9c7b7684e4..ca62281c4e5 100644
--- a/source/blender/src/butspace.c
+++ b/source/blender/src/butspace.c
@@ -423,9 +423,13 @@ void drawbutspace(ScrArea *sa, void *spacedata)
break;
case CONTEXT_OBJECT:
- /* no tabs */
- object_panels();
-
+ tab= sbuts->tab[CONTEXT_OBJECT];
+
+ if(tab==sbuts->tab[TAB_OBJECT_OBJECT])
+ object_panels();
+ else if(tab==sbuts->tab[TAB_OBJECT_PHYSICS])
+ physics_panels();
+
break;
case CONTEXT_SHADING:
tab= sbuts->tab[CONTEXT_SHADING];