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:
authorBen Batt <benbatt@gmail.com>2007-03-18 16:26:53 +0300
committerBen Batt <benbatt@gmail.com>2007-03-18 16:26:53 +0300
commit0b55cac34c1d4452264d228b926c50bf629fa749 (patch)
treeedf1f35ffe0945da67a2d7ac74ab8993045d5dba /source/blender/src/butspace.c
parent15de493426279be4f7d1362b2553667d610a9445 (diff)
== Array modifier upgrade ==
Upgraded the Array modifier to allow the user to specify start and end cap objects. This makes arrays more flexible and more useful for creating subsurf cages. The cap objects are added at the start and end of the array, and will be auto-merged with the rest of the array if the 'Merge' button is on. Examples at: - http://members.optusnet.com.au/~bbatt/tentacle01-endcaps.blend - http://members.optusnet.com.au/~bbatt/arraytest06.blend - http://members.optusnet.com.au/~bbatt/arraytest07.blend
Diffstat (limited to 'source/blender/src/butspace.c')
-rw-r--r--source/blender/src/butspace.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/blender/src/butspace.c b/source/blender/src/butspace.c
index d8b69e41255..20270f8f00e 100644
--- a/source/blender/src/butspace.c
+++ b/source/blender/src/butspace.c
@@ -159,6 +159,25 @@ void test_obpoin_but(char *name, ID **idpp)
*idpp= NULL;
}
+/* tests for an object of type OB_MESH */
+void test_meshobpoin_but(char *name, ID **idpp)
+{
+ ID *id;
+
+ id = G.main->object.first;
+ while(id) {
+ Object *ob = (Object *)id;
+ if(ob->type == OB_MESH && strcmp(name, id->name + 2) == 0) {
+ *idpp = id;
+ /* checks lib data, sets correct flag for saving then */
+ id_lib_extern(id);
+ return;
+ }
+ id = id->next;
+ }
+ *idpp = NULL;
+}
+
void test_meshpoin_but(char *name, ID **idpp)
{
ID *id;