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:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-11-22 13:19:19 +0300
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-11-22 13:19:19 +0300
commit46fbe6b01e095ddb66f3bf6e0516569cfdca8f74 (patch)
treee7a7754188ef9b290eca479df6ac59b00ea7478b /source/gameengine/Ketsji/KX_Scene.cpp
parentcf91617d7829647629c8ce04b9f047dfbdf3d910 (diff)
Fix for bugs: 1788 (forces) and 1799 (python delattr on game objects)
Use Polytope collision for faster mesh intersection tests, so SOLID can actually use that qhull lib now.
Diffstat (limited to 'source/gameengine/Ketsji/KX_Scene.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_Scene.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_Scene.cpp b/source/gameengine/Ketsji/KX_Scene.cpp
index f10ea902c96..26825fe5e1f 100644
--- a/source/gameengine/Ketsji/KX_Scene.cpp
+++ b/source/gameengine/Ketsji/KX_Scene.cpp
@@ -860,7 +860,7 @@ void KX_Scene::MarkSubTreeVisible(SG_Tree *node, RAS_IRasterizer* rasty, bool vi
for (int m=0;m<nummeshes;m++)
{
// this adds the vertices to the display list
- (gameobj->GetMesh(m))->SchedulePolygons(t, rasty->GetDrawingMode(),rasty);
+ (gameobj->GetMesh(m))->SchedulePolygons(t, rasty->GetDrawingMode());
}
}
gameobj->MarkVisible(visible);
@@ -916,7 +916,7 @@ void KX_Scene::MarkVisible(RAS_IRasterizer* rasty, KX_GameObject* gameobj)
for (int m=0;m<nummeshes;m++)
{
// this adds the vertices to the display list
- (gameobj->GetMesh(m))->SchedulePolygons(t, rasty->GetDrawingMode(),rasty);
+ (gameobj->GetMesh(m))->SchedulePolygons(t, rasty->GetDrawingMode());
}
// Visibility/ non-visibility are marked
// elsewhere now.
@@ -1186,6 +1186,12 @@ PyObject* KX_Scene::_getattr(const STR_String& attr)
_getattr_up(PyObjectPlus);
}
+int KX_Scene::_delattr(const STR_String &attr)
+{
+ PyDict_DelItemString(m_attrlist, const_cast<char *>(attr.ReadPtr()));
+ return 0;
+}
+
int KX_Scene::_setattr(const STR_String &attr, PyObject *pyvalue)
{