Revision: 15827
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15827
Author:   broken
Date:     2008-07-28 02:21:34 +0200 (Mon, 28 Jul 2008)

Log Message:
-----------
* Fix for Aligorith's fix for my mistaken uninitialised variable in outliner.c 
- it was never needed in the first place.

Modified Paths:
--------------
    trunk/blender/source/blender/src/outliner.c

Modified: trunk/blender/source/blender/src/outliner.c
===================================================================
--- trunk/blender/source/blender/src/outliner.c 2008-07-27 23:40:13 UTC (rev 
15826)
+++ trunk/blender/source/blender/src/outliner.c 2008-07-28 00:21:34 UTC (rev 
15827)
@@ -3718,13 +3718,6 @@
                                uiButSetFunc(bt, restrictbutton_modifier_cb, 
ob, NULL);
                                uiButSetFlag(bt, UI_NO_HILITE);
                                
-                               /*
-                               bt= uiDefIconButBitI(block, ICONTOGN, 
eModifierMode_Editmode, REDRAWALL, VICON_EDIT, 
-                                               
(int)soops->v2d.cur.xmax-OL_TOG_RESTRICT_SELECTX, te->ys, 17, OL_H-1, 
&(md->mode), 0, 0, 0, 0, "Restrict/Allow selection in the 3D View");
-                               uiButSetFunc(bt, restrictbutton_modifier_cb, 
ob, NULL);
-                               uiButSetFlag(bt, UI_NO_HILITE);
-                               */
-                               
                                bt= uiDefIconButBitI(block, ICONTOGN, 
eModifierMode_Render, REDRAWALL, ICON_RESTRICT_RENDER_OFF, 
                                                
(int)soops->v2d.cur.xmax-OL_TOG_RESTRICT_RENDERX, te->ys, 17, OL_H-1, 
&(md->mode), 0, 0, 0, 0, "Restrict/Allow renderability");
                                uiButSetFunc(bt, restrictbutton_modifier_cb, 
ob, NULL);
@@ -3733,24 +3726,20 @@
                        else if(tselem->type==TSE_POSE_CHANNEL)  {
                                bPoseChannel *pchan= (bPoseChannel 
*)te->directdata;
                                Bone *bone = pchan->bone;
-                               
-                               ob = (Object *)tselem->id;
-                               
+
                                uiBlockSetEmboss(block, UI_EMBOSSN);
                                bt= uiDefIconButBitI(block, ICONTOG, 
BONE_HIDDEN_P, REDRAWALL, ICON_RESTRICT_VIEW_OFF, 
                                                
(int)soops->v2d.cur.xmax-OL_TOG_RESTRICT_VIEWX, te->ys, 17, OL_H-1, 
&(bone->flag), 0, 0, 0, 0, "Restrict/Allow visibility in the 3D View");
-                               uiButSetFunc(bt, restrictbutton_bone_cb, ob, 
NULL);
+                               uiButSetFunc(bt, restrictbutton_bone_cb, NULL, 
NULL);
                                uiButSetFlag(bt, UI_NO_HILITE);
                        }
                        else if(tselem->type==TSE_EBONE)  {
                                EditBone *ebone= (EditBone *)te->directdata;
-                               
-                               ob = (Object *)tselem->id;
-                               
+
                                uiBlockSetEmboss(block, UI_EMBOSSN);
                                bt= uiDefIconButBitI(block, ICONTOG, 
BONE_HIDDEN_A, REDRAWALL, ICON_RESTRICT_VIEW_OFF, 
                                                
(int)soops->v2d.cur.xmax-OL_TOG_RESTRICT_VIEWX, te->ys, 17, OL_H-1, 
&(ebone->flag), 0, 0, 0, 0, "Restrict/Allow visibility in the 3D View");
-                               uiButSetFunc(bt, restrictbutton_bone_cb, ob, 
NULL);
+                               uiButSetFunc(bt, restrictbutton_bone_cb, NULL, 
NULL);
                                uiButSetFlag(bt, UI_NO_HILITE);
                        }
                }


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to