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:
authorKen Hughes <khughes@pacific.edu>2006-08-28 08:44:16 +0400
committerKen Hughes <khughes@pacific.edu>2006-08-28 08:44:16 +0400
commit81d7cd967da72b7cc765ec3bfc3f3097237c8c70 (patch)
tree0b114c69d54cee9e7043131a6e0c2f2f8f7940ba /source/blender/python/api2_2x/Blender.c
parentb880bffd320952efa48cb5e3419b8d3f634d1d28 (diff)
===Python API===
New API for accessing surface data (SurbNurb type). Right now it's hooked in through the Curve API, since Curve.Get() doesn't differentiate between curves and surfaces. If the curve object is 2D (pntsv > 1), the SurfNurb object is created. It is similar to the CurNurb type but not identical. There are only attributes and no methods yet, and the only methods which will be added are the non-getStuff/setStuff kind. Read the documentation to see how it works (sorry, no examples yet). This is a work in progress. Don't be surprised if the API changes some more.
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index f1343b57a30..7d89c0a41e3 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -85,6 +85,7 @@ struct ID; /*keep me up here */
#include "Registry.h"
#include "Scene.h"
#include "Sound.h"
+#include "SurfNurb.h"
#include "Sys.h"
#include "Text.h"
#include "Texture.h"
@@ -960,6 +961,7 @@ void M_Blender_Init(void)
PyDict_SetItemString(dict, "Registry", Registry_Init());
PyDict_SetItemString(dict, "Scene", Scene_Init());
PyDict_SetItemString(dict, "Sound", Sound_Init());
+ PyDict_SetItemString(dict, "SurfNurb", SurfNurb_Init());
PyDict_SetItemString(dict, "sys", sys_Init());
PyDict_SetItemString(dict, "Types", Types_Init());
PyDict_SetItemString(dict, "Text", Text_Init());