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
path: root/source
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2005-08-11 20:39:51 +0400
committerKent Mein <mein@cs.umn.edu>2005-08-11 20:39:51 +0400
commit841ddb46803ab381cd238f8ad71465ccb660d9e0 (patch)
tree29359264c8e0a94bf1d99d5b78b4c4ba2a85a0cf /source
parent2cb9c4db0c3d560933dee0c481fcf09064d6e5ec (diff)
A couple of small fixes...
I removed config.h code from the files that had them. effect.c had nested /* so cleaned that up... added a newline to vector.c to shut gcc up ;) buttons_editing.c had a possible unintalized var (height) so I gave it a default value. removed an unused var i in interface_draw.c removed an unused var mti in outliner.c in BL_SkinDeformer.cpp commented out a call to bDeformGroup->data which no longer exists so it compiles again. Kent
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/effect.c6
-rw-r--r--source/blender/python/api2_2x/vector.c3
-rw-r--r--source/blender/src/buttons_editing.c7
-rw-r--r--source/blender/src/interface_draw.c8
-rw-r--r--source/blender/src/outliner.c5
-rw-r--r--source/gameengine/Converter/BL_SkinDeformer.cpp7
6 files changed, 10 insertions, 26 deletions
diff --git a/source/blender/blenkernel/intern/effect.c b/source/blender/blenkernel/intern/effect.c
index 393eab16308..a073e9749da 100644
--- a/source/blender/blenkernel/intern/effect.c
+++ b/source/blender/blenkernel/intern/effect.c
@@ -76,10 +76,6 @@
#include "render.h" // externtex, bad level call (ton)
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
Effect *add_effect(int type)
{
Effect *eff=0;
@@ -1438,7 +1434,7 @@ int SoftBodyDetectCollision(float opco[3], float npco[3], float colco[3],
DispListMesh *disp_mesh = 0;
MFace *mface;
Object *copyob;
- /* do object level stuff
+ /* do object level stuff */
/* need to have user control for that since it depends on model scale */
innerfacethickness =-ob->pd->pdef_sbift;
outerfacethickness =ob->pd->pdef_sboft;
diff --git a/source/blender/python/api2_2x/vector.c b/source/blender/python/api2_2x/vector.c
index 7b119660156..07599f6ba4a 100644
--- a/source/blender/python/api2_2x/vector.c
+++ b/source/blender/python/api2_2x/vector.c
@@ -688,4 +688,5 @@ PyObject *Vector_Negate(VectorObject * self)
return EXPP_incr_ret((PyObject*)self);
}
//#######################################################################
-//#############################DEPRECATED################################ \ No newline at end of file
+//#############################DEPRECATED################################
+
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c
index d302d34d244..bbaf2b33ded 100644
--- a/source/blender/src/buttons_editing.c
+++ b/source/blender/src/buttons_editing.c
@@ -35,10 +35,6 @@
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#ifdef WIN32
#ifndef snprintf
#define snprintf _snprintf
@@ -808,7 +804,8 @@ static void draw_modifier(uiBlock *block, Object *ob, ModifierData *md, int *xco
ModifierTypeInfo *mti = modifierType_getInfo(md->type);
int isVirtual = md->mode&eModifierMode_Virtual;
int x = *xco, y = *yco, color = md->error?TH_REDALERT:TH_BUT_NEUTRAL;
- short height, width = 295;
+ short height = 86;
+ short width = 295;
char str[128];
uiBut *but;
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c
index 741cd1c9b64..d770409837d 100644
--- a/source/blender/src/interface_draw.c
+++ b/source/blender/src/interface_draw.c
@@ -41,10 +41,6 @@
#include <string.h>
#include <ctype.h>
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#ifndef WIN32
#include <unistd.h>
#else
@@ -154,10 +150,6 @@ static void ui_draw_icon(uiBut *but, BIFIconID icon)
int blend= 0;
float xs=0, ys=0;
- if (icon==VICON_X) {
- int i = 0;
- }
-
// this icon doesn't need draw...
if(icon==ICON_BLANK1) return;
diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c
index 16745342fae..560f7f925a8 100644
--- a/source/blender/src/outliner.c
+++ b/source/blender/src/outliner.c
@@ -104,10 +104,6 @@
#include "blendef.h"
#include "mydevice.h"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#define OL_H 19
#define OL_X 18
@@ -509,7 +505,6 @@ static TreeElement *outliner_add_element(SpaceOops *soops, ListBase *lb, void *i
int index;
for (index=0,md=ob->modifiers.first; md; index++,md=md->next) {
- ModifierTypeInfo *mti = modifierType_getInfo(md->type);
TreeElement *te = outliner_add_element(soops, &temod->subtree, ob, temod, TSE_MODIFIER, index);
if(te) te->name= md->name;
diff --git a/source/gameengine/Converter/BL_SkinDeformer.cpp b/source/gameengine/Converter/BL_SkinDeformer.cpp
index ee608c7af96..9bd6e54c6d8 100644
--- a/source/gameengine/Converter/BL_SkinDeformer.cpp
+++ b/source/gameengine/Converter/BL_SkinDeformer.cpp
@@ -182,8 +182,11 @@ void BL_SkinDeformer::SetArmature(BL_ArmatureObject *armobj)
{
m_armobj = armobj;
- for (bDeformGroup *dg=(bDeformGroup*)m_defbase->first; dg; dg=(bDeformGroup*)dg->next)
- dg->data = (void*)get_named_bone(m_armobj->GetArmature(), dg->name);
+ for (bDeformGroup *dg=(bDeformGroup*)m_defbase->first; dg; dg=(bDeformGroup*)dg->next) {
+
+/* dg->data no longer exists needs update
+ dg->data = (void*)get_named_bone(m_armobj->GetArmature(), dg->name); */
+ }
GB_validate_defgroups(m_bmesh, m_defbase);
}