node warning fixes
[blender.git] / source / blender / editors / space_node / node_draw.c
index 3150e170a4f3748619953a27e4057a6c875aed6c..1ebb7e13193ab56399d86f7d4b93ba4b8f3a3d6a 100644 (file)
@@ -567,6 +567,8 @@ static uiBlock *socket_vector_menu(bContext *C, ARegion *ar, void *socket_v)
        layout= uiLayoutColumn(uiBlockLayout(block, UI_LAYOUT_VERTICAL, UI_LAYOUT_PANEL, sock->locx, sock->locy-8, 140, 20, U.uistyles.first), 0);
        
        uiItemR(layout, "", 0, &ptr, "default_value", UI_ITEM_R_EXPAND);
+       
+       return block;
 }
 
 /* not a callback */
@@ -764,8 +766,7 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN
                        RNA_pointer_create(&ntree->id, &RNA_NodeSocket, sock, &ptr);
                        
                        if(node->block && sock->link==NULL) {
-                               float *butpoin= sock->ns.vec;
-                               
+                       
                                if(sock->type==SOCK_VALUE) {
                                        bt=uiDefButR(node->block, NUM, B_NODE_EXEC, sock->name,
                                                         (short)sock->locx+NODE_DYS, (short)(sock->locy)-9, (short)node->width-NODE_DY, 17,